ZFS Usage Inconsistency


Go to solution Solved by syphant,

Recommended Posts

Unraid GUI says I am using 46.1 TB of my ZFS pool and that I only have 17.7 TB free, so I went to take a look at what I can get rid of to free up some space. But when I use QDirStat to try to find what is taking up so much space, it says I am only using 23.1 TB? What gives? Any ideas what I can do to see what is using up all this space and/or why QDirStat is reporting a lower amount of usage?

Screenshot 2023-08-13 122320.png

Screenshot 2023-08-13 122349.png

Link to comment

For one thing, QDirStat explicitly tells you ">23.1 TB", i.e. MORE THAN 23.1 TB because it could not read all directories below /data/appdata, probably because of insufficient permissions. The part of the screenshot that was cut off (below the tree) also notified you of that.

 

But even then there will probably be a mismatch because of ZFS snapshots which, like Btrfs snapshots, also are not reported by ZFS to the relevant system calls like stat(). You will need dedicated ZFS tools to give you that information.

 

HTH

HuHa

QDirStat author

Link to comment
9 minutes ago, HuHa said:

For one thing, QDirStat explicitly tells you ">23.1 TB", i.e. MORE THAN 23.1 TB because it could not read all directories below /data/appdata, probably because of insufficient permissions. The part of the screenshot that was cut off (below the tree) also notified you of that.

 

But even then there will probably be a mismatch because of ZFS snapshots which, like Btrfs snapshots, also are not reported by ZFS to the relevant system calls like stat(). You will need dedicated ZFS tools to give you that information.

 

HTH

HuHa

QDirStat author

 

The appdata directory is located on my cache drive and not on my ZFS array so that is not related. Sorry I neglected to state that in my original post!
However, I did try rebooting the server and now the Unraid GUI is showing I only 25.4 TB usage of my ZFS pool whereas it was showing 46.1 TB before the reboot, which is very interesting, but still not the same as what QDirStat and NCDU are both reporting (23.1 TB)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.