4. Array Configuration

4.1. Building the Array

Add the second hard drive to the card, and turn on your computer. Go into the card bios, and create a mirror array, selecting the appropriate source disk. Make sure you Create and Build the array. After that is done, follow the instructions of the next section.

4.2. Changing Configuration Files

Choose "LinuxFromRaid" Option at LILO.

It should boot up without any errors. It will, however complain about swap. Ignore that, as we will fix it in a moment.

You may receive an error about incorrect module version, or a kernel mismatch. Please see the "troubleshooting" section about this.

After we have booted up on the new system, we must edit a few files:

4.2.1. /etc/lilo.conf

The parts in italics have been edited. (See the original lilo.conf file as stated earlier on in this HOWTO)


boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=LinuxFromRAID

image=/boot/vmlinuz-2.4.2-2
        label=linux
        read-only
        root=/dev/hda5

image=/boot/vmlinuz-2.4.2-2
        label=LinuxFromRAID
        initrd=/boot/initrd-2.4.2-2.img
        read-only
        root=/dev/sda5

Now, save the file, and run lilo to write the boot record.

4.2.2. /etc/fstab

For every entry that pointed to the old location, you must now change it to the scsi device, but use the same partition. For example:


/dev/hda2               swap                    swap    defaults        0 0

If you saw this in your fstab, you would need to change /dev/hda2 to /dev/sda2 Now reboot your system. That's it. After the reboot, its best to check the status of the RAID.

mirror server hosted at Truenetwork, Russian Federation.