Some BTRFS users have reported that they get an "out of disk space" message even though they have plenty of space left. The solution is to convert unused allocation to free space. You can do that by using BTRFS's balance command. The trick is knowing which sizes to use in the command.
You can start by using
sudo btrfs balance start -dusage=0
sudo btrfs balance start -musage=0
then use
sudo btrfs balance start -dusage=20
sudo btrfs balance start -musage=20
If you can't do either command sequence then plug in a 4GB USB stick, add it to your @ subvolume.
btrfs device add -f /dev/sdX /
and do a
sudo btrfs balance start -dusage=1
then remove the device from @
btrfs device remove /dev/sdX /
Now comes the trick. Use
btrfs fi usage /
The closer the "used" space is to the "allocated" space the closer you are to being out of usable space.
Divide the "used" space by the "allocated" space, times 100. Take that value, say 87, and redo the balance command using it on both d and m.
sudo btrfs balance start -dusage=87
sudo btrfs balance start -musage=87
Systemd will take care of the fstrim later.
I didn't think this up. I'm not that smart. I read about it here:
https://ohthehugemanatee.org/blog/20...ency-response/
You can start by using
sudo btrfs balance start -dusage=0
sudo btrfs balance start -musage=0
then use
sudo btrfs balance start -dusage=20
sudo btrfs balance start -musage=20
If you can't do either command sequence then plug in a 4GB USB stick, add it to your @ subvolume.
btrfs device add -f /dev/sdX /
and do a
sudo btrfs balance start -dusage=1
then remove the device from @
btrfs device remove /dev/sdX /
Now comes the trick. Use
btrfs fi usage /
The closer the "used" space is to the "allocated" space the closer you are to being out of usable space.
Divide the "used" space by the "allocated" space, times 100. Take that value, say 87, and redo the balance command using it on both d and m.
sudo btrfs balance start -dusage=87
sudo btrfs balance start -musage=87
Systemd will take care of the fstrim later.
I didn't think this up. I'm not that smart. I read about it here:
https://ohthehugemanatee.org/blog/20...ency-response/
Comment