public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Sergio Callegari <sergio.callegari@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: btrfs scrub results in kernel oops does not proceed and cannot be canceled
Date: Thu, 14 Nov 2024 18:38:27 +0100	[thread overview]
Message-ID: <e4e79b2b-ebca-4ca2-a028-084a6dfcb3e8@gmail.com> (raw)

Hi,

yesterday my laptop (kernel 6.10.13) froze coming out of hibernation. 
After that it will not boot anymore, saying that the root (that is on 
btrfs) cannot be mounted. I am dropped to an emergency shell and if I 
try to manually mount from there, I get level verify errors.

Tried to boot a live iso (with kernel 6.11.5) and to see what might be 
going on.

Managed to mount with -o rescue=ibadroots,ro getting transid errors.

- As soon as I start the scrub the kernel oopses.
- The scrub does not seem to progress (calling it with status).
- The scrub cannot be canceled.

The kernel oops appears scary. Even if my filesystem is corrupted the 
way in which these tools break rather than erroring out in a nicer way 
is not very helpful.

The plain btrfs check report a level error on one root and I think I do 
not have backup roots.

- is there a way to find out if the problem affects all subvolumes or a 
single one?
- is there a way to find out what can be trusted attempting a data 
recovery with the mount based on -o rescue=ibadroots,ro?

Is there any way to find out if my nvme (the hardware device) can be 
trusted to be used again (namely if the problem originated from the 
hardware of from an error in the kernel)? The fact that the problem 
appeared when using hibernation makes me thing that maybe the nvme is 
not at fault and that it was something else.

Any clue on what could be tried on my side? Why does the kernel end up 
in an oops?

Thanks,

Sergio


             reply	other threads:[~2024-11-14 17:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-14 17:38 Sergio Callegari [this message]
2024-11-14 20:20 ` btrfs scrub results in kernel oops does not proceed and cannot be canceled Qu Wenruo
2024-11-17 21:49   ` Sergio Callegari
2024-11-18  6:47     ` Qu Wenruo
2024-11-18  8:26       ` Andrei Borzenkov

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=e4e79b2b-ebca-4ca2-a028-084a6dfcb3e8@gmail.com \
    --to=sergio.callegari@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox