Skip to contentSkip to conversation

Replacing fail boot disk from md raid1 set

DISCUSSION Rami Addady 1 participant 1 message Feb 1, 2004 MD RAID

lore
Share & tools
lore
#0 lore raw

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