raid_logiciel
Ceci est une ancienne révision du document !
Table des matières
RAID logiciel
Comme pour le partitionnement, le RAID logiciel se réalise en bootant en mode rescue pour une machine hébergée ou sur une clé USB pour une machine locale.
Il faut disposer de partitions de mêmes tailles sur des disques différents.
Installation de mdadm
root@secours:~# apt-get install mdadm ... root@secours:~#
Création du RAID
root@secours:~# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=0.90
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md1 started.
root@secours:~#
Vérification du RAID
root@secours:~# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
83818496 blocks super 1.2 [2/2] [UU]
[===============>.....] resync = 75.4% (63217792/83818496) finish=1.6min speed=206312K/sec
unused devices: <none>
root@secours:~#
L'installation n'est pas terminé.
root@secours:~# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
83818496 blocks super 1.2 [2/2] [UU]
unused devices: <none>
root@secours:~#
L'installation est terminé.
raid_logiciel.1645644113.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)