Skip to contentSkip to conversation

Autostart RAID1 on boot

DISCUSSION Spencer Tuttle 2 participants 3 messages Nov 15, 2005 MD RAID

lore
Share & tools
lore
#0 lore raw

Why do I need to run mdadm -A -ap /dev/md_d0 /dev/sda /dev/sdb to start my array everytime I boot? This seems like I will never be able to boot from this array if I have to run this command.

What do I have to do to autostart this array on boot?

Thanks,
Spencer

#1 lore raw
Quoted 1 line · Spencer Tuttle

What do I have to do to autostart this array on boot?

Read Documentation/md.txt in your kernel source. Has lots of cool options for setting up kernel assembly on boot.

If you have a reasonably recent array with persistent superblocks, something like this will do you fine for your root partition:

	md=0,/dev/hda1,/dev/hdc1

If you use initrd/early userspace stuff then you can also drop mdadm in your initrd image and get it to start the array. If you're using Debian, it's mkinitrd scripts automatically support that if you get things setup properly.

Signature · 8 lines
Ross Vandegrift
[email protected]

"The good Christian should beware of mathematicians, and all those who
make empty prophecies. The danger already exists that the mathematicians
have made a covenant with the devil to darken the spirit and to confine
man in the bonds of Hell."
	--St. Augustine, De Genesi ad Litteram, Book II, xviii, 37
#2 lore raw
Quoted 8 lines · Ross Vandegrift
Quoted 1 line · Spencer Tuttle

What do I have to do to autostart this array on boot?

Read Documentation/md.txt in your kernel source. Has lots of cool options for setting up kernel assembly on boot.

Quoted 9 lines

If you have a reasonably recent array with persistent superblocks, something like this will do you fine for your root partition:

	md=0,/dev/hda1,/dev/hdc1

If you use initrd/early userspace stuff then you can also drop mdadm in your initrd image and get it to start the array. If you're using Debian, it's mkinitrd scripts automatically support that if you get things setup properly.

That was it I was appending "md=d0,hda,hdb".

I changed to to "md=d0,/dev/hda,/dev/hdb" and It starting working like a champ.

Thank You