BxLUG groupe des utilisateurs de GNU/Linux de Bruxelles

Espace membres

Installing Debian Woody on a software-RAID root volume

Disclaimer: I didn't write this article myself. It was originally written by Torsten Landschoff and slightly modified. I didn't test it either, though I read nothing really harmful either [1]

You have to use boot-floppies with a kernel supporting software-RAID and the associated tools.

Setup: 3x80GB IDE drives, /dev/hda, /dev/hde, /dev/hdg, all connected as master. The old onboard bios does not support large disks so onboard IDE is not activated and the off-board IDE controller is used to boot from /dev/hde.

Install: I partitioned the disks as follows to prepare for RAID-1:
hda: 512MB primary swap, nothing else so far
hde: 512MB primary raid autodetect (0xfd), 500MB primary ext3
hdg: 512MB primary raid autodetect
Now I installed Debian into /dev/hde2 (the base system that is). Booting that system is no big deal. Then I installed the raidtools2 packages into that system and created /dev/md0 by way of this entry in /etc/raidtab:
        raiddev /dev/md0
                raid-level              1
                nr-raid-disks           2
                persistent-superblock   1

                device                  /dev/hde1
                raid-disk               0
                device                  /dev/hdg1
                raid-disk               1

Now, mkraid /dev/md0 sufficed to create the RAID-1 disk.

mkfs -t ext3 on it, mount it to /mnt and use tar -C / -clf - .|tar -C /mnt -xvf - to move over the whole system.

Use install-mbr to install a master boot record on /dev/hde and /dev/hdg and setup LILO to install the boot block in /dev/md0.

[1] and should not do much harm, as it is meant to apply to a new installation

Bienvenue dans le monde du libre