From: Albert Pauw <albert.pauw@gmail.com>
To: linux-raid@vger.kernel.org, neilb@suse.de
Subject: Re: Error in rebuild of two "layered" md devices in container
Date: Wed, 1 Aug 2012 20:34:24 +0200 [thread overview]
Message-ID: <CAGkViCEzijB_SRTYxGed5aFsEHFY2E7AxxS=UfLVpAUPSVUhEQ@mail.gmail.com> (raw)
In-Reply-To: <CAGkViCEBCMgPXbByGPe8MgTKsSkn1Dc=_XLgCCDCfSrEGwEs_w@mail.gmail.com>
Extra note:
as the mdadm -f command has to be addressed to a subarray, only this
one is going to be rebuild, even when other subarrays are depending on
this disk, as is in this case.
In the case below I failed the disk using mdadm -f /dev/md0 /dev/....
Albert
On 1 August 2012 19:52, Albert Pauw <albert.pauw@gmail.com> wrote:
> Hi Neil,
>
> found another bug.
>
> - Created a container with six disks
> - Created two md devices in it:
>
> mdadm -CR /dev/md0 -l 6 -n 6 -z 50M
> mdadm -CR /dev/md1 -l 5 -n 6 -z 50M
>
> The md devices are "layered" in the container across all disks.
>
> They both get build and are online.
>
> - Fail one disk, both md devices are affected
> - Remove disk
> - Clear superblock of removed disk
> - Add disk again (in essence, I just added a spare disk)
>
> Now comes the error:
>
> - md0 is rebuild
> - md1 is NOT rebuild
>
> Personalities : [raid6] [raid5] [raid4] [raid1]
> md1 : active raid6 sde[6] sdg[5] sdf[4] sdd[2] sdc[1] sdb[0]
> 204800 blocks super external:/md127/1 level 6, 512k chunk,
> algorithm 10 [6/6] [UUUUUU]
>
> md0 : active raid5 sdb[6] sdg[5] sdf[4] sdd[2] sdc[1]
> 256000 blocks super external:/md127/0 level 5, 512k chunk,
> algorithm 2 [6/5] [UUU_UU]
>
> md127 : inactive sde[3](S) sdb[0](S) sdg[5](S) sdf[4](S) sdd[2](S) sdc[1](S)
> 196608 blocks super external:ddf
>
> unused devices: <none>
>
> Physical Disks : 6
> Number RefNo Size Device Type/State
> 0 cb5ea6c1 1015808K /dev/sdc active/Online
> 1 a7f8ed2f 1015808K /dev/sdd active/Online
> 2 f769a815 1015808K /dev/sdf active/Online
> 3 025e6835 1015808K /dev/sdg active/Online
> 4 b22e9e4d 1015808K /dev/sdb active/Online
> 5 b4cccecc 1015808K /dev/sde active/Online
>
>
> Albert
next prev parent reply other threads:[~2012-08-01 18:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 17:52 Error in rebuild of two "layered" md devices in container Albert Pauw
2012-08-01 18:34 ` Albert Pauw [this message]
2012-08-14 23:43 ` NeilBrown
2012-08-15 20:04 ` Albert Pauw
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='CAGkViCEzijB_SRTYxGed5aFsEHFY2E7AxxS=UfLVpAUPSVUhEQ@mail.gmail.com' \
--to=albert.pauw@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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).