UPDATE: Oh, sorry, I just realized this is a wrong group. Could anybody move the thread to the right category please?
I ran out of space when doing “zypper dup” recently, and hence I started investigating what the cause is. I deleted btrfs snapshots, /tmp, /var/log, rpm cache,…, ran btrfs balance and restarted the system. This is what I get now. Note that / is mounted on /dev/sda6.
Running the df:
sudo df /dev/sda6 -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 41G 32G 8.0G 80% /
Running the btrfs df:
sudo btrfs filesystem df -h /
Data, single: total=30.00GiB, used=28.97GiB
System, DUP: total=32.00MiB, used=16.00KiB
Metadata, DUP: total=1.50GiB, used=803.84MiB
GlobalReserve, single: total=512.00MiB, used=0.00B
Running the du:
sudo du -sh -x /
16G /
Running the btrfs du:
sudo btrfs filesystem du -s --human-readable /
Total Exclusive Set shared Filename
32.24GiB 25.38GiB 3.43GiB /
I called the above commands within the time interval of 30 seconds. In addition, running the last command a couple of times it always gives a different output. I would like to emphasize that the balance is finished, the system was restarted and I am not doing anything else than running these commands and writing on this forum:
sudo btrfs filesystem du -s --human-readable /
Total Exclusive Set shared Filename
32.24GiB 14.30GiB 14.51GiB /
pavel@linux-97ls:~> sudo btrfs filesystem du -s --human-readable /
Total Exclusive Set shared Filename
32.24GiB 25.33GiB 3.48GiB /
pavel@linux-97ls:~> sudo btrfs filesystem du -s --human-readable /
Total Exclusive Set shared Filename
32.24GiB 21.57GiB 7.24GiB /
pavel@linux-97ls:~> sudo btrfs balance status /
No balance found on '/'
pavel@linux-97ls:~> sudo btrfs filesystem du -s --human-readable /
Total Exclusive Set shared Filename
32.24GiB 25.38GiB 3.43GiB /
pavel@linux-97ls:~> sudo btrfs filesystem du -s --human-readable /
Total Exclusive Set shared Filename
32.24GiB 14.28GiB 14.53GiB /
For completeness the current list of btrfs snapshots is
sudo snapper list
Type | # | Pre # | Date | User | Cleanup | Description | Userdata
-------+---+-------+----------------------------------+------+---------+-----------------------+---------
single | 0 | | | root | | current |
single | 1 | | Sat 16 Apr 2016 07:49:27 AM CEST | root | | first root filesystem |
and I used the following command to balance
sudo btrfs filesystem balance start -dusage=100 /
Could anybody explain to me why the outputs of these programs differ?
Could anybody suggest how to increase the free space so that I do not run into problems when doing zypper dup or making new snapshots?
To sum up, according to the df command I only have 8GB of free space. However, just 12GB are actually used according to du. The / partition has size 41GB. It seems like that there is 21GB of some “filesystem metadata” which I can not control.
Thank you very much for your comments!