brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: a btrfs Balance can fix no space left on device while the pool shows free space

Troubleshooting
~/tips/tip-unraid-btrfs-balance-no-space-left

Main > click the pool > Balance > Start

Clear phantom out-of-space errors on an Unraid btrfs cache pool.

Few errors are as confusing as a container log full of “no space left on device” while the Unraid dashboard says your cache pool has plenty of room. On a btrfs pool, the docs have a specific answer for that.

btrfs stores data and metadata in chunks. The Balance operation redistributes those chunks across the pool, and according to the file systems page it can fix “no space left on device” errors even when space seems available. You run it from the WebGUI:

Main > click the pool > Balance > Start

There’s an optional field for extra parameters, and the docs send you to the built-in Help for those. I’d leave it empty unless you know exactly why you’re filling it in.

The docs list three moments for a balance: when you get that error despite free space, after adding or removing drives in a pool, and to tidy up space usage. Unraid starts one by itself after you add a device, and you can follow it under Balance Status on the first pool device.

A balance works while the pool is online, so Sonarr and friends can keep running, but performance can drop while it’s busy. It takes from a few minutes to several hours, depending on pool size and how much data there is. This is a btrfs tool, and it’s a different job from a scrub, which reads everything and checks the checksums.

The caveat is that a truly full pool stays full. If Main shows the pool is actually close to capacity, a balance won’t conjure up space, and the fix is moving data off or setting a sensible minimum free space. If a balance itself seems stuck, the docs say it helps to have at least 10 to 15% free on the pool.

Further reading: Unraid docs: File systems, Unraid docs: Cache pools

Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it

More Troubleshooting tips Get-NetTCPConnection -State Listen modinfo -p usb_storage ps -o pid,lstart,etime,cmd -p 1234 sudo lsof -nP -p 1234 fc-match Helvetica All Troubleshooting tips (21) All topics

Link