I'm starting out with software RAID on Linux and hit a roadblock when using a nested RAID schema. I have three small disks that I'm RAID0ing, and then RAID1ing with a partition on another larger HDD. In effect, this leads to a RAID0+1 scheme, with a RAID1 of a physical partition and a RAID0 partition.

It all works find when I assemble the partitions manually, however on reboot, the top RAID1 doesn't get completely assembled - only the physical partition gets added to the RAID. I have to manually add the RAID0 partition to it, which in turn requires a complete recovery of the drive.

Is there any way to make the kernel attach both the physical and RAID0 partition to the RAID1 array on boot?

The RAID0 drives are /dev/ida/c0d0p2, /dev/ida/c0d1p1 and /dev/ida/c0d2p1. They are set to attach to the /dev/md0 array. Then /dev/md0p1 and /dev/sda1 should be attached to /dev/md1, which is the system root partition.

link|improve this question
1  
Why, oh why, are you implementing this? It's just...bad. – MDMarra Dec 14 '11 at 18:20
@MarkM: It's on very old hardware, and because I can ;) – Serge Dec 14 '11 at 18:23
I've been sat here thinking about what you're doing and why for quite a while, I'm struggling, this seems ridiculous, please prove me wrong by explaining. – Chopper3 Dec 14 '11 at 18:24
1  
"@MarkM: It's on very old hardware, and because I can ;)" Server Fault is for system administrators and desktop support professionals, people who manage or maintain computers in a professional capacity. <-- From the faq. It seems that you may be asking this on the wrong site. – MDMarra Dec 14 '11 at 18:25
Just because a professional volunteers for a non-profit that doesn't have resources (yet) to upgrade the hardware to something a bit more modern.. doesn't invalidate the question :( – qdot Dec 14 '11 at 18:42
show 1 more comment
feedback

closed as not a real question by Zoredache, Chris S, Chopper3 Dec 14 '11 at 18:26

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

Have you tried not partitioning /dev/md0?

You can also specify the devices to include in the array in the mdadm.conf file - this is often a better way to approach odd configs.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.