From: Neil Brown <neilb@suse.de>
To: Jim Paris <jim@jtan.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Assembly problems with kernel 2.6.30?
Date: Fri, 12 Jun 2009 11:33:10 +1000 [thread overview]
Message-ID: <18993.45142.80174.321434@notabene.brown> (raw)
In-Reply-To: message from Jim Paris on Thursday June 11
On Thursday June 11, jim@jtan.com wrote:
> Hi,
>
> I am running Debian with my root filesystem on /dev/md1.
> At boot, hook scripts in initramfs-tools run:
>
> mdadm --assemble --scan --run --auto=yes /dev/md1
>
> with the following /etc/mdadm/mdadm.conf:
>
> DEVICE partitions
> ARRAY /dev/md0 level=raid1 num-devices=6 UUID=dece84f3:a8f8be71:ea9d9fee:21fd5f90
> ARRAY /dev/md1 level=raid1 num-devices=2 UUID=0598d2ea:f6c0185f:614fa502:109d1a5d
> ARRAY /dev/md2 level=raid5 num-devices=4 UUID=eed65e3878:f4e6e055:198bdcfe:77de48
>
> For the record:
> /dev/md0 uses /dev/sd[abcdef]1
> /dev/md1 uses /dev/sd[ab]2
> /dev/md2 uses /dev/sd[cdef]2
>
> On kernel 2.6.27.3, this worked fine. After upgrading to 2.6.30, the
> initrams failed with the error:
>
> mdadm: superblock on /dev/sdc2 doesn't match others - assembly aborted
>
> The solution was to change the /etc/mdadm/mdadm.conf to specifically
> list the metadata format:
>
> DEVICE partitions
> ARRAY /dev/md0 level=raid1 num-devices=6 UUID=dece84f3:a8f8be71:ea9d9fee:21fd5f90
> ARRAY /dev/md1 level=raid1 num-devices=2 UUID=0598d2ea:f6c0185f:614fa502:109d1a5d
> ARRAY /dev/md2 level=raid5 metadata=1.0 num-devices=4 UUID=eed65e3878:f4e6e055:198bdcfe:77de48
>
> This was tested with Debian mdadm packages 2.6.7.2-1 and 2.6.9-3 -- no
> difference.
>
> So, is this a bug? Kernel or mdadm? If user error, why did it work
> before? Also, why does the metadata on /dev/md2 matter for assembling
> /dev/md1?
It looks at first like it might be an mdadm problem - I cannot imagine
a kernel bug doing that. But you say it only happened with an update
to 2.6.30, which I cannot explain.
Can you:
for m in 0.90 1.0 1.1 1.2
do mdadm -E -e $m /dev/sd[cdef]2
done
and report the result?
Thanks,
NeilBrown
next prev parent reply other threads:[~2009-06-12 1:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 7:25 Assembly problems with kernel 2.6.30? Jim Paris
2009-06-12 1:33 ` Neil Brown [this message]
2009-06-12 2:33 ` Jim Paris
2009-06-12 8:00 ` Michael Tokarev
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=18993.45142.80174.321434@notabene.brown \
--to=neilb@suse.de \
--cc=jim@jtan.com \
--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 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).