-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explain why Total exclusive data less than Total size of data? #20
Comments
Example of problem from my real server - here is output of
So, regarding to this report, total used space on my But the
So, the main question - who eats additional 12Gb (32 - 20) of used space in this btrfs volume? |
As I understood it,
A file that is included in more than one snapshot will not be displayed as df -Th /
fallocate -l 10G 10g.img
btrfs subvolume snapshot -r / /snapshot/1
btrfs subvolume snapshot -r / /snapshot/2
rm 10g.img
df -Th / Explanation of my example:
That is also the reason why I find the total of But maybe something like this will help you? https://github.com/CyberShadow/btdu (the tool has to look at the files one by one, so it can take a while until the result makes sense, instead of use |
@mritzmann Thanks for so detailed explanation! https://github.com/CyberShadow/btdu and https://github.com/rkapl/btsdu are good solutions for better understanding used space in BTRFS subvolume. |
However in @MurzNN's 2nd example, the sum of Looks like I patched my version some time ago, but I didn't push this change here. I should do it. |
Here is quote from readme:
Can you please explain, why "Total exclusive data" is such small, less than "Total" of any snapshot?
As I understand, "Exclusive" shows the amount of unique data, that stored on current snapshot, yes?
So, at least one of all snapshots must have an unique storage for files, that other snapshots can "reuse", if it is not changed.
As result, the "Total exclusive data" sum can't be less, that minimum "Total" value of all snapshots. But in the example (and in my system) it is less.
Can you please explain why this happens, and how to calculate real stored size of specific subvolume? Thanks!
The text was updated successfully, but these errors were encountered: