Koozali.org: home of the SME Server

problem booting from second raid mirror drive

knaidoo

problem booting from second raid mirror drive
« on: August 12, 2004, 01:22:42 PM »
Hi all,

I am trying to boot from my second mirror drive..I followed Darrel May's raid recovery howto and have raid working when I boot from primary drive but get the following error when I try to boot from second drive.  I changed the second drive from hdb to hda (slave to master) but when I boot I get LIL- and the system stalls.

Here is my info:

LILO version 21.4-4

cat /etc/lilo.conf
prompt
timeout=50
default=Mitel-SME
boot=/dev/md0
map=/boot/map
install=/boot/boot.b
message=/boot/mitel.pcx
linear
image=/boot/vmlinuz-2.4.18-5
        label=Mitel-SME
        initrd=/boot/initrd-2.4.18-5.img
        read-only
        root=/dev/md1

Disk /dev/hda: 255 heads, 63 sectors, 4982 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        13    104391   fd  Linux raid autodetect
/dev/hda2            14      4949  39648420   fd  Linux raid autodetect
/dev/hda3          4950      4982    265072+  fd  Linux raid autodetect

Disk /dev/hdb: 255 heads, 63 sectors, 4998 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1        13    104391   fd  Linux raid autodetect
/dev/hdb2            14      4949  39648420   fd  Linux raid autodetect
/dev/hdb3          4950      4998    393592+  fd  Linux raid autodetect

[root@steam-sme etc]# cat /etc/fstab

#------------------------------------------------------------
LABEL=/                 /                       ext3    usrquota,grpquota        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/md2                swap                    swap    defaults        0 0

[root@steam-sme etc]#cat /etc/raidtab

raiddev             /dev/md1
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hda2
    raid-disk     0
    device          /dev/hdb2
    raid-disk     1
raiddev             /dev/md0
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hda1
    raid-disk     0
    device          /dev/hdb1
    raid-disk     1
raiddev             /dev/md2
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hda3
    raid-disk     0
    device          /dev/hdb3
    raid-disk     1

please help!
Thanks,
Kris

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
problem booting from second raid mirror drive
« Reply #1 on: August 13, 2004, 02:11:13 AM »
Descriptor table couldn't be read (disk geometry mismatch?)

Here's a list of LILO errors & possible fixes:

http://sdb.suse.de/sdb/en/html/kgw_lilo_errmsg.html
--
Nick......

knaidoo

Lilo Problem solved!
« Reply #2 on: August 17, 2004, 09:15:49 AM »
Thanks Nick!  I solved the LIL_ problem by reinstalling Lilo:

"Reinstall LILO with /sbin/lilo. Tip:/sbin/lilo can provide a detailed log if you enhance verbosity and redirect the output to appropriate log files. To do so, proceed like this:
          /sbin/lilo -v -v -v >/boot/lilo.log 2>/boot/lilo.logerr  "

Now I can mirror my disks to my hearts content!

Kris