-
Notifications
You must be signed in to change notification settings - Fork 124
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
Tool for understanding each snapshot used space size #51
Comments
With btrfs qgroups (quota groups) this is possible. Unfortunately qgroups are not mature yet. |
Thanks, for the info, qgroups is exactly that I want. On Ubuntu 13.10 qgroups works well out of the box (btrfs-tools Version: 0.19+20130705-1):
But this output is raw and too hard to understand. Here http://dustymabe.com/2013/09/22/btrfs-how-big-are-my-snapshots/ I can find article with script that convert this info into human-readable report:
This is better, but will be good to see snapper snapshot names instead of id in it. Can you integrate this snapshot use size report into snapper? If btrfs-tools version is not fresh, you can show warning that this is not supported. |
The output is already better in newer versions of btrfsprogs, e.g.: f17:~ # btrfs qgroup show / qgroupid rfer excl -------- ---- ---- 0/5 16384 16384 0/257 2940633088 -20557824 0/258 2387968 2387968 0/259 16384 16384 0/260 16384 16384 I want to integrate that in snapper but for me the qgroups are not mature, e.g. see the negative number above! |
Try this oneliner: sudo btrfs subvolume list / | sed 's///\//g' | awk '{print "sed "s/"$2 " /"$2 " " |
Good tool for human-readable btrfs snapshot size report is btrfsQuota.py placed here: https://btrfs.wiki.kernel.org/index.php/Quota_support |
Another tool for understanding btrfs snapshot size: https://poisonpacket.wordpress.com/2015/05/26/btrfs-snapshot-size-disk-usage/ |
I recently tried the snapper quota tool: However with |
Is there any upgrade on this? I am using snapper on btrfs, but getting snapshot's size is impossible with snapper itself, although I am convinced that snapper should be aware of the snapshot size. |
For every snapshot snapper now shows the exclusive space of the corresponding btrfs qgroup, see http://snapper.io/2018/10/04/used-space.html. |
Very often users want to know, how much size use each snapshot, for understand which snapshots eats most of space. At now I can't find human-understandable report that show this information.
On ZFS there are command:
that shows total snapshot size and used size in easy and human-readable way:
Will be good to have utility like this on btrfs snapper package.
The text was updated successfully, but these errors were encountered: