Skip to contentSkip to conversation

mdadm devices building in the wrong order

DISCUSSION [email protected] 2 participants 2 messages Oct 23, 2007 MD RAID

lore
Share & tools
lore
#0 lore raw

Hello,

I am having a rather urgent and annoying problem and I would appreciate some input from anyone who has come across this. I have not been able to find a solution as of yet. My issue deals with nested raid using mdadm, and it seems that upon a reboot mdadm is attempting to assemble the larger array before the smaller component array is created, and thus it is failing.

I have a degraded raid 5 array md1 whch is composed of hda1 and md0. Upon a reboot, mdadm attempts to build md1 before md0 is built. It fails, so md1 is not build and I need to assemble it manually.

Is there a solution for this?

Thanks you for your time,

Marc

p.s. I would like to also take a second to express my gratitude to Neil Brown for the mdadm utility. I have found it very useful and it has made working with raid in linux very enjoyable and straight-forward!

#1 lore raw
Quoted 9 lines · On Monday October 22, [email protected] wrote:

Hello,

I am having a rather urgent and annoying problem and I would appreciate some input from anyone who has come across this. I have not been able to find a solution as of yet. My issue deals with nested raid using mdadm, and it seems that upon a reboot mdadm is attempting to assemble the larger array before the smaller component array is created, and thus it is failing.

Quoted 5 lines

I have a degraded raid 5 array md1 whch is composed of hda1 and md0. Upon a reboot, mdadm attempts to build md1 before md0 is built. It fails, so md1 is not build and I need to assemble it manually.

Is there a solution for this?

What order are the arrays listed in in mdadm.conf? If md1 comes first, put it last.

Otherwise, I cannot think what might be happening. Maybe if you include some kernel logs that might help.

Quoted 8 lines

Thanks you for your time,

Marc

p.s. I would like to also take a second to express my gratitude to Neil Brown for the mdadm utility. I have found it very useful and it has made working with raid in linux very enjoyable and straight-forward!

Thanks :-)

NeilBrown