Vous pouvez également consulter la version française de ce document.

Usted puede consultar igualmente la version en español de este documento.

Installing root on LVM + RAID with debian-installer

This document explains how to set up Debian GNU/Linux on a computer with your root partition on a RAID volume managed with LVM. The procedure assumes that you have 2 indentical hard disks on your computer. Some screens of the Debian ETCH installer are different from before and key entries for older versions are market as "old".

Run the ETCH Debian installer for linux26 and when reaching the main screen "Partitioning disks" and select the "Manual" option. Read carefully all the options offered on the next screen and notice the table of disk section which should show the two hard disks which you intend to use in RAID mode

For IDE disks you should see:

alternatively for SCSI or S-ATA disks you should see:

If you do not see theses disks then check your BIOS and cables settings and restart the Debian-installer.

Create the physical volumes for RAID

From the screen "[!!] Partition disks" in the "Table of disks"

Now Select the line "FREE SPACE" just under the newly created partition:

Repeat the above procedure for the second disk IDE2 (hdc)or SCSI2 (sdb) as appropriate.

Check that both disk have identical partitions and the free space left is about 2% of the disk size, this is important to be able to later install replacement disks which are of identical size to the original disks but may not have the same number of heads and cylinders. If not you can re-select and correct the disk with the wrong partition.

Configure software RAID

From the screen "[!!] Partition disks" select: Configure software RAID

"Write the changes to the storage devices and configure RAID select: {yes}

"This is the multidisk (MD) and software RAID configuration menu" select:

"Active devices for the RAID1 multidisk device" select from the Table of disks list the two devices ending with "1" like below

"Multidisk configuration actions" select:

"Active devices for the RAID1 multidisk device" select this time from the list the two devices ending with "2" like below:

This sets up the RAID1 and the partition disk screen will now show in the "Table of disks" two RAID1 devices #0 and #1.

Create the physical volumes for LVM

From the screen "[!!] Partition disks" in the "Table of disks"

Configure LVM

From the screen "[!!] Partition disks": 

LVM configuration action

Leave again to launch the partitioning and return to the main screen "Partition disks".

Create the partitions

In this phase you may encounter warning messages, ignore them and just hit {Continue}.

From the screen "[!!] Partition disks"

In the "Table of Disks" LVMVG vg00 LV root select: #1

In the "Table of Disks" LVMVG vg00, LV home select: #1

In the "Table of Disks" LVMVG vg00, LV swap select: #1

In the "Table of Disks" RAID1 device #0 select: #1

To finish

From the screen "[!!] Partition disks" select "Finish partitioning and write changes to disk"

The screen will now give you a summary of what has been done and to the prompt "Write changes to disks?" answer {Yes}

You may now continue by first installing GRUB on the boot sector and proceed with the complete installation of Debian which will be written symmetrically on the two disks in RAID.

Enjoy Debian with the RAID set up for both boot and data such that even if one disk crashes you will be able to restore your configuration (do not forget to give to your new disk partitions identical to the old disk and to copy GRUB to the boot partition if necessary).