This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

ZFS not freeing up space after file deletion

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
jmpapi
NewUser
NewUser
Posts: 8
Joined: 06 Apr 2015 18:53
Status: Offline

ZFS not freeing up space after file deletion

Post 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

User avatar
mooblie
experienced User
experienced User
Posts: 85
Joined: 23 Jun 2012 13:31
Location: The Highlands, Scotland
Contact:
Status: Offline

Re: ZFS not freeing up space after file deletion

Post 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
Martin

slaycock
experienced User
experienced User
Posts: 93
Joined: 24 Jun 2012 17:15
Status: Offline

Re: ZFS not freeing up space after file deletion

Post 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?

jmpapi
NewUser
NewUser
Posts: 8
Joined: 06 Apr 2015 18:53
Status: Offline

Re: ZFS not freeing up space after file deletion

Post by jmpapi »

@mooblie:
recycle bin is already off for all the SMB shares.
Here my settings:
smb.png
You do not have the required permissions to view the files attached to this post.

jmpapi
NewUser
NewUser
Posts: 8
Joined: 06 Apr 2015 18:53
Status: Offline

Re: ZFS not freeing up space after file deletion

Post by jmpapi »

@slaycock

really?!

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

slaycock
experienced User
experienced User
Posts: 93
Joined: 24 Jun 2012 17:15
Status: Offline

Re: ZFS not freeing up space after file deletion

Post by slaycock »

Try exporting and then reimporting the zpool.

jmpapi
NewUser
NewUser
Posts: 8
Joined: 06 Apr 2015 18:53
Status: Offline

Re: ZFS not freeing up space after file deletion

Post by jmpapi »

@slaycock:

tried it, but no luck :(

jmpapi
NewUser
NewUser
Posts: 8
Joined: 06 Apr 2015 18:53
Status: Offline

Re: ZFS not freeing up space after file deletion

Post by jmpapi »

I don't get any error when deleting from the console. It deletes, but no free space. Files are really visually gone.

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 758
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: ZFS not freeing up space after file deletion

Post by ChriZathens »

Delete your snapshots.
Edit: Just noticed that you said there aren't any..
So scratch that...
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)

jmpapi
NewUser
NewUser
Posts: 8
Joined: 06 Apr 2015 18:53
Status: Offline

Re: ZFS not freeing up space after file deletion

Post 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
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “ZFS (only!)”