From: NeilBrown <neilb@suse.de>
To: Claude Nobs <claudenobs@blunet.cc>
Cc: linux-raid@vger.kernel.org
Subject: Re: Likely forced assemby with wrong disk during raid5 grow. Recoverable?
Date: Wed, 23 Feb 2011 12:53:38 +1100 [thread overview]
Message-ID: <20110223125338.2179dd78@notabene.brown> (raw)
In-Reply-To: <AANLkTimaemNqVwaLmqYCS+6fHCTVmAqzUe9RUh3rdhvc@mail.gmail.com>
On Wed, 23 Feb 2011 01:56:13 +0100 Claude Nobs <claudenobs@blunet.cc> wrote:
> bernstein@server:~/mdadm$ sudo ./mdadm -Afvv /dev/md2 /dev/sda1
> /dev/md0 /dev/md1 /dev/sdc1
> mdadm: looking for devices for /dev/md2
> mdadm: /dev/sda1 is identified as a member of /dev/md2, slot 4.
> mdadm: /dev/md0 is identified as a member of /dev/md2, slot 3.
> mdadm: /dev/md1 is identified as a member of /dev/md2, slot 2.
> mdadm: /dev/sdc1 is identified as a member of /dev/md2, slot 0.
> mdadm: forcing event count in /dev/md1(2) from 133603 upto 133609
This is normal - mdadm is just letting you know that it is including in the
array a device that looks a bit old - we expected this.
> mdadm: Cannot open /dev/sdc1: Device or resource busy
This is odd. I cannot explain this at all. When this message is printed
mdadm should give up and not continue. Yet it seems that it did continue
because the array is started and is reshaping.
> bernstein@server:~/mdadm$ cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
> [raid4] [raid10]
> md2 : active raid5 md1[3] md0[4] sda1[5] sdc1[0]
> 2930281920 blocks super 1.2 level 5, 64k chunk, algorithm 2 [5/4] [U_UUU]
> [==>..................] reshape = 12.8% (125839952/976760640)
> finish=825.1min speed=17186K/sec
This looks OK. 125839952 corresponds to a "reshape Pos'n" of
503359808 which is slightly after where we would expect it to start, which
is what we would expect.
There won't be any info in the logs to tell us exactly where it started,
which is a shame, but it probably started at the right place.
>
> this i not strictly a raid/mdadm question, but do you know a simple
> way to ckeck everything went ok? i think that an e2fsck (ext4 fs) and
> checksumming some random files located behind the interruption point
> should verify all went ok. plus just to be sure i'd like to check
> files located at the interruption point. is the offset to the
> interruption point into the md device simply the reshape pos'n (e.g.
> 502815488K) ?
No - just the things you suggest.
The Reshape pos'n is the address in the array where reshape was up to.
You could try using 'debugfs' to have a look at the context of those blocks.
Remember to divide this number by 4 to get an ext4fs block number (assuming
4K blocks).
Use: testb BLOCKNUMBER COUNT
to see if the blocks were even allocated.
Then
icheck BLOCKNUM
on a few of the blocks to see what inode was using them.
Then
ncheck INODE
to find a path to that inode number.
Feel free to report your results - particularly if you find anything helpful.
NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-02-23 1:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTikhOAXQ6JAG1fK3x9V3icki8cjn0_ggyQwkGmnt@mail.gmail.com>
2011-02-20 3:23 ` Likely forced assemby with wrong disk during raid5 grow. Recoverable? Claude Nobs
2011-02-20 5:25 ` NeilBrown
2011-02-20 14:44 ` Claude Nobs
2011-02-20 14:47 ` Mathias Burén
2011-02-21 0:53 ` NeilBrown
2011-02-21 1:03 ` NeilBrown
2011-02-23 0:56 ` Claude Nobs
2011-02-23 1:53 ` NeilBrown [this message]
2011-02-24 4:06 ` Claude Nobs
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=20110223125338.2179dd78@notabene.brown \
--to=neilb@suse.de \
--cc=claudenobs@blunet.cc \
--cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.