At 10:27 AM 5/5/2001 +0200, Giulio Orsero wrote:
>PROBLEM:
>I understand the latest lilo should allow to boot off a raid device,
>however I'm
>having trouble doing so. Booting with the complete mirror is ok, booting with
>the first disk (hda) is ok, booting with just the 2nd (hdc) stops at LI.
>When doing tests I power off, and disconnect the IDE cable and reboot.
>BIOS is all to auto.
I had this exact problem with Mandrake 8.0 (2.4.3-20mdk), and
decided to do the following. Now that I've done it, I even like it better,
because I think it's simpler (less to go wrong).
Summary: since I couldn't get LILO to write out boatloaders that
would successfully boot off /dev/mdX, and deal with situations where
/dev/mdX was running in degraded mode (your question, actually), I now
write a slightly different boot loader to the MBR of each disk in the
array. This way the machine will come up off whichever physical disk is
the first it finds at boot time, and not worry about any raid complications
until the stage-2 bootloader mounts the root fs from /dev/mdX (which *does*
work in degraded mode).
Details:
- Make one copy of /etc/lilo.conf for each disk, i.e., lilo-sda.conf,
lilo-sdb.conf, etc.
- Edit each copy as such:
- Make the "boot=" line match the device, i.e., boot=/dev/sda,
boot=/dev/sdb, etc.
- Keep a different map file for each bootloader by editing the
"map=" entry in each file, i.e., map=map-sda, map=map-sdb, etc.
- Write a boot loader to each disk, i.e., "lilo -C /etc/lilo-sda.conf",
"lilo -C /etc/lilo-sdb.conf", etc.
Now, the box can correctly boot off *any* disk in the array
without worrying about raid support.
Caveat: I've only done all this with a raid-1 set, and have no
first-hand knowledge for other raid configs.
Hope that helps!
-Al
-------------------------------------------------------------------
| voice: 503.247.9256
Lots of folks confuse bad management | email: [EMAIL PROTECTED]
with destiny. | cell: 503.709.0028
| email to my cell:
- Kin Hubbard | [EMAIL PROTECTED]
-------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]