From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Btrfs scrub failure for raid 6 kernel 4.3
Date: Mon, 28 Dec 2015 04:02:31 +0000 (UTC) [thread overview]
Message-ID: <pan$2108f$416fcf23$11933405$72f48ca8@cox.net> (raw)
In-Reply-To: 568098B1.2040908@online.no
Waxhead posted on Mon, 28 Dec 2015 03:04:33 +0100 as excerpted:
> Duncan wrote:
>> Waxhead posted on Mon, 28 Dec 2015 00:06:46 +0100 as excerpted:
>>
>>> btrfs scrub status /mnt
>>> scrub status for 2832346e-0720-499f-8239-355534e5721b
>>> scrub started at Sun Mar 29 23:21:04 2015
>>> Now here is the first worrying part... it says that scrub started at
>>> Sun Mar 29.
>> Hmm... The status is stored in readable plain-text files in /var/lib/
>> btrfs/scrub.status.*, where the * is the UUID. If you check there, the
>> start time (t_start) seems to be in POSIX time.
>>
>> Is it possible you were or are running the scrub from, for instance, a
>> rescue image that might not set the system time correctly and that
>> falls back to, say, the date the rescue image was created, if it can't
>> get network connectivity or some such?
>>
> No I don't think so....
>
> # ls -la
> /var/lib/btrfs/scrub.status.2832346e-0720-499f-8239-355534e5721b
> -rw------- 1 root root 2315 Mar 29 2015
> /var/lib/btrfs/scrub.status.2832346e-0720-499f-8239-355534e5721b
>
> # cat /var/lib/btrfs/scrub.status.2832346e-0720-499f-8239-355534e5721b
> scrub status:1
> 2832346e-0720-499f-8239-355534e5721b:1|[...]|t_start:1427664064|[...]
>
> # date Mon Dec 28 02:54:11 CET 2015
>
> Just to clear up any possible misunderstandings. I run this from a
> simple netbook, and I have no idea why the date is off by so much.
Well, both the file time and the unix time in the file say back in March,
so whatever time syncing mechanism you use on that netbook, it evidently
failed the boot you did that scrub.
> Note: I have used the same USB drives (memory sticks really) to create
> various configs of btrfs filesystems earlier. Could it be old metadata
> in the filesystem that mess up things? Is not metadata stamped with the
> UUID of the filesystem to prevent such things?
Yes, metadata is stamped with UUID. But one other possible explanation
for the scrub time back in March might be if you were already playing
with it back then, and somehow you have a USB stick with a filesystem
from back then that... somehow... has the same UUID as the one you're
experimenting on today.
Don't ask me how it could get the same UUID. I don't understand it
either. But if it did somehow happen, btrfs would be /very/ confused,
and crashing scrubs and further data corruption could certainly result.
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.
--
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:[~2015-12-28 4:02 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 [this message]
2015-12-28 21:17 ` Waxhead
2015-12-28 21:50 ` Chris Murphy
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='pan$2108f$416fcf23$11933405$72f48ca8@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).