On Tue, May 10, 2005 at 01:19:37PM +0100, Nigel Kendrick wrote:
I'm half way to resolving this (I hope) - I removed the second drive, I have installed Centos 4 on the remaining one and NOW I want to create a RAID 1 mirror for at least the / partition - is there a good howto on this - I started searching via Google as soon as I discovered 'mkraid' wasn't there any more but I've found nothing so far. Failing that I guess I'll have to start all over again!?
you need to look at mdadm and probably change your partition type for / from ID=83 (Linux) to ID=fd (Linux raid autodetect)
assuming hda3 is your / and hdc is an identical disk sfdisk -d /dev/hda > hda.part sfdisk /dev/hdc < hda.part
mdadm -C /dev/md0 --level=raid1 --disks=2 /dev/hda3 /dev/hdc3
change your /etc/fstab and re-create the initrd.
I don't think you can do it on a live system, so you migh need to do it from a rescue session (linux rescue from the CD1) but ymmv.
good luck
Tru