Menu

#804 Space not freed from large deleted sparse file

v0.7x
open
nobody
5
2012-10-28
2010-11-02
Tom Fanning
No

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

Discussion

  • Tom Fanning

    Tom Fanning - 2010-11-02

    Should add that this is a raidz1 on 4x1TB SATA drives.

     
  • Tom Fanning

    Tom Fanning - 2010-11-02

    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

     

Log in to post a comment.