Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Ash Logan <ash@heyquark.com>, linux-btrfs@vger.kernel.org
Subject: Re: Corrupt leaf, trying to recover
Date: Sat, 13 Aug 2022 16:05:54 +0800	[thread overview]
Message-ID: <a9d3eb38-e939-4751-4dc8-896fa653be73@gmx.com> (raw)
In-Reply-To: <c1b246ad-6665-1216-166c-a1ad32222b35@heyquark.com>



On 2022/8/13 15:56, Ash Logan wrote:
> Hi, thanks for your email!
>
>> Please post the output of command "btrfs ins dump-tree -b 35291136
>> <device>"
>
> Attached.

It looks correct, all other ROOT_ITEMS has no extra flags, and only that
offending root has the problem.

Thus it looks more like a bitflip.

>
>> It looks like a bitflip so far, and if that's the case, I strongly
>> recommend to do a memtest before continuing.
>
> Will run now, hopefully it comes back clean.
>
>> Unfortunately since you're upgrading to Debian 11, I believe the damage
>> is there for a long time until you have upgraded to a newer kernel with
>> such sanity checks.
> Ouch. At least this suggests that a kernel downgrade could still allow
> mounting and data recovery.

Yes.

As long as that's the only bitflip, everything else should be fine.

If you want, you can remove subvolume 389 (and if that's the only
bitflip) using the older kernel and then mount using much newer kernel.

Personally speaking, it's strongly recommended to use kernel newer than
v5.11, even if a memtest is clean.

That new sanity check introduced in v5.11 should save a lot of hassle
like this.

Thanks,
Qu

>>
>> Thanks,
>> Qu
>>>
>>> Let me know if you have any advice.
>>>
>>> Thanks,
>>> Ash
>>>

  reply	other threads:[~2022-08-13  8:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-13  2:51 Corrupt leaf, trying to recover Ash Logan
2022-08-13  4:45 ` Qu Wenruo
2022-08-13  7:56   ` Ash Logan
2022-08-13  8:05     ` Qu Wenruo [this message]
2022-08-13  8:28       ` Ash Logan
2022-08-13  8:37         ` Qu Wenruo
2022-08-13 17:36         ` Roman Mamedov
2022-08-14  0:11           ` Ash Logan

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=a9d3eb38-e939-4751-4dc8-896fa653be73@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=ash@heyquark.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