Re: SV: [suse-sparc] Boot + Root + Raid + Silo (instead of Lilo)

From: dan carter (dcarter_at_waitaki.otago.ac.nz)
Date: Wed Jun 12 2002 - 05:15:55 CEST

  • Next message: Martin Oehler: "[suse-sparc] python module crypt"

    Message-ID: <3D06BCEB.5020501@waitaki.otago.ac.nz>
    Date: Wed, 12 Jun 2002 15:15:55 +1200
    From: dan carter <dcarter@waitaki.otago.ac.nz>
    Subject: Re: SV: [suse-sparc] Boot + Root + Raid + Silo (instead of Lilo)
    

    Fredrik Pettai wrote:
    > Ok.
    >
    > Then making a mirrored / (root) partition, according to RAID HOWTO...
    >
    > - Make partitions on the (empty) mirrordisk
    > - Make the partition type to RAID (8e?)

    type fd is linux raid autodetect.

    > - Make filesystems, mount as raid
    > - Copy all files to the mirrordisk.
    > - Make the nessesary changes in Silo.conf, fstab, raidtab etc. on the
    > mirrordisk
    > - Install Silo on mirrordisk
    > - Boot up on the mirrordisk (which is configured as RAID?)
    > - Change the state in RAID of the orginal disk from "broken" to "good"
    >
    > QUESTION1: Is this the preferable way to do it??? Or are there any easier
    > way???
    > ( I only have to disks )

    Sounds OK to me. I have a 3rd disk that i put the system on while
    setting up raid on the other 2.

    >
    > QUESTION2: Can (anybody) show me a good example of the silo.conf with RAID
    > configured.
    > ( Some of the options in the Boot+Root+RAID+Lilo HOWTO doesn't work in silo,
    > which makes me chick-out :-)

    partition=2
    timeout=50
    root=/dev/md0
    read-only
    default=linux
    append=" md=0,/dev/sda2,/dev/sdb4"

    image=/vmlinux-2.4.19-pre7
             label=2.4.19-pre7

    >
    > QUESTION3: Should or could i mirror the /boot and swap? RAID HOWTO doesn't
    > recommend mirroring the swap, so i that maybe answers half the question...

    the howto knows more than i do... but i think there is an advantage to
    mirroring swap. The kernel already does it's own stripping of swap when
    you have swap space on both discs, so there is no advantage in raid
    stripping swap. But if you mirror swap then the machine should keep
    going if one disc fails. If swap isn't mirrored, and the disc with swap
    fails, then things are gonna break when the kernel tries to access swap.

    As for boot, AFAIK silo can't read raid partitions, so boot has to be a
    plain non-raid partition. For a mirrored setup you would put an
    identical boot partition on both discs, so that if one disc fails you
    can still boot off the other one.

    So for your system i would go

    /dev/sda1 = swap (raid if you can)
    /dev/sdb1 = swap (raid with sda1 if you can)

    /dev/sda2 = boot
    /dev/sdb2 = duplicate boot

    /dev/sda3 = whole disc
    /dev/sdb3 = whole disc

    /dev/sda4 = raid device md0
    /dev/sdb4 = raid device md0

    /dev/md0 = root

    -- 
    To unsubscribe, e-mail: suse-sparc-unsubscribe@suse.com
    For additional commands, e-mail: suse-sparc-help@suse.com
    



    This archive was generated by hypermail 2.1.0 : Wed Jun 12 2002 - 05:16:08 CEST