From: Phil Turmel <philip@turmel.org>
To: "\"J.A. Magallón\"" <jamagallon@ono.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Strange raid device numbering
Date: Fri, 08 Oct 2010 08:03:39 -0400 [thread overview]
Message-ID: <4CAF089B.40204@turmel.org> (raw)
In-Reply-To: <20101008014318.04d7ded1@werewolf.home>
Hi J.A.,
On 10/07/2010 07:43 PM, J.A. Magallón wrote:
> Hi...
>
> I'm running kernel 2.6.36-rc6.
> I have just built a simple raid0 array with two disks, and I followed what I
> had always done:
[snip /]
> Strangely, after I reboot, the system insists in numbering it as
> md127, instead of md0.
>
> Why ?
> How can I force it to be md0 ? (its half aesthetics, half curiosity...)
I'm gonna guess that you have some combination of an initramfs, and/or you
don't have an /etc/mdadm.conf, and/or you haven't updated your initramfs with
the latest copy of it.
Raid auto-assembly in the kernel uses the minor numbers in the superblock (if
it can). Assembly by mdadm without instructions from mdadm.conf uses minor
numbers from 127 and down. (This may have changed in mdadm in the last few
months, but I recently switched from kernel auto-assembly to initramfs
assembly, so I can't say for sure.)
I've chosen to *not* use mdadm.conf, and find all of my devices with "LABEL="
syntax.
HTH,
Phil
prev parent reply other threads:[~2010-10-08 12:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-07 23:43 Strange raid device numbering J.A. Magallón
2010-10-08 12:03 ` Phil Turmel [this message]
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=4CAF089B.40204@turmel.org \
--to=philip@turmel.org \
--cc=jamagallon@ono.com \
--cc=linux-kernel@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