Steps:
- Boot the Debian Etch installer.
- If the installation comes to "Partition method", use "Manual".
- In the following menu, scroll to your first disk and hit enter: the partitionier asks you, if you want to create an empty partition table. Say "yes". (Hint: this will erase your existing data, if any.)
- The partitioner is back in the disk overview, scroll one line downwards over the line with "FREE SPACE" and hit enter.
- Create a partition with the size you need. Select "Primary" for type for the new partition. Select "Beginning" for the location for the new partition.
- In the "Partition settings" menu, go to "Use as" and hit enter.
- Change the type to "physical volume for RAID".
- Finish this partition with "Done setting up the partition".
- Create other partitions on the same disk, if you like.
- Now repeat all the steps from the first disk for the second disk.
- After this, you should have at least two disks with the same partition schema and all partitions should be marked for RAID use.
- Now look at the first menu entry in the partitioner menu, there is a new line: "Configure software RAID". Go into this menu.
- Answer the question, if you like to write the changes, with "Yes".
- Now pick "Create MD device".
- Use RAID1 and give the number of active and spare devices (2 and 0 in our case).
- In the following menu, select the same device number on the first and second disk and Continue.
- Repeat this step for every two devices until you are done. Then use "Finish" from the Multidisk configuration options.
- You are back in the partitioner menu and now you see one ore more new partitions named as "Software RAID Device". You can use this partitions like any normal partition and continue installing your system.
- Start the grub command shell:
# grub - At the 'grub>" shell prompt create new boot record for the second drive:
root (hd1,0)
setup (hd1)
quit
View RAID status:
# cat /proc/mdstat
or
# mdadm -D /dev/md0
Add a drive to RAID device:
# mdadm --add /dev/md0 /dev/sda1
References: