My root filesystem is in BTRFS and 10GB big. I have been using (open)SUSE for many years and never fell short on disk space. How can it be that the system claims the disk is full and yet I do not see what I filling up the 1.9GB that are still available according to df?
Hi
Having 10GB for / on a Tumbleweed system due to the way it upgrades (not update!) to a new release is the likely issue and the way btrfs will allocate disk space.
Can you boot from a Tumbleweed live system and look at running some btrfs maintenance routines?
Else can you boot the system in rescue mode at grub, select advanced and recovery mode?
“For many years” you likely would have had / using EXT3 or ReiserFS at first, depending on when first was, later EXT4, depending on how you upgraded and whether you formatted / at upgrade time. Now with BTRFS the default installation space requirement has skyrocketed, making 10GB for / crowded if not unusable, unless snapshotting is curtailed. If you want to keep 10GB usable you’ll need to make adjustments to the BTRFS maintenance/snapshot system, or reinstall fresh using EXT4. Mere updates via zypper dup need not be a problem, because atomic updates are not mandatory, controlled by commit.downloadMode = in /etc/zypp/zypp.conf or cmdline option.
Even with ext4 for / here, I have a 24G partition, 9.5GB free, and the recent huge gcc8 upgrade temporarily used 3.5GB of that. I did not expect to use 75% of a 24GB root partition. Next time I will allocate 31.9GB for a bit more breathing room, things only seem to get bigger …
With btrfs, df and du no longer work so well, you will only see the full picture by using:
btrfs filesystem df
btrfs filesystem du
Maybe df and du should be made to error for btrfs, or to report something different, but I guess that would break a lot of scripts.
Btrfs is not like the old file systems, and even more so when used for the root file system for rollbacks. Here are the notes I made when seeking find out more about btrfs: