### refer to Boot+Root+Raid+LILO-mini-HOWTO, Software-RAID HOWTO ### This micro-HOWTO assumes 1 swap and 1 main partition on each disk compile & install kernel with RAID support install raidtools2 install identical 2nd disc partition to match existing disk - may require some tinkering if disk geometries are different - root/boot partition(s) should be type "fd" for raid autostart mkswap {swap partition} create or copy /etc/raidtab -- edit to suit - mark existing disk as failed so raid only uses the newdisk at first mkraid /dev/md0 mke2fs (-j if ext3) /dev/md0 mount /dev/md0 /mnt/newdisk telinit 1 cp -ax / /mnt/newdisk edit /mnt/newdisk/etc/fstab - replace entries for root/boot partition with /dev/md0 - make sure there are entries for swap on both devices make bootdisk cat /vmlinuz > /dev/fd0 rdev /dev/fd0 /dev/md0 rdev -r /dev/fd0 0 rdev -R /dev/fd0 1 reboot from floppy fdisk old disk to change root/boot partition to "fd" for raid autostart edit /etc/raidtab to change failed-disk to raid-disk raidhotadd /dev/md0 {original_partition} wait for reconstruction to finish watch -n 1 cat /proc/mdstat edit /etc/lilo.conf boot = /dev/md0 root = /dev/md0 raid-extra-boot = /dev/hdc, /dev/hda lilo reboot from raid