Hello!

I set up a raid-1-system with root-raid. I created boot-partitions
(normal non-raid ext2 partitions) not included in the raid. One on
/dev/hda1 and the other /dev/hdc1. hdc1 is thought for the situation if
hda1 fails.
My copy my lilo.conf, raidtab and my lilo-install-script below this
mail...
My Problem:
First i tried to use root=/boot-hda1 in lilo.conf.hda below. But this
doesn't work. I got the following error from lilo:
Sorry, don't know how to handle device 0x0906
... but /boot-hda1 was mounted to /dev/hda1 which is a nonraid ext2
partition.
o.k. but when i mount /dev/hda1 on /boot lilo works (where's the
difference - maybe /boot is referneced somewhere in the System.map or
vmlinuz and lilo trys to check this?)

I changed my lilo script and now lilo installs the kernels on /dev/hda1
and /dev/hdc1 and itself to the master boot record. Both partitions are
marked as active.
Booting from /dev/hda1 works fine. Then I simulated a error and removed my
first disk. In my BIOS i use autodetection for the harddisks. When System
reboots I think he tries to boot from /dev/hdc1, because the computer
doesn't say "no system, press any key to reboot" (or something similiar).
But I only got many alternating 010101010101 scrolling down my screen -
which means that something is wrong with lilo....
Is there something else to do, that lilo could boot from the second disk?

yours sincerely

M. Hofmann <[EMAIL PROTECTED]


Here my actual config-files:
---------------------------snip /etc/raidtab ---------------------------
# Many many raid-partitions for different user quotas

#
# /var/spool
#

raiddev /dev/md0
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc5
        raid-disk       0
        device          /dev/hda5
        raid-disk       1

#
# /home
#

raiddev /dev/md1
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc6
        raid-disk       0
        device          /dev/hda6
        raid-disk       1

#
# /usr
#

raiddev /dev/md2
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc8
        raid-disk       0
        device          /dev/hda8
        raid-disk       1

#
# /opt
#

raiddev /dev/md3
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc9
        raid-disk       0
        device          /dev/hda9
        raid-disk       1

#
# /var
#

raiddev /dev/md4
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc10
        raid-disk       0
        device          /dev/hda10
        raid-disk       1

#
# /var/tmp
#

raiddev /dev/md5
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc11
        raid-disk       0
        device          /dev/hda11
        raid-disk       1

#
# / Root-File-System
#

raiddev /dev/md6
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc12
        raid-disk       0
        device          /dev/hda12
        raid-disk       1
#
# /tmp
#

raiddev /dev/md7
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock 1
        device          /dev/hdc13
        raid-disk       0
        device          /dev/hda13
        raid-disk       1
----------------------- snap /etc/raidtab ---------------------------
----------------------- snip /etc/lilo.conf.hda ---------------------
append="console=ttyS1"
boot=/dev/hda
serial=1,9600n8
vga=normal
read-only
prompt
timeout=50
# End LILO global Section
#
# here was /boot-hda1/vmlinuz , but this got the lilo-error 
# Sorry, don't know how to handle device 0x0906
# /boot/vmlinuz seems to be work fine, so I changed
# finally all the scripts...

image = /boot/vmlinuz
  root = /dev/md6
  label = Linux

#
image = /boot/vmlinuz.old
  root = /dev/md6
  label = Linux.old
------------------- snap /etc/lilo.conf.hda --------------------
/etc/lilo.conf.hdc looks similiar....
I moved /sbin/lilo to /sbin/lilo-for-raid and created this one:
------------------- snip /sbin/lilo ---------------------------
#/bin/sh
#

# mount both Boot-Filesystems
mount /dev/hda1 /boot-hda1
mount /dev/hdc1 /boot-hdc1

# copy Files
cp -a /boot/* /boot-hda1
cp -a /boot/* /boot-hdc1
/bin/sync

# umount both Boot-Filesystems
umount /dev/hda1
umount /dev/hdc1

# Initialize first boot filesystem
mount /dev/hda1 /boot
#    call original lilo
/sbin/lilo-for-raid -C /etc/lilo.conf.hda
/bin/sync
umount /dev/hda1

# Initialize second boot filesystem
mount /dev/hdc1 /boot
/sbin/lilo-for-raid -C /etc/lilo.conf.hdc
/bin/sync
umount /dev/hdc1
------------------------------- snip ---------------------------

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Markus Hofmann          Phone:    +49 170 2848250
St. Urbanusstr. 15      Fax:      +49 9371 2032
                        E-Mail:   [EMAIL PROTECTED]
63927 Buergstadt        SMS-Mail: [EMAIL PROTECTED] (Only Subject)
Germany                 PGP-Keys: look at http://www.hofmar.de
---------------------------------------------------------------------
         Only written with 100% recycleable electrons!


Reply via email to