All of lore.kernel.org
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872
Date: Thu, 25 Aug 2016 02:32:47 +0000 (UTC)	[thread overview]
Message-ID: <pan$b3826$8f0dd137$587e562b$4d394f85@cox.net> (raw)
In-Reply-To: CAC8ULPbST1tMtfW8MBdEXiFSxknQtUHYneZu8FpQij5DRon_gg@mail.gmail.com

Robert Munteanu posted on Thu, 25 Aug 2016 01:19:27 +0300 as excerpted:

> Using Kernel 4.7.1 ( openSUSE Tumbleweed x86_64 ), btrfsprogs 4.7 I
> always get a hard lockup when trying to mount my btrfs root partition.
> 
> This may be due to some previous errors which only manifested themselves
> now, as it's been converted from an ext4 partition.
> 
> Using mount -o ro works. Using mount -o recovery or mounting without
> arguments does not. I've managed to capture one of the error messages,
> but via screenshot only. I've transcribed some of it below, more at
> 
>   http://i.imgur.com/OSIddHE.jpg
> 
> BTRFS info (device sda1): disk space caching is enabled
> BTRFS info (device sda1): detected SSD devices, enabling SSD mode
> BTRFS info (device sda1): checking UUID tree
> BTRFS info (device sda1): continuing balance
> BTRFS info (device sda1): relocating block group 1047892328448 flags 1
> BTRFS info (device sda1): found 805 extents
> (...)
> kernel BUG at ../fs/btrfs/extent-tree.c:1872
> invalid opcode: 0000 [#1] PREEMPT SMP
> (...)

I'm just a btrfs user and list regular, and won't attempt to deal with 
the real problem, but this might help, and the results should help pin 
down the problem a bit better as well, so...

So it's trying to restart a balance.

What happens if you try mounting with the skip_balance mount option?  
Will that let you mount writable without immediate crashing?

If that lets you mount, you can then btrfs balance cancel to cancel it 
entirely, so you won't have to skip_balance every time.

Of course that doesn't fix the real problem, but if it's the balance 
that's triggering the lockup, that should avoid that and hopefully let 
you run more or less normally, altho if you try to access whatever file 
or metadata the balance is choking on, you'd still be in trouble.  And 
the results should pin down whether it's the balance, or something else, 
triggering the problem.

Beyond that I'll leave for the real experts.


-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


  reply	other threads:[~2016-08-25  4:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24 22:19 btrfs partition fails to mount - kernel BUG at ../fs/btrfs/extent-tree.c:1872 Robert Munteanu
2016-08-25  2:32 ` Duncan [this message]
2016-08-25  6:29 ` Robert Munteanu
2016-08-25 20:06 ` Robert Munteanu
2016-10-19 17:24   ` Dāvis Mosāns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='pan$b3826$8f0dd137$587e562b$4d394f85@cox.net' \
    --to=1i5t5.duncan@cox.net \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.