From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfsck: backpointer mismatch (and multiple other errors)
Date: Sun, 3 Apr 2016 05:06:19 +0000 (UTC) [thread overview]
Message-ID: <pan$2593b$f74bb320$4b6df891$663eb0b@cox.net> (raw)
In-Reply-To: 20160403060202.03e67651@jupiter.sol.kaishome.de
Kai Krakow posted on Sun, 03 Apr 2016 06:02:02 +0200 as excerpted:
> No, other files are affected, too. And it looks like those files are
> easily affected even when removed and recreated from whatever backup
> source.
I've seen you say that several times now, I think. But none of those
times has it apparently occurred to you to double-check whether it's the
/same/ corruptions every time, or at least, if you checked it, I've not
seen it actually /reported/. (Note that I didn't say you didn't report
it, only that I've not seen it. A difference there is! =:^)
If I'm getting repeated corruptions of something, that's the first thing
I'd check, is there some repeating pattern to those corruptions, same
place in the file, same "wanted" value (expected), same "got" value, (not
expected if it's reporting corruption), etc.
Then I'd try different variations like renaming the file, putting it in a
different directory with all of the same other files, putting it in a
different directory with all different files, putting it in a different
directory by itself, putting it in the same directory but in a different
subvolume... you get the point.
Then I'd try different mount options, with and without compression, with
different kinds of compression, with compress-force and with simple
compress, with and without autodefrag...
I could try it with nocow enabled for the file (note that the file has to
be created with nocow before it gets content, for nocow to take effect),
tho of course that'll turn off btrfs checksumming, but I could still for
instance md5sum the original source and the nocowed test version and see
if it tests clean that way.
I could try it with nocow on the file but with a bunch of snapshots
interwoven with writing changes to the file (obviously this will kill
comparison against the original, but I could arrange to write the same
changes to the test file on btrfs, and to a control copy of the file on
non-btrfs, and then md5sum or whatever compare them).
Then, if I had the devices available to do so, I'd try it in a different
btrfs of the same layout (same redundancy mode and number of devices),
both single and dup mode on a single device, etc.
And again if available, I'd try swapping the filesystem to different
machines...
OK, so trying /all/ the above might be a bit overboard but I think you
get the point. Try to find some pattern or common element in the whole
thing, and report back the results at least for the "simple" experiments
like whether the corruption appears to be the same (same got at the same
spot) or different, and whether putting the file in a different subdir or
using a different name for it matters at all. =:^)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2016-04-03 5:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-31 20:44 btrfsck: backpointer mismatch (and multiple other errors) Kai Krakow
2016-03-31 23:27 ` Henk Slager
2016-04-01 1:10 ` Qu Wenruo
2016-04-02 8:47 ` Kai Krakow
2016-04-02 9:00 ` Kai Krakow
2016-04-02 17:17 ` Henk Slager
2016-04-02 20:16 ` Kai Krakow
2016-04-03 0:14 ` Chris Murphy
2016-04-03 4:02 ` Kai Krakow
2016-04-03 5:06 ` Duncan [this message]
2016-04-03 22:19 ` Kai Krakow
2016-04-04 0:51 ` Chris Murphy
2016-04-04 19:36 ` Kai Krakow
2016-04-04 19:57 ` Chris Murphy
2016-04-04 20:50 ` Kai Krakow
2016-04-04 21:00 ` Kai Krakow
2016-04-04 23:09 ` Chris Murphy
2016-04-05 7:05 ` Kai Krakow
2016-04-04 4:34 ` Duncan
2016-04-04 19:26 ` Kai Krakow
2016-04-05 1:44 ` Duncan
2016-04-03 19:03 ` Chris Murphy
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='pan$2593b$f74bb320$4b6df891$663eb0b@cox.net' \
--to=1i5t5.duncan@cox.net \
--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).