Henrik Johansson
2010-Jan-22 14:22 UTC
[zfs-discuss] Removing large holey file does not free space 6792701 (still)
Hello,
I mentioned this problem a year ago here and filed 6792701 and I know it has
been discussed since. It should have been fixed in snv_118, but I can still
trigger the same problem. This is only triggered if the creation of a large file
is aborted, for example by loss of power, crash or SIGINT to mkfile(1M). The
bug should probably be reopened but I post it here since some people where
seeing something similar.
Example and attached zdb output:
filer01a:/$ uname -a
SunOS filer01a 5.11 snv_130 i86pc i386 i86pc Solaris
filer01a:/$ zpool create zpool01 raidz2 c4t0d0 c4t1d0 c4t2d0 c4t4d0 c4t5d0
c4t6d0
filer01a:/$ zpool create zpool01 raidz2 c4t0d0 c4t1d0 c4t2d0 c4t4d0 c4t5d0
c4t6d0
filer01a:/$ zfs list zpool01
NAME USED AVAIL REFER MOUNTPOINT
zpool01 123K 5.33T 42.0K /zpool01
filer01a:/$ df -h /zpool01
Filesystem Size Used Avail Use% Mounted on
zpool01 5.4T 42K 5.4T 1% /zpool01
filer01a:/$ mkfile 1024G /zpool01/largefile
^C
filer01a:/$ zfs list zpool01
NAME USED AVAIL REFER MOUNTPOINT
zpool01 160G 5.17T 160G /zpool01
filer01a:/$ ls -hl /zpool01/largefile
-rw------- 1 root root 1.0T 2010-01-22 15:02 /zpool01/largefile
filer01a:/$ rm /zpool01/largefile
filer01a:/$ sync
filer01a:/$ zfs list zpool01
NAME USED AVAIL REFER MOUNTPOINT
zpool01 160G 5.17T 160G /zpool01
filer01a:/$ df -h /zpool01
Filesystem Size Used Avail Use% Mounted on
zpool01 5.4T 161G 5.2T 3% /zpool01
filer01a:/$ ls -l /zpool01
total 0
filer01a:/$ zfs list -t all zpool01
NAME USED AVAIL REFER MOUNTPOINT
zpool01 160G 5.17T 160G /zpool01
filer01a:/$ zpool export zpool01
filer01a:/$ zpool import zpool01
filer01a:/$ zfs list zpool01
NAME USED AVAIL REFER MOUNTPOINT
zpool01 160G 5.17T 160G /zpool01
filer01a:/$ zfs -ddd zpool01
<cut>
Object lvl iblk dblk dsize lsize %full type
<cut>
5 5 16K 128K 160G 1T 15.64 ZFS plain file
</cut>
Henrik
http://sparcv9.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100122/e5819131/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zpool01.zdb
Type: application/octet-stream
Size: 26139 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100122/e5819131/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100122/e5819131/attachment-0001.html>
