Closed jamesfreeman959 closed 1 month ago
Quick update. I noticed the error message referenced the /run filesystem and this was only 400Mb in size. I increased the RAM on the host and increased /run to 2Gb but the error remains. A later error references trying to write just 131072 Bytes of data so I feel like there's another issue being presented as an out of space error.
Metadata free space is extremely low - there's less than 512MB of allocated space left, and there is no unallocated space remaining to allocate more metadata.
When metadata free space is less than reserved space, the filesystem is effectively full. The space is reserved so that there will be enough free space to add or resize devices, or delete files or snapshots. If the global reserve space is ever completely filled, the filesystem will become permanently read-only. To prevent that, btrfs will abort transactions that fill the global reserve.
If you can add a bit more space, you can balance data block groups (btrfs balance start -dusage=75
or btrfs-balance-least-used -u 75
) to reclaim used space for more metadata. You can run that command periodically to maintain availability of metadata space, or you can set up a script to run echo 75 | tee /sys/fs/btrfs/*/allocation/data/bg_reclaim_threshold
to have the kernel do it automatically as needed.
Thanks so much - really appreciate your detailed feedback. I did a bit more homework as I clearly need to learn more about day to day management of BTRFS. Expanding the volume, and then balancing it fixed the issue perfectly. Appreciate your help!
Hi there
I have been having great success using bees on btrfs on Ubuntu 24.04.1 - I built beesd from source from the
v0.10
commit tag.My backup volume (shared over NFSv3) suddenly stopped working with
No space left on device errors
. However at first glance, it has free space:A more detailed query of btrfs usage shows:
I can see metadata is approaching a problem level, but it's not 100% full yet. Looking in syslog at beesd entries, I see repeated entries like this:
I don't think this is a beesd problem, but I don't understand what's going wrong (i.e. why I'm getting no space left errors when I can see space). I have the capability to increase the size of the disk - this is running on a VM so I can easily just extend the disk. However assuming I do this, what would be the right steps to resize the filesystem and metadata and fix the issue?
Also can anyone help me understand what I'm missing - is there something I should be looking at to see what it is that is full?
Many thanks
James