nachoparker / btrfs-du

Easily print BTRFS subvolume/snapshot disk usage
GNU General Public License v3.0
112 stars 17 forks source link

Please show usage on all different levels (fs, snapshots, block, ...) #8

Open testbird opened 6 years ago

testbird commented 6 years ago

Btrfs can really be an anoying thing, because it will fill up the disks in multiple different ways, and accordingly there are also multiple different actions to be taken to get out of such locked states.

I found this answer to be the best explanation: https://askubuntu.com/a/464131

I never understood why the btrfs devs do not show in their standard system tools any information about all the different fill up levels involved with btrfs. They get so much negative feedback about this fill up behaviour, and I guess many many users just turn away from btrfs after it absolutely foreseeable --but without any warning-- fills and locks up a device, while the users filesystem is still showing plenty of space, and the usual removing of large files has absolutely no effect because btrfs never removes files but adds a new empty file copy...

You should probably make btrfs-du

testbird commented 6 years ago

https://www.suse.com/documentation/sles11/stor_admin/data/trbl_btrfs_volfull.html

testbird commented 6 years ago

https://btrfs.wiki.kernel.org/index.php/Problem_FAQ#I_get_.22No_space_left_on_device.22_errors.2C_but_df_says_I.27ve_got_lots_of_space

testbird commented 6 years ago

https://btrfs.wiki.kernel.org/index.php/FAQ#Help.21_I_ran_out_of_disk_space.21

testbird commented 6 years ago

Uh, standard btrfs reporting is a mess: There is also the GlobalReserve/total that needs to be subtracted from the Metadata/free to know the real available space for metadata (man page).