Comment 5 for bug 569900

Revision history for this message
ceg (ceg) wrote : Re: mount: mounting /dev/md0 on /root/ failed: Invalid argument

Your probably hitting several bugs.

I have also seen some differences in the geometry of virtual drives (at least I tent to size them to some human friendly number). I have seen some "unused space" things and (c)fdisk complaining.

IIRC the most usefull way with md's partitionable array feature is to use the entire disk ("sdX") as members. Then you can partition the md device, and by this partition all mirror devices at the same time. If you create the array from one member + "missing" the partition table on the disk gets used for the raid. Mdadm will create only a configurable number of device nodes for partitions though.

Does blkid detect sdX wrongly as raid?

mdadm --incremental defaults to set up arrays with partitionable device nodes if auto= is not defined otherwise in mdadm.conf. Not a bad idea in general, but mdadm is only able to do so during initramfs. (map file is missing later). Also devices are not automatically removed from the array and block readdition by incremental. See Bug #495370.

Bug #551719 enabled kernel raid autodetection disturbs udev/mdadm (initramfs & later)