linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Martin Dev <mrturtledev@gmail.com>
Cc: Chris Murphy <lists@colorremedies.com>,
	Roman Mamedov <rm@romanrm.net>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: csum failed during copy/compare
Date: Fri, 21 Oct 2016 10:19:29 -0600	[thread overview]
Message-ID: <CAJCQCtRC6iMw3cE3pX6UprE1AFvYSQ01vpSwuTBrA6XifhsCLQ@mail.gmail.com> (raw)
In-Reply-To: <CAG6KGPRy4xisK_H2RZm-==xuBtsRyqdZ5O=8=UE_MF1434gDHQ@mail.gmail.com>

On Fri, Oct 21, 2016 at 7:19 AM, Martin Dev <mrturtledev@gmail.com> wrote:
> SATA trace shows device behaving correctly.
> btrfs repair --ignore-errors /dev/sda2 /tmp/ will yield files that are
> not verifiable by FIO, and differ from the original files on the
> internal drive that they were copied from at the failing offset.

Did you try without discard mount option? And did you get different results?

I'm not following 'btrfs repair --ignore-errors /dev/sda2 /tmp/'  at
all. Is this actually restore?

I'm not an expert in this particular area of finding problems as
they're being written - but it sounds like that's what's going on in
your case - since kernel messages are currently not revealing at all,
all I can think of is to build a kernel.org kernel, I think for what
you're doing it's fine to use 4.4.26 but it might get more traction to
use 4.9.rc1 just because that's what's currently being worked on and
likely where any fix would have to go first before it got backported.
If it's a bug. And I'd build with these:

CONFIG_BTRFS_FS_CHECK_INTEGRITY=y
CONFIG_BTRFS_DEBUG=y

The first does nothing unless you use one of two possible mount
options check_int and check_int_data.
https://btrfs.wiki.kernel.org/index.php/Mount_options

I don't have any advice on how to test. Maybe leave out the check
integrity mount options for the first round and see if you can still
trigger the problem, since there are already two major changes: a.)
it's a kernel.org kernel and b.) it has debug enabled. If you can
trigger the problem but it's still not revealing then test with
check_int which has less performance impact than check_int_data. It
looks like what you're getting is a metadata inconsistency but I'm not
certain.

-- 
Chris Murphy

      reply	other threads:[~2016-10-21 16:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAG6KGPS8Gvy2zGCe22mMmk4uXrqVyRP8FHayhe0ph-8vC+kA4A@mail.gmail.com>
2016-10-10  9:44 ` Fwd: csum failed during copy/compare Martin Dev
2016-10-10 12:02   ` Martin Dev
2016-10-10 13:56     ` Martin Dev
2016-10-10 18:42   ` Roman Mamedov
2016-10-10 21:05     ` Chris Murphy
2016-10-19 14:39       ` Martin Dev
2016-10-21 13:19         ` Martin Dev
2016-10-21 16:19           ` Chris Murphy [this message]

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=CAJCQCtRC6iMw3cE3pX6UprE1AFvYSQ01vpSwuTBrA6XifhsCLQ@mail.gmail.com \
    --to=lists@colorremedies.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mrturtledev@gmail.com \
    --cc=rm@romanrm.net \
    /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).