linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Oliver Freyermuth <o.freyermuth@googlemail.com>,
	Qu Wenruo <quwenruo.btrfs@gmx.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs goes read-only when btrfs-cleaner runs
Date: Tue, 15 Jan 2019 18:11:39 -0700	[thread overview]
Message-ID: <CAJCQCtTzUHw5COdsEjskAHWJhAiiyOBtAxT0f7cf6oeziQ=1gg@mail.gmail.com> (raw)
In-Reply-To: <CAJCQCtSFxdRVeEv_G-ka3oenaR2e=HwNJ0ni3Fxn=pV_XDKDyA@mail.gmail.com>

On Tue, Jan 15, 2019 at 5:41 PM Chris Murphy <lists@colorremedies.com> wrote:
>
> The relevant error messages are:
>
> unable to find ref byte
> errno=-2 No such entry
>
> Somehow a reference byte has been corrupted and inserted into multiple
> locations in the tree and it's not repairable: i.e. neither a correct
> value can be inferred from other available information, nor do the
> tools have a good way to just trim out the item that contains bad key
> pointers - part of the problem with just cutting out the bad parts is
> it's not clear the problem is made even worse or how far the
> corruption extends.
>
> What's further troubling though is the idea that this corruption might
> have propagated to a separate volume via snapshot send receive. Either
> of the file systems might still be useful for a developer, it seems to
> me important to have some kind of check to make sure it's not possible
> for corruption to propagate in this manner.
>
> In the meantime, I think it's a good idea to do a memory test. There's
> some information in the archives about how to do this in a more
> reliable way than just memtest86 type tests, but if you can run even a
> memtest86 over a weekend it might confirm there's a memory problem.
> Unfortunately a pass doesn't necessarily mean there aren't rare
> transient problems.

Also, this could be related...

[ 4368.361487] CPU: 0 PID: 23915 Comm: kworker/u16:11 Tainted: P
 W  O      4.20.1-gentoo #1

Do you know why it's tainted? Looks like an out of tree proprietary
module. And also there has been a previous kernel warning but that
part of the dmesg isn't included. It's not possible to absolutely
exclude an out of tree kernel from being a source of memory
corruption, but it makes it a possible suspect and therefore it makes
tracking down the source of the problem harder.

-- 
Chris Murphy

  reply	other threads:[~2019-01-16  1:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-13 21:51 btrfs goes read-only when btrfs-cleaner runs Oliver Freyermuth
2019-01-14  0:48 ` Oliver Freyermuth
2019-01-15 22:24   ` Oliver Freyermuth
2019-01-15 22:58     ` Oliver Freyermuth
2019-01-16  7:11     ` Nikolay Borisov
2019-01-16 19:40       ` Oliver Freyermuth
2019-01-17  0:28         ` Chris Murphy
2019-01-17  1:03           ` Oliver Freyermuth
2019-01-16  0:41 ` Chris Murphy
2019-01-16  1:11   ` Chris Murphy [this message]
2019-01-16  1:15     ` Oliver Freyermuth
2019-01-16  1:13   ` Oliver Freyermuth

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='CAJCQCtTzUHw5COdsEjskAHWJhAiiyOBtAxT0f7cf6oeziQ=1gg@mail.gmail.com' \
    --to=lists@colorremedies.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=o.freyermuth@googlemail.com \
    --cc=quwenruo.btrfs@gmx.com \
    /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).