Loading
 

Booting from cd and no /dev/md devices?

First, correct kernel modules are needed.
modprobe raid1
If configuration uses different raid, then a different raid module should be loaded. Be it a raid 0,5,6 or whatever.

Devices can be made then
mknod /dev/md0 b 9 0
mknod /dev/md1 b 9 1

and so on. As many of them as needed.
From this point on door is open for mdadm create,assemble or whatever is needed.

Creating a device goes like this:
mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda2 /dev/sdc2

If creating a raid 1 (mirror) device to boot from, at least for now, level 0.90 metadata should be used. like so:
mdadm --create --verbose /dev/md0 --metadata=0.90 --level=1 --raid-devices=2 /dev/sda2 /dev/sdc2

When all that is needed to get some already existing devices to work, assemble is the keyword.
Assembling like this
mdadm --assemble --verbose /dev/md0 /dev/sda2 /dev/sdc2

Finally, watching progress on create can be done like this:
watch -n1 'tail /proc/mdstat'

Related posts:

  1. Rebuilding failed drive in linux md raid
  2. Installing grub on md raid boot device

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
© 2011 Ogalik OÜ info@ogalik.ee Suffusion theme by Sayontan Sinha