Space not freed from large deleted sparse file
This project has moved to github - see https://github.com/freenas
Brought to you by:
cochard,
mattolander
Create a 1TB file on FreeNAS 0.7.2 Sabanda (revision 5226), ZFS version 13
dd if=/dev/zero of=/mnt/tank0/temp/myfile.bin bs=16M count=65536
Remove the file
rm /mnt/tank0/temp/myfile.bin
Expected result:
bunker:~# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
tank0 0.99T 1.7T 0.99T /mnt/tank0
bunker:~# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
tank0 1.99T 707G 1.99T /mnt/tank0
Snapshots are not enabled:
bunker:~# zfs list -t snapshot
no datasets available
I have been pointed in the direction of this opensolaris bug - could be related?
http://bugs.opensolaris.org/view_bug.do?bug_id=6792701
Should add that this is a raidz1 on 4x1TB SATA drives.
I think, if I'm interpreting the version numbers correctly, that the bug I linked to was fixed in ZFS version 17
http://hub.opensolaris.org/bin/view/Community+Group+zfs/17