Lauri Tischler wrote:
> I have given some thought to this, main problem with Linux-raid is that
> you can't boot from it. You need to have separate boot-device, floppy or
> small ide, floppy is inconvinient, ide will break :(
If I do a simple RAID setup, I usually do it this way (e.g. 3 disks SW-RAID5):
/dev/sda1 5..10 MB or 1 cylinder for /boot
/dev/sda2 xxx MB for swap
/dev/sda3 xxxx MB for /
Then I use
dd if=/dev/sda of=/dev/sdb count=1 (DANGER: DON'T FORGET count=1 !!!)
to have the same partition table on sdb (and same again for sdc).
After installing all stuff on it (sda1 is mounted as /boot) and running lilo, I
use this dd again to copy MBR (now including LILO) to the other hdds MBR.
Then additionally
dd if=/dev/sda1 of=/dev/sdb1
to copy the /boot stuff on sda1 to sdb1 (and also to sdc1).
These "dd"s have to be done whenever you change kernel / lilo stuff.
What you achieve with this:
You can have / as RAID5, only /boot (one the same SCSI disks) is a normal
partition (mirrored manually if needed).
LILO loads kernel from sda1, kernel builds RAID5 array and mounts it as root.
If sda fails, former sdb will be named sda and will boot the same way (as it
contains same boot stuff as sda).
Swap setup should be with same pri=x value in fstab.
Hope this helps!
--
Thomas Waldmann (com_ma, Computer nach Masz)
email: [EMAIL PROTECTED] www: www.com-ma.de
Please be patient if sending me email, response may be slow.
Bitte Geduld, wenn Sie mir email senden, Antwort kann dauern.