On my system df -h
reports that the root file system is full (100%
Available 0
) and also btrfs fi usage /
tells me that all of the space is allocated. After a restart it could not even bring up the necessary services, so I'm now in recovery mode.
I tried to balance the system as shown here btrfs ERROR: error during balancing - No space left on device. For btrfs balance start -dusage=27 /
I get:
Done, had to relocate 0 out of 56 chunks`
For btrfs balance start -dusage=28 /
I get:
ERROR: error during balancing '/': No space left on device
So I started deleting files in /var/log/
but even after removing several 100 MB df -h
reports that no single bit is available.
I suspect, that there is some service filling up the space the moment it gets free. But since I'm in recovery mode, there should not be so many services.
How can I find out, what is filling the space immediately after removing the files?
How can I ensure to free space, that can be used by btrfs to rebalance?
My system is debian 10.3 (buster), filesystem btrfs and I have docker installed, which I suspect being part of the problem but which is not running in recovery mode, so …
btrfs subvol list /
Don't bother usingdf
for this; it won't help. If you have files which are heavy fragmented (virtual disk images, databases, systemd journal, etc) they can eat up your metadata chunks. I recommend adding the output ofbtrfs fi usage /
to you question. – Emmanuel Rosa Apr 24 '20 at 13:03