From: "NeilBrown" <neilb@suse.de>
To: "Dylan Taft" <d13f00l@gmail.com>
Cc: "Nick Andrew" <nick@nick-andrew.net>,
linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org
Subject: Re: MDADM Software Raid Woes
Date: Fri, 19 Dec 2008 07:06:11 +1100 (EST) [thread overview]
Message-ID: <44f470466dcf22c47f6700502caf9cbd.squirrel@neil.brown.name> (raw)
In-Reply-To: <47ed01bd0812180508t89d1aecr13d2b9e8402ed885@mail.gmail.com>
On Fri, December 19, 2008 12:08 am, Dylan Taft wrote:
> I may give that a shot.
>
> But it also looks like my major numbers are wrong on the actual device
> nodes?
> brw-r----- 1 root disk 9, 0 Dec 17 19:13 0
> brw-r----- 1 root disk 259, 0 Dec 17 19:13 1
> brw-r----- 1 root disk 259, 1 Dec 17 19:13 2
> brw-r----- 1 root disk 259, 2 Dec 17 19:13 3
>
> Shouldn't this be 9,something, not 259?
>
> If I change the partition type from fd to something else, and don't
> allow the kernel to auto assemble, then assemble manually via mdadm,
> things work right.
> Any idea what could cause thee major numbers to be wrong?
Almost certainly some udev configuration going wrong.
What distro are you running?
Is there are file in /lib/udev/rules.d or /etc/udev/rules.d with 'md'
in the name? What is in that file?
Prior to 2.6.28, normal md devices (major number 9) could not be
partitioned. You needed to use "mdp" devices (major number close to 254).
To get autodetect to create these use the kernel parameter
"raid=partitionable".
In 2.6.28, partitions don't have to have the same major number as the
base device.
In you case,
md0 is 9,0
md1 is 9,1
md1p1 is 259,0
md1p2 is 259.1
md1p3 is 259,2
as you can see, the device nodes have been created with the wrong
name. In each case the name used is md followed by the last digit
of what should have been used. udev is the only thing that could have
done that.
Hence my questions about your distro and udev configuration.
NeilBrown
next prev parent reply other threads:[~2008-12-18 20:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-18 4:33 Dylan Taft
2008-12-18 6:16 ` Dylan Taft
2008-12-18 6:56 ` Nick Andrew
2008-12-18 13:08 ` Dylan Taft
2008-12-18 20:06 ` NeilBrown [this message]
2008-12-19 0:03 ` Dylan Taft
2008-12-19 0:26 ` NeilBrown
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=44f470466dcf22c47f6700502caf9cbd.squirrel@neil.brown.name \
--to=neilb@suse.de \
--cc=d13f00l@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=nick@nick-andrew.net \
/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
all inboxes | Powered by JetHome®