From: Chris Murphy <lists@colorremedies.com>
To: Zak Kohler <y2k@y2kbugger.com>
Cc: "Lakshmipathi.G" <lakshmipathi.g@gmail.com>,
btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs send yields "ERROR: send ioctl failed with -5: Input/output error"
Date: Sun, 29 Oct 2017 20:05:15 +0100 [thread overview]
Message-ID: <CAJCQCtS9he3cpqKgnFQjM2GPA1atvgfmi2ZhrjGZg8Yq1h91BQ@mail.gmail.com> (raw)
In-Reply-To: <1484297967.48018.1508985286675@email.1and1.com>
On Thu, Oct 26, 2017 at 4:34 AM, Zak Kohler <y2k@y2kbugger.com> wrote:
> I will gladly repeat this process, but I am very concerned why this
> corruption happened in the first place.
Right. So everyone who can, needs to run the three scrubs on all
available Btrfs volumes/devices and see if they get any discrepancies.
I only ever use the online scrub so I have no idea if --offline or the
older check --check-data-csum differ from it.
scrub start
scrub start --offline
btrfs check --check-data-csum
I think you've hit a software bug if those three methods don't exactly
agree with each other. And it's a question which one is correct, or if
they all have different bugs in them?
>
> More tests:
>
> scrub start --offline
> All devices had errors in differing amounts
> I will verify that these counts are repeatable.
> Csum error: 150
> Csum error: 238
> Csum error: 175
>
> btrfs check
> found 2179745955840 bytes used, no error found
>
> btrfs check --check-data-csum
> mirror 0 bytenr 13348855808 csum 2387937020 expected csum 562782116
> mirror 0 bytenr 23398821888 csum 3602081170 expected csum 1963854755
Offhand that sounds like three different results, which is sorta fakaked.
> ...
>
> The only thing I could think of is that the btrfs version that I used to mkfs
> was not up to date. Is there a way to determine which version was used to
> create the filesystem?
That information isn't in the superblock. I think it could be added to
the device tree as a PERSISTENT_ITEM, although I'm not sure how useful
it is.
Anyway, I don't think it's related. mkfs.btrfs writes a tiny amount to
the drive, and almost certainly the problem is happening later.
--
Chris Murphy
next prev parent reply other threads:[~2017-10-29 19:05 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-23 4:25 btrfs send yields "ERROR: send ioctl failed with -5: Input/output error" Zak Kohler
2017-10-24 0:23 ` Zak Kohler
2017-10-24 4:52 ` Lakshmipathi.G
2017-10-24 6:00 ` Zak Kohler
2017-10-25 1:52 ` Zak Kohler
2017-10-25 3:43 ` Lakshmipathi.G
2017-10-26 2:34 ` Zak Kohler
2017-10-29 19:05 ` Chris Murphy [this message]
2017-10-30 1:57 ` Zak Kohler
2017-10-30 4:09 ` Duncan
2017-10-30 14:36 ` Zak Kohler
2017-10-31 2:33 ` Duncan
2017-11-02 12:23 ` Zak Kohler
2017-10-30 18:52 ` Chris Murphy
2017-11-06 20:04 ` Chris Murphy
[not found] ` <CAD8FQQ3XSsLt4XYdeMg7r3oX9WUerW27f8RMuKurjL4cpY8=1g@mail.gmail.com>
2017-11-11 19:11 ` Chris Murphy
2017-10-30 4:07 ` Lakshmipathi.G
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=CAJCQCtS9he3cpqKgnFQjM2GPA1atvgfmi2ZhrjGZg8Yq1h91BQ@mail.gmail.com \
--to=lists@colorremedies.com \
--cc=lakshmipathi.g@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=y2k@y2kbugger.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).