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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]