Exemple de RAID 1 décrit dans la première section de ce document
df Filesystem 1k-blocks Used Available Use% Mounted on /dev/md0 19510780 1763188 16756484 10% / /dev/md1 15860 984 14051 7% /boot # -------------------------- fdisk -ul /dev/hda Disk /dev/hda: 16 heads, 63 sectors, 39770 cylinders Units = sectors of 1 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 63 33263 16600+ fd Linux raid autodetect /dev/hda2 33264 443519 205128 83 Linux native /dev/hda3 443520 40088159 19822320 fd Linux raid autodetect # -------------------------- fdisk -ul /dev/hdc Disk /dev/hdc: 16 heads, 63 sectors, 39770 cylinders Units = sectors of 1 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 63 33263 16600+ fd Linux raid autodetect /dev/hdc2 33264 443519 205128 82 Linux swap /dev/hdc3 443520 40088159 19822320 fd Linux raid autodetect # -------------------------- # md0 est le premier ensemble de disques, d'environ 20 Go raiddev /dev/md0 raid-level 1 nr-raid-disks 2 chunk-size 32 # Disque disponible pour la reconstruction à chaud nr-spare-disks 0 persistent-superblock 1 device /dev/hda3 raid-disk 0 device /dev/hdc3 raid-disk 1 # md1 est l'ensemble de disques d'amorçage (/boot), d'une taille d'environ 16 Mo raiddev /dev/md1 raid-level 1 nr-raid-disks 2 chunk-size 32 Disque pour la reconstruction à chaud nr-spare-disks 0 persistent-superblock 1 device /dev/hda1 raid-disk 0 device /dev/hdc1 raid-disk 1 # -------------------------- # SECTION GLOBAL # périphérique contenant /boot disk=/dev/md0 # geometry bios=0x80 sectors=63 heads=16 cylinders=39770 # dummy partition=/dev/md1 # début du disque ci-dessus start=63 boot=/dev/hda map=/boot/map install=/boot/boot.b image=/boot/bzImage root=/dev/md0 label=LinuxRaid read-only # ------------------------- # SECTION GLOBAL # périphérique contenant /boot disk=/dev/md0 # geometry bios=0x80 sectors=63 heads=16 cylinders=39770 # dummy partition=/dev/md1 # début du disque ci-dessus start=63 boot=/dev/hdc map=/boot/map install=/boot/boot.b image=/boot/bzImage root=/dev/md0 label=LinuxRaid read-only