Replacing fail boot disk from md raid1 set

From: Rami Addady <hidden>
Date: 2004-02-01 13:31:59

Replacing fail boot disk from md raid1 set

One of my disk fail and I replace it with new one.
I fail to make the new disk bootable.
Right now the system is boot only from IDE2 master (hdc1)
Here are the steps I made, it use to work on previous occurrence:

- fdisk the new disk
-Adding all the partition to the raid array
  /sbin/raidhotadd /dev/mdX /dev/hdaY...
- Reboot from a Linux CD-ROM in rescue mode.
- mkdir /mnt/hda_disk_par1
- Mount the / partition
  mount /dev/hda1 /mnt/hda_disk_par1
- Replace md1 with hda1 in /etc/lilo.conf
- chroot /mnt/hda_disk_par1 /sbin/lilo
- Replace hda1 with md1 in /etc/lilo.conf
- halt
- disconnect hdc
- boot

At this stage the system not boot. I can boot it only in one of those
senarios:
 From boot diskette or connecting again hdc.

After boot the raid status of all the partition is  [UU] (up)

The configuration:
-Red Hat 8.0
-Two IDE disk both master on IDE1 (hda) and IDE2 (hdc)
-My bios is capable to boot from IDE1 or IDE2 master
-lilo boot loader
-My bios is capable to boot from IDE1 or IDE2 master

Any Idea what wrong?

Regards,
Addady
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help