Skip to contentSkip to conversation

raid1+raid0 mdadm

DISCUSSION Dariusz Malec 3 participants 3 messages Mar 21, 2006 – Mar 25, 2006 MD RAID

lore
Share & tools
lore
#0 lore raw

I can't configure mdadm. I have created 2 raid1 devices and i wanted to connect them with raid0. Everything is fine when i use command line, but after reboot mdadm starts only raid1 devices. Where I can find info about such config? Darek

#1 lore raw
Quoted 3 lines · Dariusz Malec

I can't configure mdadm. I have created 2 raid1 devices and i wanted to connect them with raid0. Everything is fine when i use command line, but after reboot mdadm starts only raid1 devices.

Are you using udev?

IIRC, there was an issue with stacked md devices like yours. Your problem might be that the device node for the final raid0 is missing.

If your raid1's are md0 and md1, add

	mknod -m 600 /dev/md2 b 9 2

to your init scripts, just before calling mdadm.

Of course, that's only an ugly workaround (that once worked for me).

Andre

Signature · 1 line
The only person who always got his work done by Friday was Robinson Crusoe
#2 lore raw
Quoted 9 lines · Andre Noll
Quoted 1 line · Dariusz Malec

I can't configure mdadm. I have created 2 raid1 devices and i wanted to connect them with raid0. Everything is fine when i use command line, but after reboot mdadm starts only raid1 devices.

Are you using udev?

IIRC, there was an issue with stacked md devices like yours. Your problem might be that the device node for the final raid0 is missing.

mdadm --auto=yes creates device files for you.

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \