From: Anthony Plack <anthony@plack.net>
To: Hugo Mills <hugo@carfax.org.uk>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Kernel Dump scanning directory
Date: Fri, 8 May 2015 16:49:19 -0500 [thread overview]
Message-ID: <A54EAF29-BF4C-4CCA-BFBF-FEDFF2A01C73@plack.net> (raw)
In-Reply-To: <20150508211850.GN18480@carfax.org.uk>
> On May 8, 2015, at 4:18 PM, Hugo Mills <hugo@carfax.org.uk> wrote:
>
> On Fri, May 08, 2015 at 11:44:39AM -0500, Anthony Plack wrote:
>> I am close to zeroing the log at this point. It is sad that we cannot fix the transaction log instead of just flushing it.
>
> That's not likely to make any difference here. If the FS mounts OK
> with -o ro, then zeroing the log might be useful. Otherwise, it won't
> e (a read-only mount won't replay the log; if it mounts without
> replaying the log, the problem is in the log, and it should be
> dropped; if not, then the problem is nothing to do with the log).
The FS mounts okay no matter what, it is trying to read the inodes where it crashes. Thanks for the advise.
> Dropping the log is *not* a panacea to all btrfs problems. It's
> there for a very limited class of issues, which rarely show up these
> days. I wish there were some way of editing the internet(*) to remove the
> idea that btrfs-zero-log will magically fix everything. It won't.
Good to know.
> (*) https://www.xkcd.com/386/ is probably appropriate here.
>
>> Once again btrfsck --repair /dev/sdm ended with
>>
>> parent transid verify failed on 94238015488 wanted 150690 found 150691
>> Ignoring transid failure
>>
>> no attempt to actually repair the volume. No indication from the tools why.
>
> A transid failure means that the superblock has been written out to
> disk *before* a part of the metadata that forms that transaction, and
> then the machine has crashed in some way that prevented the
> late-arriving metadata from hitting the disk. There are two ways that
> this can happen: it's a bug in the kernel, or the hardware lies about
> having written data. Both are possible, but the former is more likely.
Also good to know. I agree to the bug in the kernel. I think you just hit on the issue here. Since this COW, we should be able to assume that the superblock is then still "empty." Or do I misunderstand?
>
> Once this failure has happened, the FS is corrupt in a way that's
> hard to repair reliably. I did raise this question with Chris a while
> ago, and my understanding from the conversation was that he didn't
> think that it was possible to fix transid failures in btrfsck.
I guess I don't understand how that could be designed that way.
> Once again: zeroing the log won't help. It doesn't fix everything.
> In fact, it rarely fixes anything.
> The reason there's no documentation on fixing transid failures is
> because there's no good fix for them.
Then what is the point of the transactions? Why do we care about transid mismatch? Why keep something, that if it fails, breaks the whole thing?
Thanks for the thoughts.
next prev parent reply other threads:[~2015-05-08 21:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 21:56 Kernel Dump scanning directory Anthony Plack
2015-05-07 14:33 ` Anthony Plack
2015-05-07 21:30 ` Anthony Plack
2015-05-08 16:44 ` Anthony Plack
2015-05-08 20:58 ` Duncan
2015-05-08 21:37 ` Anthony Plack
2015-05-08 22:06 ` Duncan
2015-05-08 22:06 ` Noah Massey
2015-05-08 21:18 ` Hugo Mills
2015-05-08 21:49 ` Anthony Plack [this message]
2015-05-08 22:37 ` Hugo Mills
2015-05-11 17:30 ` Anthony Plack
2015-05-12 6:33 ` Duncan
2015-05-08 22:01 ` Kernel Dump scanning directory - New Scary Issue Anthony Plack
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=A54EAF29-BF4C-4CCA-BFBF-FEDFF2A01C73@plack.net \
--to=anthony@plack.net \
--cc=hugo@carfax.org.uk \
--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).