Re: Strange raid device numbering

From: Phil Turmel
Date: Fri Oct 08 2010 - 08:03:46 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/