This is an online translation of
Création d'une matrice en Raid linéaire
_________________________________
I have learned french but not as much to translete it on my own. I thin I did the hardest part.
Can anyone who knows English and French translate it to conventional English so I could understand it too. there are errors in the English version so please translate it better. I dont take any responsibilyty for spelling and grammar and contenent errors.
Sander
To effectuate Raid in linear method, you must have access to several partitions that are not necessarily méme cut. It is necessary you, create the 2 partitions and to format them; in our case, we use the partitions /dev/hda7 and /dev/hdb1 that are respectively partitions 8GO and 14GO what will give to us 22GO. Once the 2 partitions to create properly has the help fdisk and mkfs.ext2, we will create the matrice raid on /dev/md0 in concaténant the partition hda7 and hdb1. It is necessary to know before to launch itself, that if one of the hard discs of the raid breaks down, the matrice will be screwed-up completely! Edit the file /etc/raidtab faéon has to correspond has your configuration. For two discs in linear method, here a typical file:
Pour effectuer du Raid en mode linéaire, vous devez disposer de plusieurs partitions
qui ne sont pas forcément de la même taille.
Il vous faut, créer les 2 partitions et les formater; dans notre cas, nous utiliserons
les partitions /dev/hda7 et /dev/hdb1 qui sont respectivement des partitions de
8Go et 14Go ce qui va nous donner 22Go.
Une fois les 2 partitions créer proprement à l'aide de fdisk et mkfs.ext2, nous allons
créer la matrice raid sur /dev/md0 en concaténant les partition hda7 et hdb1.
Il faut savoir avant de se lancer, que si un des disques dur du raid tombe en panne, la matrice
sera complétement foutue !
Editez le fichier /etc/raidtab de façon à correspondre à votre configuration. Pour deux disques en mode
linéaire, voici un fichier type :
raiddev /dev/md0
raid-level linear
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/hda7
raid-disk 0
device /dev/hdb1
raid-disk 1
Next, create the matrice by the order: mkraid /dev/md0 The order initialize the matrice, writes the persistent superblocs and activate the périphérique. Throw an eye has /proc/mdstat. You should see there that the matrice work. For arreter the matrice, use the order: raidstop /dev/md0 At present create a systeme of files as on a périphérique any, climb the, include the in your fstab etc while doing fdisk /dev/md0 and mkfs.ext2 Help -------. In Fdisk, when it requires the end for you of the partition, for more of ease, to lean on TO GRAFT without nothing to specify. Fdisk will take automatically cut it maximum.
Ensuite, créer la matrice par la commande : mkraid /dev/md0 La commande initialise la matrice, écrit les superblocs persistants et active le périphérique. Jetez un oeil a /proc/mdstat. Vous devriez y voir que la matrice fonctionne. Pour arreter la matrice, utiliser la commande : raidstop /dev/md0 A présent créez un systeme de fichiers comme sur un périphérique quelconque, montez le, incluez le dans votre fstab etc en faisant fdisk /dev/md0 et mkfs.ext2 Aide ------- Dans Fdisk, quand il vous demande la fin de la partition, pour plus de facilité, appuyer sur ENTER sans rien spécifier. Fdisk prendra automatiquement la taille maximal.