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

Re: Booting from 2nd HD with raid1



LILO does not automatically maintain the MBR on disks that are part of a RAID-1 array that are contained within partitions.

You can make your secondary disk bootable by doing this...

1. Open the '/etc/lilo.conf' file and change "boot=/dev/hde1" to "boot=/dev/md0". This tells LILO to install its boot block to the array instead of to the MBR on the first disk. Also remove the "raid-extra-boot" option if you added it earlier.

2. Run `lilo` to reinstall the boot loader with the new configuration. The boot loader will be installed to all partitions that are part of the md0 array because the MD RAID-1 driver is transparent.

3. Run `cfdisk /dev/hde`, the first hard disk, and set the "bootable" flag on hde1, the partition that contains the first half of md0.

4. Run `cfdisk /dev/hdg`, the second hard disk, and set the "bootable" flag on hdg1, the partition that contains the second half of md0.

5. Run `install-mbr /dev/hde` to install the generic boot loader to the first hard disk.

6. Run `install-mbr /dev/hdg` to install the generic boot loader to the second hard disk.

...

If your primary disk fails, then this procedure ensures that your secondary disk will be bootable. This works because the install-mbr program always starts the first active partition on the first hard disk that the BIOS reports.

HTH.


Frédéric Dreier wrote:

Hi,

I can't make lilo booting from my 2nd HD on my RAID1 installation (simulating 1st hd failure).. normal booting and booting from 1st HD is ok.

lilo hangs after:
LILO 2.22 .................................


I tried different solutions from howto's and forums.. but I should make something wrong :-(

My pc runs debian stable with 2xSamsung SATA HD, md0[hde1,hdg1] '/boot', md1[hde6,hdg6] '/'.

My first question is : should I really make 2 lilo config? (actually i tried, without success)

Should I turn off lba support? in bios? in lilo?

Should I put geometry in lilo? does lba-aware-bios bypass this parameters? which geometry should I use? (fdisk give two different geom for both HD, and anotherone is shown in syslog...)

Is there a way to 'debug' my lilo config, or should I go further with try-and-error ?

Yeah.. lot of questions... sorry.

Thanks for all you hints and help.









Reply to: