Re: Crash in __btrfs_reserve_extent

Chris Mason
2009-08-06T18:57:45Z

On Thu, Aug 06, 2009 at 08:49:39PM +0200, Tore Anderson wrote:
> * Josef Bacik
>
> > Ok good news is, btrfs-vol -b will fix your problem. Somehow most of
> > your disk has been allocated to use metadata. So did you have a
> > whole bunch of stuff on this disk and then delete it all? Because
> > that would put you in that situation. If you have not then there is
> > likely a bug in the metadata ratio stuff that needs to be fixed.
>
> As far as I know there hasn't been a lot of stuff on the file system,
> I'm afraid. The file system was created by the Fedora 11 installer,
> and it has just been used as the system drive (I've got /home on NFS).
>
> btrfs-vol -b / (from btrfs-progs-0.19) made my system crash and burn.
> I've was able to get output from dmesg before my SSH sessions started
> hanging - maybe you can make anything out of it? Anyway, right now I
> have no more remote access to the box so any further debugging will
> have to wait until tomorrow morning.
>
> btrfs relocating chunk 129952120832
> btrfs relocating block group 129952120832 flags 1

Ugh, it hit the data group first, which it can't relocate because there
is nowhere to put the blocks.

-chris