hello,

i'm trying to set up root raid on a new system.  it's an adaptec aaa-131u2
(which linux doesn't like for hardware-based raid) with two 9gb disks.

the biggest problem, i think, is that i can't get the system to boot off a
hard disk at all.  during the (redhat 6.0) install i said to put lilo on
the mbr (/dev/sda).  this didn't really work - when i bring the machine
up, it says something to the effect of "can't find operating system -
insert system disk," at which time i put the boot floppy that i created
during the install into the drive and boot fine.  

i patched 2.2.12 (ignoring the one .rej) and have raidtools-0.90.

i tried to follow the root-raid instructions in jakob's howto but found
them slightly sparse.  the part i didn't really understand was 

-=-=-
Now, unmount the current /boot filesystem, and mount the boot device on
/mnt/newroot/boot instead. This is required for LILO to run successfully
in the next step. 
     
Update /mnt/newroot/etc/lilo.conf to point to the right devices. The boot
device must still be a regular disk (non-RAID device), but the root device
should point to your new RAID. When done, run  [..]
-=-=-

is it possible to have the /boot partition, including the raid-aware
kernel, on a floppy, and boot off that?  yes, i know how failure-prone
floppies are.  hopefully the machine won't reboot often 8-).

i copied the /mnt/newroot/etc/[raidtab,fstab,lilo.conf] to the floppy and
ran lilo -r /mnt/floppy, but it complained: 

not a number: /dev/md1 

any ideas/suggestions would be very welcome.  i probably missed something
along the way.  raidtab, fstab, and lilo.conf are included below.

thanks
-jon

-- 
Jonathan Nathan
Web Systems Engineer, CAIS Internet
[EMAIL PROTECTED]

raidtab:
raiddev /dev/md0
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      8       
        persistent-superblock   1
        device          /dev/sdb6
        raid-disk       0
        device          /dev/sda6
        raid-disk       1
        failed-disk     1
raiddev /dev/md1
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      8       
        persistent-superblock   1
        device          /dev/sdb1
        raid-disk       0
        device          /dev/sda1
        raid-disk       1
        failed-disk     1
raiddev /dev/md2
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      8       
        persistent-superblock   1
        device          /dev/sdb2
        raid-disk       0
        device          /dev/sda2
        raid-disk       1
        failed-disk     1
raiddev /dev/md3
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      8       
        persistent-superblock   1
        device          /dev/sdb5
        raid-disk       0
        device          /dev/sda5
        raid-disk       1
        failed-disk     1
raiddev /dev/md4
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      8       
        persistent-superblock   1
        device          /dev/sdb7
        raid-disk       0
        device          /dev/sda7
        raid-disk       1
        failed-disk     1


fstab:  
/dev/md1               /                       ext2    defaults        1 1
/dev/sda5               /usr                    ext2    defaults        1 2
/dev/sda2               /var                    ext2    defaults        1 2
/dev/sda7               /web                    ext2    defaults        1 2
/dev/sda6               /work                   ext2    defaults        1 2
/dev/sda3               swap                    swap    defaults        0 0
/dev/sdb3               swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             ext2    noauto          0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  mode=0622       0 0
/dev/sdb1               /mnt/newroot            ext2    defaults        0 0

lilo.conf:
boot=/dev/sda
map=/boot/System.map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz
        label=linux
        root=/dev/md1
        initrd=/boot/initrd-2.2.5-15smp.img
        read-only
image=/boot/vmlinuz-2.2.5-15
        label=linux-up
        root=/dev/sda1
        initrd=/boot/initrd-2.2.5-15.img
        read-only

Reply via email to