At 19:54 20.09.99 +1000, Glenn McGrath wrote:
>none of the above can point to a file residing on a md device, if it does
>lilo gives the device not known error.
Since it still doesn't seem to be common knowledge, let me repeat something
I learned from Harald Nordgård-Hansen ([EMAIL PROTECTED]) (Thanks!!):
You CAN make lilo boot off raid1, you just have to supply all the info it
normaly gets from getgeometry() in the config file.
here's the configuration for one of my systems.
server:/proc# cat /proc/mdstat
Personalities : [raid0] [raid1]
read_ahead 1024 sectors
md1 : active raid1 hdc2[1] hda2[0] 262464 blocks [2/2] [UU]
md0 : active raid1 hdc3[1] hda3[0] 5243008 blocks [2/2] [UU]
md2 : active raid1 hdc5[1] hda5[0] 13312000 blocks [2/2] [UU]
md3 : active raid1 hdc6[1] hda6[0] 3236544 blocks [2/2] [UU]
md4 : active raid1 hdc1[1] hda1[0] 20544 blocks [2/2] [UU]
server:/etc# mount
/dev/md0 on / type ext2 (rw)
/dev/md4 on /boot type ext2 (rw)
/dev/md2 on /usr type ext2 (rw)
/dev/md3 on /var type ext2 (rw)
/dev/hdd1 on /usr/local/var/nntpcache type ext2 (rw)
none on /proc type proc (rw)
server:/etc# cat lilo.conf.hda
# Start LILO global section
disk=/dev/md0
# disk = device which contains the /boot directory
bios=0x80
# this disk will be the first disk on boot
sectors=63
heads=16
cylinders=43800
# get cylinders/heads/sectors info from fdisk -l
partition=/dev/md4
# this can be any md device except the one given in the disk= statement
# it does not have to be actually used (doesn't hurt either).
start=63
# This is tricky. It's the number of sectors before the start of the
partition.
# for the first partition it's usually the same as sectors. for the
others you'll
# have to calculate out the right offset. Hint - put /boot into the first
partition
# if at all possible :-)
boot = /dev/hda
# physical device to write the MBR to.
prompt
timeout = 50
vga = normal
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/md0
label = Linux
read-only
image = /boot/vmlinuz.002
root = /dev/md0
label = Linux_old
read-only
# Linux bootable partition config ends
Further, you need to ensure there's an uptodate MBR on each of the disks
you want to be bootable - can be done by having a lilo .conf for each of
your disks (modify geometry stuff and boot=/dev/xxxxx) and calling lilo for
each of the disks.
lilo -C /etc/lilo.conf.hda
lilo -C /etc/lilo.conf.hdc
Bye, Martin
"you have moved your mouse, please reboot to make this change take effect"
--------------------------------------------------
Martin Bene vox: +43-664-3251047
simon media fax: +43-316-813824-6
Andreas-Hofer-Platz 9 e-mail: [EMAIL PROTECTED]
8010 Graz, Austria
--------------------------------------------------
finger [EMAIL PROTECTED] for PGP public key