MIrrored drives won't boot after installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

-- 
Tru Huynh (CentOS-3 i386/x86_64 Package Maintenance)
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xBEFA581B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.centos.org/pipermail/centos/attachments/20050510/bc74ec28/attachment.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux