On Aug 26, 2013, at 8:47 AM, Clemens Eisserer <[email protected]> wrote:

> You are out of metadata, not "normal space".
> However, the good question is why 0.5GB of metadata are unused and
> btrfs reports no space left.
> I have seen similar behaviour on a machine of mine, with exactly 0.5GB
> of metadata unused.

Since metadata is set to DUP, the numbers are actually 6GB allocated and 5GB 
used, and I'm guessing that at the time it starts to use the last chunk of 
allocated space, it also wants to allocate a new one. But it can't allocate 
more for metadata because all free space in the fs is already allocated for 
data chunks. 

Presently btrfs seems unable to unwind itself from this situation without a 
manual balance, which in many instances also requires more free space than is 
available once you're in this situation. So I called it a filesystem wedged 
into a corner. Fortunately so far I've found it to be rather docile in 
accepting a small device to give it a little extra free space, do a balance, 
and then delete the device from the volume.

I haven't tried doing a partial balance, deleting the extra device, then 
finishing the balance.

But this suggestion is certainly non-obvious to the mortal and sane. Especially 
if you do a df, which bases its values off the used portion of allocated 
chunks, the file system is distinctly not out of free space. So the confusion 
is understandable.


Chris Murphy--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to