From: Chris Murphy <lists@colorremedies.com>
To: Waxhead <waxhead@online.no>
Cc: Duncan <1i5t5.duncan@cox.net>, Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Btrfs scrub failure for raid 6 kernel 4.3
Date: Mon, 28 Dec 2015 14:50:23 -0700 [thread overview]
Message-ID: <CAJCQCtQJRgnkbSq3MG9yM70MxXnpBdbs2GMPSS1_1yohrTuDBA@mail.gmail.com> (raw)
In-Reply-To: <5681A6FD.2020808@online.no>
On Mon, Dec 28, 2015 at 2:17 PM, Waxhead <waxhead@online.no> wrote:
> What if my use of dd accidentally trashed some important part of the new
> filesystem and btrfs therefore thinks a older version of the filesystem is
> the current one? If UUID's are in every metadatablock I find that pretty
> hard to believe.
Each leaf has the fsuuid in it. I'm not sure if it also has the
devi_item.uuid or if that's only in the supers. But in any case the
fsid is strewn throughout metadata expressly to make sure it doesn't
get confused if it runs across stale metadata from a previous system.
XFS v5 metadata does this also, although I have no idea how it's
implemented compared to Btrfs.
>What if the UUID==0 ? is this accounted for?
Yes, this is a nil uuid.
>> Of course if you weren't experimenting with btrfs on these devices back
>> at the end of March and there's absolutely no way they could have gotten
>> btrfs on them until say October or whenever, then we're back to the date
>> somehow being wrong for that scrub, and having to look elsewhere for why
>> scrub is crashing.
>>
> No, by all means - I tried a lot of weird stuff on those usb sticks way
> before march so they defiantly had a (multi disk) btrfs filesystem on them
> before.
It shouldn't be a problem. But... These are USB flash drives? Aren't
they described as not containing your data at all, but rather a
probabilistic representation of your data? Ha. So while it ordinarily
returns your data, sometimes it won't.
You might check if any of them are counterfeit which will increase the
chances of getting crap back from the drive. Check this blog entry and
see if either F3 or gnome-multi-writer-probe can help you determine
this. Note there's a chance the drives aren't useful after using this
tool, so, be ready to be done with this Btrfs volume before
proceeding.
https://blogs.gnome.org/hughsie/2015/01/28/detecting-fake-flash/
Even if that comes up clean, I'd run badblocks on everyone of those
sticks overnight and see if you get any errors. Btrfs *probably* ought
to deal with a handful of errors. But if you were to get really
unlucky and have a couple of errors at the same time as your induced
corruption error, that's effectively three missing devices (for that
read stripe). For badblocks, something like -vsw looks good; note
that this is destructive and it will take a while (multiple passes,
multiple patterns, writes then reads for each for the entire drive).
--
Chris Murphy
next prev parent reply other threads:[~2015-12-28 21:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-27 13:59 Btrfs scrub failure for raid 6 kernel 4.3 Waxhead
2015-12-27 18:29 ` Chris Murphy
2015-12-27 23:06 ` Waxhead
2015-12-28 1:48 ` Duncan
2015-12-28 2:04 ` Waxhead
2015-12-28 2:18 ` Chris Murphy
2015-12-28 21:08 ` Waxhead
2015-12-28 21:23 ` Chris Murphy
[not found] ` <5681BDD0.1060407@online.no>
2015-12-29 0:29 ` Chris Murphy
2015-12-29 20:19 ` Waxhead
2015-12-30 4:22 ` Chris Murphy
2015-12-30 18:31 ` Waxhead
2015-12-30 19:08 ` Waxhead
2015-12-28 4:02 ` Duncan
2015-12-28 21:17 ` Waxhead
2015-12-28 21:50 ` Chris Murphy [this message]
2015-12-28 0:39 ` Christoph Anton Mitterer
2015-12-28 0:58 ` Chris Murphy
2015-12-28 1:09 ` Christoph Anton Mitterer
2015-12-28 1:23 ` Chris Murphy
2015-12-28 1:31 ` Christoph Anton Mitterer
2015-12-28 2:16 ` Duncan
2015-12-28 1:21 ` Duncan
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=CAJCQCtQJRgnkbSq3MG9yM70MxXnpBdbs2GMPSS1_1yohrTuDBA@mail.gmail.com \
--to=lists@colorremedies.com \
--cc=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
--cc=waxhead@online.no \
/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).