Page 1 of 1

ZFS not freeing up space after file deletion

Posted: 07 Jan 2017 10:22
by jmpapi
Hello,

I have a big ZFS raidz2 storage where I deleted some big files in order to free up space. I deleted the files from a Windows PC via SMB.
But free space is not growing.
Snapshots are disabled and there are no hidden snapshots.

Code: Select all

zfs list -o space
NAME                    AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
Internal                 787G   112G         0    107G              0      5.69G
Internal/Internal        787G   144K         0    144K              0          0
Internal/www             787G  5.65G         0   5.65G              0          0
StorageZ2Pool               0  20.0T         0    358K              0      20.0T
StorageZ2Pool/Backup        0  2.14T         0   2.14T              0          0
StorageZ2Pool/MediaZ2       0  17.9T         0   17.9T              0          0

Code: Select all

zfs list -t snapshot
no datasets available
I also deleted some files over terminal, but it's the same.

And I can't find any hidden trash folders.

THe NAS4Free system information page shows this:

Code: Select all

StorageZ2Pool
97% of 29TB
Total: 29T | Alloc: 28.2T | Free: 849G | State: ONLINE
Any ideas?

Thank you very much
Regards

Re: ZFS not freeing up space after file deletion

Posted: 07 Jan 2017 12:06
by mooblie
Has your SMB Share been setup with a Recycle Bin? If so, that's maybe the cause. You need to periodically manually empty it (with File Manager or Command line?) and/or just turn the Recycle Bin off?

Image

Re: ZFS not freeing up space after file deletion

Posted: 07 Jan 2017 13:01
by slaycock
THe NAS4Free system information page shows this:
CODE: SELECT ALL
StorageZ2Pool
97% of 29TB
Total: 29T | Alloc: 28.2T | Free: 849G | State: ONLINE

Your pool seems pretty full so you might be at the stage where deleting a file normally won't work. ZFS can't delete a file if the free space on a pool is smaller than the size of the file you are trying to delete. (See if you can figure out why yourself :D ).

Have you tried deleting files form the console?

Re: ZFS not freeing up space after file deletion

Posted: 07 Jan 2017 17:31
by jmpapi
@mooblie:
recycle bin is already off for all the SMB shares.
Here my settings:
smb.png

Re: ZFS not freeing up space after file deletion

Posted: 07 Jan 2017 17:33
by jmpapi
@slaycock

really?!

Yes I already tried. Files are deleted, but sill no free space.

Re: ZFS not freeing up space after file deletion

Posted: 07 Jan 2017 19:32
by slaycock
Try exporting and then reimporting the zpool.

Re: ZFS not freeing up space after file deletion

Posted: 08 Jan 2017 01:23
by jmpapi
@slaycock:

tried it, but no luck :(

Re: ZFS not freeing up space after file deletion

Posted: 08 Jan 2017 19:26
by jmpapi
I don't get any error when deleting from the console. It deletes, but no free space. Files are really visually gone.

Re: ZFS not freeing up space after file deletion

Posted: 08 Jan 2017 20:09
by ChriZathens
Delete your snapshots.
Edit: Just noticed that you said there aren't any..
So scratch that...

Re: ZFS not freeing up space after file deletion

Posted: 08 Jan 2017 20:46
by jmpapi
I just now moved +-240Gb of data to my PC.
And I deleted 2 small Datasets on that pool.

Now I have this:
FreeSpace.png
Name Size Alloc Free Expandsz Frag Dedup Health Mount Point AltRoot

StorageZ2Pool 29T 27.5T (94%) 1.53T - 4% 1.00x ONLINE /mnt/StorageZ2Pool -

The Nas4Free configpage gives me 1,53T free.


What I don't understand. Shouldn't I have more than just 18,4 TB with 9*4 TB disks as RaidZ2 as the configpage shows aswell?
What could that be?

Thanks
Regards