Theo Van Dinter writes:
 > On Wed, 27 Oct 1999, Bruno Prior wrote:
 > 
 > BP> (a) Getting the latest patched lilo from RedHat or applying the lilo.raid1 patch
 > BP> and rebuilding it yourself (if /dev/md0 is RAID-1)
 > BP> (b) Providing lilo with the geometry of one of the devices in the array (again
 > BP> if /dev/md0 is RAID-1)
 > BP> (c) Using a slightly-adapted grub instead of lilo (again if /dev/md0 is RAID-1)
 > BP> (d) Making sure the files to which these lines point are not on a software-RAID
 > BP> array.
 > 
 > Just a note:  I setup root RAID1 over the weekend on my RH61 box. The
 > configuration file is really simple, you run lilo as normal, it writes the
 > boot block to all disks in the array and you're done:
 > 
 > boot=/dev/md0
 > map=/boot/map
 > install=/boot/boot.b
 > timeout=50
 > default=linux
 > 
 > image=/boot/vmlinuz
 >         label=linux
 >         read-only
 >         root=/dev/md0

Hello, I just tried this with RH6.1 but couldn't succeed:

- floppy boot on /dev/md0 works
- calling lilo gives:

boot = /dev/sdb, map = /boot/map.0811
Added linux2210r *
boot = /dev/sda, map = /boot/map.0801
Added linux2210r
open /tmp/dev.0: No such device

I can't figure out where this /tmp/dev.0 messages comes from.
strace says:

stat("/tmp/dev.0", 0xbfffe1d0)          = -1 ENOENT (No such file or directory)
mknod("/tmp/dev.0", S_IFBLK|0600, makedev(0, 0)) = 0
stat("/tmp/dev.0", {st_mode=S_IFBLK|0600, st_rdev=makedev(0, 0), ...}) = 0
open("/tmp/dev.0", 0x4)                 = -1 ENODEV (No such device)


When booting from /dev/md0 lilo puts an Error 0x80 which means

   0x80   "Disk timeout". The disk or the drive isn't ready. Either the 
    media is bad or the disk isn't spinning. If you're booting from a 
    floppy, you might not have closed the drive door. Otherwise, trying to 
    boot again might help. 

When I'm booting with root=/dev/md0 it works.

I'm using lilo-0.21-10 from RH6.1

Greetings,

Dirk

lilo.conf:

boot=/dev/md0
map=/boot/map
install=/boot/boot.b
prompt
timeout=50

image=/boot/vmlinuz-2.2.10raid
        label=linux2210r
        read-only
        root=/dev/md0

raidtab:

raiddev /dev/md0
        raid-level              1
        nr-raid-disks           2
        nr-spare-disks          0
        persistent-superblock   1
        chunk-size              32
        device                  /dev/sdb1
        raid-disk               0
        device                  /dev/sda1
        raid-disk               1

Reply via email to