From: Daniel Dawson <danielcdawson@gmail.com>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: corrupt leaf, unexpected item end, unmountable
Date: Fri, 19 Feb 2021 07:02:07 -0800 [thread overview]
Message-ID: <222cbf70-b1e0-c290-fa0c-f0a7cf6495f0@gmail.com> (raw)
In-Reply-To: <CAJCQCtTCKSC46kNaoENdEpCNTxB1_MeD6PHwbmtRnJdbGWBswA@mail.gmail.com>
On 2/18/21 9:03 PM, Chris Murphy wrote:
> Once everything else is figured out, you should consider converting
> metadata to raid1c3.
Got it.
> The new replacement is devid 0 during the replacement. The drive being
> replaced keeps its devid until the end, and then there's a switch,
> that device is removed, and the signature on the old drive is wiped.
> Sooo.... something is still wrong with the above because there's no
> devid 3, there's kernel and btrfs check messages saying devid 3 is
> missing.
>
> It doesn't seem likely that /dev/sdc3 is devid 3 because it can't be
> both missing and be the mounted dev node.
It seems I was unclear. I removed the old drive prior to the
replacement, hence degraded mode.
A while ago, I imaged the drives, to see what I could do without risk
(on another machine). Turns out I was able to mount the filesystem using
-o ro,nologreplay,degraded and copy almost all files. A small number
were unreadable/un-stat-able. Fortunately nothing critical, though the
OS may well be unusable.
(Also, in case you were wondering, memory testing has revealed no errors
so far.)
> If a tree log is damaged and prevents mount then, you need to make a
> calculation. You can try to mount with ro,nologreplay and freshen
> backups for anything you'd rather not lose - just in case things get
> worse. And then you can zero the log and see if that'll let you
> normally mount the device (i.e. rw and not degraded). But some of it
> will depend on what's wrong.
That doesn't work. It gives the same errors as when I tried to run
check, but repeated once each for extent tree and device tree. It just
can't get past this problem.
At this point, I think it's best to just reinstall with a fresh
filesystem, and not make the same mistakes. Thanks for the help, once again.
next prev parent reply other threads:[~2021-02-19 15:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-18 2:41 corrupt leaf, unexpected item end, unmountable Daniel Dawson
2021-02-18 23:57 ` Chris Murphy
2021-02-19 1:10 ` Daniel Dawson
2021-02-19 5:03 ` Chris Murphy
2021-02-19 15:02 ` Daniel Dawson [this message]
2021-02-19 15:03 ` Daniel Dawson
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=222cbf70-b1e0-c290-fa0c-f0a7cf6495f0@gmail.com \
--to=danielcdawson@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;
as well as URLs for NNTP newsgroup(s).