Owl's installer program -
settle - is not able to create software RAID devices yet, however it lets an advanced user install onto software RAID devices created via the command-line. Here's how to do it.
In the following examples, we'll assume the typical use case for software RAID - installing onto two mirrored hard drives (RAID-1).
You may partition the first one of your hard drives via
settle or by running
Create partitions, then quit fdisk saving your changes. Copy the partition table to the second hard drive:
sfdisk -d /dev/sda | sfdisk /dev/sdb
You may use partition type
fd (Linux software RAID autodetect) or you may use types such as
83 (Linux swap and filesystem, respectively) or even type
da (data). If you choose not to use the autodetect, which has its pros and cons, you'll need to have the installed system explicitly assemble the software RAID arrays before it needs them - e.g., this may be achieved with the
md= parameter to the kernel (an example is given below).
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
…and so on for
The RAID arrays are available for use right away, even though they're being resync'ed in the background (the status of this process may be seen with
settle and proceed to install the system mostly as usual. Choose the “Use uNlisted partition for root”, “Mount uNlisted partition”, and/or “Use uNlisted swap partition” menu items as appropriate. These will prompt you to enter a device name - you'll need to enter
/dev/md1 and so on as appropriate.
If you put your boot filesystem 1) on software RAID (which you should probably do) or/and if you chose not to use the autodetect, then there's an extra step to perform. After installing the bootloader (still via
settle), don't reboot the system yet. Instead, exit from
/owl/etc/lilo.conf, and re-install LILO:
chroot /owl vi /etc/lilo.conf lilo exit # from chroot
You need to add the following line to
Additionally, if you chose not to use the software RAID autodetect partition type, you need to add something like:
append="md=0,/dev/sda1,/dev/sdb1 md=1,/dev/sda2,/dev/sdb2 md=2,/dev/sda3,/dev/sdb3 md=3,/dev/sda4,/dev/sdb4"
(Of course, you need to make both of these edits during the
vi /etc/lilo.conf step above, before running
Fatal: bios device code 0x82 is being used by two disks
Then you need to add the following lines to
/owl/etc/lilo.conf (these lines specify BIOS disk numbers for the devices):
device=/dev/sda bios=0x80 device=/dev/sdb bios=0x81
lilo completes successfully, unmount the filesystems and reboot. You may do so by running
settle again and using its “Reboot to the newly-installed system” menu item, which includes the necessary logic.