Software RAID with Shurdix

Shurdix’ init script supports Software RAID, but there is no automated way to set it up. This page documents the process. I will asumme you are building a level 1 RAID (/dev/md0) with 2 disks (/dev/hda and /dev/hdc), but the principle is general.

Partitioning

Use FDISK to partition /dev/hda and /dev/hdc exactly the same way. My tip is to login on 2 consoles, do a fdisk -l /dev/hda on one and fdisk -l /dev/hdc on the other. By switching the consoles you can spot differences very easily. Don’t forget to set the partition type to fd, usually called linux RAID autodetect

Creating RAID array

modprobe raid1
mdadm -C /dev/md0 -l 1 -n 2 /dev/hda1 /dev/hdc1

Creating Filesystem

mkreiserfs /dev/md0

answer “Y”

Installing Shurdix

echo -e "CONFIG=/dev/md0\nCONFIGFS=reiserfs"  > /etc/sysconfig/config
service conf save
service setup start

You need internet access for the last step. GRUB will probably complain, ignore it.

Configuring GRUB

grub
root (hd0,0)
setup (hd0)
root (hd0,0) /dev/hdc
setup (hd0)
quit

Also, check /mnt/conf/boot/grub/menu.lst for missing device references.

Finishing

Wait for the array to finish syncing and reboot.

 
  shurdix/raid.txt · Last modified: 2006/03/04 01:16
 
Recent changes RSS feed Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki