Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:centos:8:avance:l105 [2021/08/23 10:40] adminelearning:workbooks:centos:8:avance:l105 [2022/02/22 15:15] (Version actuelle) – created admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
 +
 +Version : **2022.01**
  
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-======LCF302 Gestion Avancée des Disques - Raid Logiciel======+======LCF605 Installation de Machines Virtuelles KVM======
  
 =====Contenu du Module===== =====Contenu du Module=====
  
-  * **LCF302 Gestion Avancée des Disques - Raid Logiciel**+  * **LCF605 Installation de Machines Virtuelles KVM**
     * Contenu du Module     * Contenu du Module
-    * Concepts RAID +    * LAB #1 Installation d'une Machine Virtuelle CentOS 8 
-      * Disques en miroir +      * 1.1 Identification du Short ID 
-      * Bandes de données +      * 1.2 Configuration du Stockage des ISOs 
-    * Types de RAID +      * 1.3 Installation du Domaine 
-      * RAID 0 Concaténation +        Format des Images 
-      * RAID 0 Striping +        * Convertir le Format de l'Image 
-      * RAID 1 - Miroir +      * 1.4 - Configuration de l'Installation de l'OS Invité 
-      * RAID 1+0 Striping en Miroir +        Language Settings 
-      RAID 2 - Miroir avec Contrôle d'Erreurs +        Network configuration 
-      * RAID 3 et 4 - Striping avec Parité +        Time settings 
-      RAID 5 - Striping avec Parité Distribuée +        Root password 
-      Au délà de RAID 5 +        Installation source 
-    RAID Logiciel sous RHEL/CentOS +        * Software selection 
-      Préparation du disque +        * Installation Destination 
-      Partitionnement +        * Démarrer l'Installation 
-      * Mise en Place du RAID Logiciel+        * Démarrer la VM 
 +      * 1.- Vérification de la VM Invitée 
 +        * Réseau 
 +        * Internet
  
-=====Concepts RAID=====+=====LAB #1 - Installation d'une Machine Virtuelle CentOS 8=====
  
-Les solutions RAID ou //Redundant Array of Independent Disks// ou encore //Redundant Array of Inexpensive Disks// permettent la combinaison de plusieurs disques de façon à ce que ceux-ci soient vu comme un seul disque logique.+====1.1 - Identification du Short ID====
  
-Les solutions RAID sont issues du travail fourni par l'université de Berkeley en Californie sur un projet de tolérances de pannesLes systèmes RAID offre maintenant plusieurs avantages :+KVM sait virtualiser un grand nombre de systèmes d'exploitationsPour consulter la liste complète des systèmes, il convient d'utiliser la commande **osinfo-query os** :
  
-    * Addition des capacités, +<code> 
-    * Amélioration des performances, +[root@centos8 ~]# osinfo-query os | more 
-    * Apporter la tolérance de panne.+ Short ID             | Name                                               | Version  | ID                                       
 +----------------------+----------------------------------------------------+----------+----------------------------------------- 
 + alpinelinux3.10      | Alpine Linux 3.10                                  | 3.10     | http://alpinelinux.org/alpinelinux/3.10  
 + alpinelinux3.11      | Alpine Linux 3.11                                  | 3.11     | http://alpinelinux.org/alpinelinux/3.11  
 + alpinelinux3.12      | Alpine Linux 3.12                                  | 3.12     | http://alpinelinux.org/alpinelinux/3.12  
 + alpinelinux3.13      | Alpine Linux 3.13                                  | 3.13     | http://alpinelinux.org/alpinelinux/3.13  
 + alpinelinux3.5       | Alpine Linux 3.5                                   | 3.5      | http://alpinelinux.org/alpinelinux/3.5   
 + alpinelinux3.6       | Alpine Linux 3.6                                   | 3.6      | http://alpinelinux.org/alpinelinux/3.6   
 + alpinelinux3.7       | Alpine Linux 3.7                                   | 3.7      | http://alpinelinux.org/alpinelinux/3.7   
 + alpinelinux3.8       | Alpine Linux 3.8                                   | 3.8      | http://alpinelinux.org/alpinelinux/3.8   
 + alpinelinux3.9       | Alpine Linux 3.9                                   | 3.9      | http://alpinelinux.org/alpinelinux/3.9   
 + alt.p8               | ALT p8 StarterKits                                 | p8       | http://altlinux.org/alt/p8.starterkits   
 + alt.p9               | ALT p9 StarterKits                                 | p9       | http://altlinux.org/alt/p9.starterkits   
 + alt.sisyphus         | ALT regular                                        | sisyphus | http://altlinux.org/alt/sisyphus         
 + alt8.0               | ALT 8 Education                                    | 8.0      | http://altlinux.org/alt/8.0              
 + alt8.1               | ALT 8.1                                            | 8.1      | http://altlinux.org/alt/8.1              
 + alt8.2               | ALT 8.2                                            | 8.2      | http://altlinux.org/alt/8.2              
 + alt9.0               | ALT 9.0                                            | 9.0      | http://altlinux.org/alt/9.0              
 + alt9.1               | ALT 9.1                                            | 9.1      | http://altlinux.org/alt/9.1              
 + altlinux1.0          | Mandrake RE Spring 2001                            | 1.0      | http://altlinux.org/altlinux/1.0         
 + altlinux2.0          | ALT Linux 2.0                                      | 2.0      | http://altlinux.org/altlinux/2.0         
 + altlinux2.2          | ALT Linux 2.2                                      | 2.2      | http://altlinux.org/altlinux/2.2         
 + altlinux2.4          | ALT Linux 2.4                                      | 2.4      | http://altlinux.org/altlinux/2.4         
 + altlinux3.0          | ALT Linux 3.0                                      | 3.0      | http://altlinux.org/altlinux/3.0         
 + altlinux4.0          | ALT Linux 4.0                                      | 4.0      | http://altlinux.org/altlinux/4.0         
 + altlinux4.1          | ALT Linux 4.1                                      | 4.1      | http://altlinux.org/altlinux/4.1         
 + altlinux5.0          | ALT Linux 5.0                                      | 5.0      | http://altlinux.org/altlinux/5.0         
 + altlinux6.0          | ALT Linux 6.0                                      | 6.0      | http://altlinux.org/altlinux/6.0         
 + altlinux7.0          | ALT Linux 7.0                                      | 7.0      | http://altlinux.org/altlinux/7.0         
 + android-x86-8.1      | Android-x86 8.1                                    | 8.1      | http://android-x86.org/android-x86/8.1   
 + android-x86-9.0      | Android-x86 9.0                                    | 9.0      | http://android-x86.org/android-x86/9.0   
 + archlinux            | Arch Linux                                                  | http://archlinux.org/archlinux/rolling   
 + asianux-unknown      | Asianux unknown                                    | unknown  | http://asianux.com/asianux/unknown       
 + asianux4.6           | Asianux Server 4 SP6                                        | http://asianux.com/asianux/4.6           
 + asianux4.7           | Asianux Server 4 SP7                                        | http://asianux.com/asianux/4.7           
 + asianux7.0           | Asianux Server 7                                   | 7.0      | http://asianux.com/asianux/7.0           
 + asianux7.1           | Asianux Server 7 SP1                               | 7.1      | http://asianux.com/asianux/7.1           
 + asianux7.2           | Asianux Server 7 SP2                               | 7.2      | http://asianux.com/asianux/7.2           
 + asianux7.3           | Asianux Server 7 SP3                               | 7.3      | http://asianux.com/asianux/7.3           
 + asianux8.0           | Asianux Server 8                                   | 8.0      | http://asianux.com/asianux/8.0           
 + caasp-unknown        | SUSE CaaS Platform Unknown                         | unknown  | http://suse.com/caasp/unknown            
 + caasp1.0             | SUSE CaaS Platform 1.0                             | 1.0      | http://suse.com/caasp/1.0                
 + caasp2.0             | SUSE CaaS Platform 2.0                             | 2.0      | http://suse.com/caasp/2.0                
 + caasp3.0             | SUSE CaaS Platform 3.0                             | 3.0      | http://suse.com/caasp/3.0                
 +--More-- 
 +</code>
  
-Deux concepts sont fondamentaux à la compréhension des solutions RAID.+La liste des versions de Red Hat peut être consultée en recherchant la chaîne **Red Hat** dans la sortie de la commande précédente :
  
-====Disques en miroir====+<code> 
 +[root@centos8 ~]# osinfo-query os | grep "Red Hat" 
 + rhel-atomic-7.0      | Red Hat Enterprise Linux Atomic Host 7.0           | 7.0      | http://redhat.com/rhel-atomic/7.0        
 + rhel-atomic-7.1      | Red Hat Enterprise Linux Atomic Host 7.1           | 7.1      | http://redhat.com/rhel-atomic/7.1        
 + rhel-atomic-7.2      | Red Hat Enterprise Linux Atomic Host 7.2           | 7.2      | http://redhat.com/rhel-atomic/7.2        
 + rhel-atomic-7.3      | Red Hat Enterprise Linux Atomic Host 7.3           | 7.3      | http://redhat.com/rhel-atomic/7.3        
 + rhel-atomic-7.4      | Red Hat Enterprise Linux Atomic Host 7.4           | 7.4      | http://redhat.com/rhel-atomic/7.4        
 + rhel-unknown         | Red Hat Enterprise Linux Unknown                   | unknown  | http://redhat.com/rhel/unknown           
 + rhel2.1              | Red Hat Enterprise Linux 2.1                       | 2.1      | http://redhat.com/rhel/2.1               
 + rhel2.1.1            | Red Hat Enterprise Linux 2.1 Update 1              | 2.1.1    | http://redhat.com/rhel/2.1.1             
 + rhel2.1.2            | Red Hat Enterprise Linux 2.1 Update 2              | 2.1.2    | http://redhat.com/rhel/2.1.2             
 + rhel2.1.3            | Red Hat Enterprise Linux 2.1 Update 3              | 2.1.3    | http://redhat.com/rhel/2.1.3             
 + rhel2.1.4            | Red Hat Enterprise Linux 2.1 Update 4              | 2.1.4    | http://redhat.com/rhel/2.1.4             
 + rhel2.1.5            | Red Hat Enterprise Linux 2.1 Update 5              | 2.1.5    | http://redhat.com/rhel/2.1.5             
 + rhel2.1.6            | Red Hat Enterprise Linux 2.1 Update 6              | 2.1.6    | http://redhat.com/rhel/2.1.6             
 + rhel2.1.7            | Red Hat Enterprise Linux 2.1 Update 7              | 2.1.7    | http://redhat.com/rhel/2.1.7             
 + rhel3                | Red Hat Enterprise Linux 3                         | 3        | http://redhat.com/rhel/                
 + rhel3.1              | Red Hat Enterprise Linux 3 Update 1                | 3.1      | http://redhat.com/rhel/3.1               
 + rhel3.2              | Red Hat Enterprise Linux 3 Update 2                | 3.2      | http://redhat.com/rhel/3.2               
 + rhel3.3              | Red Hat Enterprise Linux 3 Update 3                | 3.3      | http://redhat.com/rhel/3.3               
 + rhel3.4              | Red Hat Enterprise Linux 3 Update 4                | 3.4      | http://redhat.com/rhel/3.4               
 + rhel3.5              | Red Hat Enterprise Linux 3 Update 5                | 3.5      | http://redhat.com/rhel/3.5               
 + rhel3.6              | Red Hat Enterprise Linux 3 Update 6                | 3.6      | http://redhat.com/rhel/3.6               
 + rhel3.7              | Red Hat Enterprise Linux 3 Update 7                | 3.7      | http://redhat.com/rhel/3.7               
 + rhel3.8              | Red Hat Enterprise Linux 3 Update 8                | 3.8      | http://redhat.com/rhel/3.8               
 + rhel3.9              | Red Hat Enterprise Linux 3 Update 9                | 3.9      | http://redhat.com/rhel/3.9               
 + rhel4.0              | Red Hat Enterprise Linux 4.0                       | 4.0      | http://redhat.com/rhel/4.0               
 + rhel4.1              | Red Hat Enterprise Linux 4.1                       | 4.1      | http://redhat.com/rhel/4.1               
 + rhel4.2              | Red Hat Enterprise Linux 4.2                       | 4.2      | http://redhat.com/rhel/4.2               
 + rhel4.3              | Red Hat Enterprise Linux 4.3                       | 4.3      | http://redhat.com/rhel/4.3               
 + rhel4.4              | Red Hat Enterprise Linux 4.4                       | 4.4      | http://redhat.com/rhel/4.4               
 + rhel4.5              | Red Hat Enterprise Linux 4.5                       | 4.5      | http://redhat.com/rhel/4.5               
 + rhel4.6              | Red Hat Enterprise Linux 4.6                       | 4.6      | http://redhat.com/rhel/4.6               
 + rhel4.7              | Red Hat Enterprise Linux 4.7                       | 4.7      | http://redhat.com/rhel/4.7               
 + rhel4.8              | Red Hat Enterprise Linux 4.8                       | 4.8      | http://redhat.com/rhel/4.8               
 + rhel4.9              | Red Hat Enterprise Linux 4.9                       | 4.9      | http://redhat.com/rhel/4.9               
 + rhel5.0              | Red Hat Enterprise Linux 5.0                       | 5.0      | http://redhat.com/rhel/5.0               
 + rhel5.1              | Red Hat Enterprise Linux 5.1                       | 5.1      | http://redhat.com/rhel/5.1               
 + rhel5.10             | Red Hat Enterprise Linux 5.10                      | 5.10     | http://redhat.com/rhel/5.10              
 + rhel5.11             | Red Hat Enterprise Linux 5.11                      | 5.11     | http://redhat.com/rhel/5.11              
 + rhel5.2              | Red Hat Enterprise Linux 5.2                       | 5.2      | http://redhat.com/rhel/5.2               
 + rhel5.3              | Red Hat Enterprise Linux 5.3                       | 5.3      | http://redhat.com/rhel/5.3               
 + rhel5.4              | Red Hat Enterprise Linux 5.4                       | 5.4      | http://redhat.com/rhel/5.4               
 + rhel5.5              | Red Hat Enterprise Linux 5.5                       | 5.5      | http://redhat.com/rhel/5.5               
 + rhel5.6              | Red Hat Enterprise Linux 5.6                       | 5.6      | http://redhat.com/rhel/5.6               
 + rhel5.7              | Red Hat Enterprise Linux 5.7                       | 5.7      | http://redhat.com/rhel/5.7               
 + rhel5.8              | Red Hat Enterprise Linux 5.8                       | 5.8      | http://redhat.com/rhel/5.8               
 + rhel5.9              | Red Hat Enterprise Linux 5.9                       | 5.9      | http://redhat.com/rhel/5.9               
 + rhel6-unknown        | Red Hat Enterprise Linux 6 Unknown                 | 6-unknown | http://redhat.com/rhel/6-unknown         
 + rhel6.0              | Red Hat Enterprise Linux 6.0                       | 6.0      | http://redhat.com/rhel/6.0               
 + rhel6.1              | Red Hat Enterprise Linux 6.1                       | 6.1      | http://redhat.com/rhel/6.1               
 + rhel6.10             | Red Hat Enterprise Linux 6.10                      | 6.10     | http://redhat.com/rhel/6.10              
 + rhel6.2              | Red Hat Enterprise Linux 6.2                       | 6.2      | http://redhat.com/rhel/6.2               
 + rhel6.3              | Red Hat Enterprise Linux 6.3                       | 6.3      | http://redhat.com/rhel/6.3               
 + rhel6.4              | Red Hat Enterprise Linux 6.4                       | 6.4      | http://redhat.com/rhel/6.4               
 + rhel6.5              | Red Hat Enterprise Linux 6.5                       | 6.5      | http://redhat.com/rhel/6.5               
 + rhel6.6              | Red Hat Enterprise Linux 6.6                       | 6.6      | http://redhat.com/rhel/6.6               
 + rhel6.7              | Red Hat Enterprise Linux 6.7                       | 6.7      | http://redhat.com/rhel/6.7               
 + rhel6.8              | Red Hat Enterprise Linux 6.8                       | 6.8      | http://redhat.com/rhel/6.8               
 + rhel6.9              | Red Hat Enterprise Linux 6.9                       | 6.9      | http://redhat.com/rhel/6.9               
 + rhel7-unknown        | Red Hat Enterprise Linux 7 Unknown                 | 7-unknown | http://redhat.com/rhel/7-unknown         
 + rhel7.0              | Red Hat Enterprise Linux 7.0                       | 7.0      | http://redhat.com/rhel/7.0               
 + rhel7.1              | Red Hat Enterprise Linux 7.1                       | 7.1      | http://redhat.com/rhel/7.1               
 + rhel7.2              | Red Hat Enterprise Linux 7.2                       | 7.2      | http://redhat.com/rhel/7.2               
 + rhel7.3              | Red Hat Enterprise Linux 7.3                       | 7.3      | http://redhat.com/rhel/7.3               
 + rhel7.4              | Red Hat Enterprise Linux 7.4                       | 7.4      | http://redhat.com/rhel/7.4               
 + rhel7.5              | Red Hat Enterprise Linux 7.5                       | 7.5      | http://redhat.com/rhel/7.5               
 + rhel7.6              | Red Hat Enterprise Linux 7.6                       | 7.6      | http://redhat.com/rhel/7.6               
 + rhel7.7              | Red Hat Enterprise Linux 7.7                       | 7.7      | http://redhat.com/rhel/7.7               
 + rhel7.8              | Red Hat Enterprise Linux 7.8                       | 7.8      | http://redhat.com/rhel/7.8               
 + rhel7.9              | Red Hat Enterprise Linux 7.9                       | 7.9      | http://redhat.com/rhel/7.9               
 + rhel8-unknown        | Red Hat Enterprise Linux 8 Unknown                 | 8-unknown | http://redhat.com/rhel/8-unknown         
 + rhel8.0              | Red Hat Enterprise Linux 8.0                       | 8.0      | http://redhat.com/rhel/8.0               
 + rhel8.1              | Red Hat Enterprise Linux 8.1                       | 8.1      | http://redhat.com/rhel/8.1               
 + rhel8.2              | Red Hat Enterprise Linux 8.2                       | 8.2      | http://redhat.com/rhel/8.2               
 + rhel8.3              | Red Hat Enterprise Linux 8.3                       | 8.3      | http://redhat.com/rhel/8.3               
 + rhel8.4              | Red Hat Enterprise Linux 8.4                       | 8.4      | http://redhat.com/rhel/8.4               
 + rhel9-unknown        | Red Hat Enterprise Linux 9 Unknown                 | 9-unknown | http://redhat.com/rhel/9-unknown         
 + rhel9.0              | Red Hat Enterprise Linux 9.0                       | 9.0      | http://redhat.com/rhel/9.0               
 + rhl1.0               | Red Hat Linux 1.0                                  | 1.0      | http://redhat.com/rhl/1.0                
 + rhl1.1               | Red Hat Linux 1.1                                  | 1.1      | http://redhat.com/rhl/1.1                
 + rhl2.0               | Red Hat Linux 2.0                                  | 2.0      | http://redhat.com/rhl/2.0                
 + rhl2.1               | Red Hat Linux 2.1                                  | 2.1      | http://redhat.com/rhl/2.1                
 + rhl3.0.3             | Red Hat Linux 3.0.3                                | 3.0.3    | http://redhat.com/rhl/3.0.3              
 + rhl4.0               | Red Hat Linux 4.0                                  | 4.0      | http://redhat.com/rhl/4.0                
 + rhl4.1               | Red Hat Linux 4.1                                  | 4.1      | http://redhat.com/rhl/4.1                
 + rhl4.2               | Red Hat Linux 4.2                                  | 4.2      | http://redhat.com/rhl/4.2                
 + rhl5.0               | Red Hat Linux 5.0                                  | 5.0      | http://redhat.com/rhl/5.0                
 + rhl5.1               | Red Hat Linux 5.1                                  | 5.1      | http://redhat.com/rhl/5.1                
 + rhl5.2               | Red Hat Linux 5.2                                  | 5.2      | http://redhat.com/rhl/5.2                
 + rhl6.0               | Red Hat Linux 6.0                                  | 6.0      | http://redhat.com/rhl/6.0                
 + rhl6.1               | Red Hat Linux 6.1                                  | 6.1      | http://redhat.com/rhl/6.1                
 + rhl6.2               | Red Hat Linux 6.2                                  | 6.2      | http://redhat.com/rhl/6.2                
 + rhl7                 | Red Hat Linux 7                                    | 7        | http://redhat.com/rhl/                 
 + rhl7.1               | Red Hat Linux 7.1                                  | 7.1      | http://redhat.com/rhl/7.1                
 + rhl7.2               | Red Hat Linux 7.2                                  | 7.2      | http://redhat.com/rhl/7.2                
 + rhl7.3               | Red Hat Linux 7.3                                  | 7.3      | http://redhat.com/rhl/7.3                
 + rhl8.0               | Red Hat Linux 8.0                                  | 8.0      | http://redhat.com/rhl/8.0                
 + rhl9                 | Red Hat Linux 9                                    | 9        | http://redhat.com/rhl/9  
 +</code>
  
-La technique des disques en miroir consiste à dupliquer l'écriture des données sur plusieurs disquesLe miroir peut être géré par un logiciel ou par du matériel.+Afin d'installer une machine virtuelle nous avons besoin d'identifier le **Short ID** de la version à installerCette information se trouve dans la première colonne de la sortie de la commandeLes trois autres colonnes indiquent :
  
-====Bandes de données====+  * Colonne 2, 
 +    * **Name**, 
 +      * Le nom officiel du système d'exploitation, 
 +  * Colonne 3, 
 +    * **Version**, 
 +      * La version du système d'exploitation, 
 +  * Colonne 4, 
 +    * **ID**, 
 +      * Un URL censé pointer vers la page officielle de la version de la distribution. Attention : ces URLs sont bien souvent inexactes, 
 +       
 +Pour rechercher le Short ID de CentOS 8, recherchez **centos** dans la sortie de la commande **osinfo-query os** : 
 +  
 +<code> 
 +[root@centos8 ~]# osinfo-query os | grep centos 
 + centos-stream8       | CentOS Stream 8                                    | 8        | http://centos.org/centos-stream/       
 + centos5.0            | CentOS 5.0                                         | 5.0      | http://centos.org/centos/5.0             
 + centos5.1            | CentOS 5.1                                         | 5.1      | http://centos.org/centos/5.1             
 + centos5.10           | CentOS 5.10                                        | 5.10     | http://centos.org/centos/5.10            
 + centos5.11           | CentOS 5.11                                        | 5.11     | http://centos.org/centos/5.11            
 + centos5.2            | CentOS 5.2                                         | 5.2      | http://centos.org/centos/5.2             
 + centos5.3            | CentOS 5.3                                         | 5.3      | http://centos.org/centos/5.3             
 + centos5.4            | CentOS 5.4                                         | 5.4      | http://centos.org/centos/5.4             
 + centos5.5            | CentOS 5.5                                         | 5.5      | http://centos.org/centos/5.5             
 + centos5.6            | CentOS 5.6                                         | 5.6      | http://centos.org/centos/5.6             
 + centos5.7            | CentOS 5.7                                         | 5.7      | http://centos.org/centos/5.7             
 + centos5.8            | CentOS 5.8                                         | 5.8      | http://centos.org/centos/5.8             
 + centos5.9            | CentOS 5.9                                         | 5.9      | http://centos.org/centos/5.9             
 + centos6.0            | CentOS 6.0                                         | 6.0      | http://centos.org/centos/6.0             
 + centos6.1            | CentOS 6.1                                         | 6.1      | http://centos.org/centos/6.1             
 + centos6.10           | CentOS 6.10                                        | 6.10     | http://centos.org/centos/6.10            
 + centos6.2            | CentOS 6.2                                         | 6.2      | http://centos.org/centos/6.2             
 + centos6.3            | CentOS 6.3                                         | 6.3      | http://centos.org/centos/6.3             
 + centos6.4            | CentOS 6.4                                         | 6.4      | http://centos.org/centos/6.4             
 + centos6.5            | CentOS 6.5                                         | 6.5      | http://centos.org/centos/6.5             
 + centos6.6            | CentOS 6.6                                         | 6.6      | http://centos.org/centos/6.6             
 + centos6.7            | CentOS 6.7                                         | 6.7      | http://centos.org/centos/6.7             
 + centos6.8            | CentOS 6.8                                         | 6.8      | http://centos.org/centos/6.8             
 + centos6.9            | CentOS 6.9                                         | 6.9      | http://centos.org/centos/6.9             
 + centos7.0            | CentOS 7                                           | 7        | http://centos.org/centos/7.0             
 + centos8              | CentOS 8                                           | 8        | http://centos.org/centos/8  
 + </code>
  
-La technique des bandes de données, autrement appelée //data striping// consiste à couper les données à enregistrer en segments séquentiels et contigus pour les enregistrer sur plusieurs disques physiquesL'ensemble des segments constitue alors un disque logique ou //striped disk//. Cette technique peut être améliorée en déposant une bande de parité, calculée à partir des données des autres bandes, afin de pouvoir reconstituer une bande de données défaillante.+<WRAP center round important 60%> 
 +**Important** : Notez que le Short ID de CentOS 8 est actuellement **centos8** quelque soit la version. 
 +</WRAP>
  
-=====Types de RAID=====+====1.2 - Configuration du Stockage des ISOs====
  
-====RAID 0 Concaténation====+Afin d'installer la machine virtuelle il est nécessaire d'avoir accès à l'ISO de celui-ci. Pour des raisons de performances il est souhaitable que cet ISO soit stocké localement ou bien sur un système de fichiers distant sans latence. Un ISO de CentOS 8 a été préchargé dans le répertoire **/root** de votre VM. Cet ISO doit être placé dans un en droit accessible par l'utilisateur et le groupe **qemu**. Créez donc le répertoire **/isos**, placez l'ISO dans ce répertoire et accordez les permissions adéquates :
  
-Création de volume par récupération de l'espace libre sur un ou plusieurs disquesLe principe de la concaténation est la création d'un volume à bandes où chaque bande est une tranche.+<code> 
 +[root@centos8 ~]# ls -| grep CentOS 
 +-rw-r--r--1 root root 625999872 Sep  3 04:44 CentOS-8.1.1911-x86_64-boot.iso
  
-{{:linux:raid0c.gif|}}+[root@centos8 ~]# chmod 755 CentOS-8.1.1911-x86_64-boot.iso 
  
-===Avantages===+[root@centos8 ~]# mkdir /isos
  
-  * Récupération de l'espace disque.+[root@centos8 ~]# mv CentOS-8.1.1911-x86_64-boot.iso /isos
  
-===Inconvénients===+[root@centos8 ~]# chown -R qemu:qemu /isos 
 +</code>
  
-  * Pas de protection des données, +====1.3 - Installation du Domain====
-  * Pas d'augmentation des performances d'E/S.+
  
-====RAID 0 Striping====+Démarrez maintenant l'installation d'une machine virtuelle **CentOS 8** grâce à la commande **virt-install** : 
 +       
 +<code> 
 +[root@centos8 ~]# virt-install --network bridge:virbr0 --name testvm1 --os-variant=centos8 --ram=2048 --vcpus=1 --disk path=/var/lib/libvirt/images/testvm1-os.qcow2,bus=virtio,size=5 --graphics none --location=/isos/CentOS-8.1.1911-x86_64-boot.iso --extra-args="console=tty0 console=ttyS0,115200" --check all=off
  
-Création de volume sur plusieurs disques afin d'augmenter les performances d'E/SLe principe du striping est la création d'un volume à bandes réparties sur plusieurs tranchesLa taille de la bande doit être fonction des données à écrire sur le volume (16k, 32k, 64k, etc.) Cette taille est choisie à la création du volume.+Starting install... 
 +Retrieving file vmlinuz...                                                                                                                        | 7.7 MB  00:00:00      
 +Retrieving file initrd.img...                                                                                                                      59 MB  00:00:00      
 +Allocating 'testvm1-os.qcow2                                                                                                                    | 5.0 GB  00:00:00      
 +WARNING  Overriding memory to 3072 MiB needed for centos8 network install. 
 +Connected to domain testvm1 
 +Escape character is ^] 
 +[    0.000000] Linux version 4.18.0-147.el8.x86_64 (mockbuild@kbuilder.bsys.centos.org(gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)) #1 SMP Wed Dec 4 21:51:45 UTC 2019 
 +... 
 +</code>
  
-{{:linux:raid0s.gif|}}+<WRAP center round important 60%> 
 +**Important** Notez que la quantité de mémoire est automatiquement et provisoirement augmentée à 3072 Mo afin que l'installation se déroule correctement. Notez aussi l'utilisation du mot **domain**. Un domain sous KVM est un terme utilisé pour décrire une machine virtuelle 
 +</WRAP>
  
-===Avantages===+Dans cette commande on peut constater l'utilisation de plusieurs options importantes :
  
-  Augmentation des performances d'E/S par écriture en parallèle sur les disques.+^ Option ^ Commentaire ^ 
 +| --network bridge: | Fixe la valeur du pont à utiliser par la VM à virbr0 | 
 +| --name  | Indique le nom de la VM | 
 +| --os-variant= | Egal à la valeur du Short ID identifié au-dessus 
 +| --ram= | Fixe la quantité de la RAM de la VM en Mo | 
 +| --vcpus= | Fixe le nombre de vCPUs de la VM | 
 +| --disk path= | Crée une image pour la VM, au format indiqué et de la taille indiquée en Go, à l'emplacement spécifié | 
 +| --graphics | La valeur **none** indique que l'installation aura lieu en mode texteNotez que dans le cas d'une VM Windows(tm), la valeur doit être **spice** | 
 +| --location= | Indique l'emplacement de l'ISO à utiliser pour l'installation | 
 +| --extra-args= | Indique les options de la connectivité de la console |
  
-===Inconvénients===+===Format des Images===
  
-  * Pas de protection des données.+Une image est un disque virtuelKVM reconnait les formats d'image suivants :
  
-====RAID 1 Miroir====+<code> 
 +[root@centos8 ~]# qemu-img -h | grep Supported 
 +Supported formats: blkdebug blklogwrites blkreplay blkverify copy-on-read file ftp ftps gluster host_cdrom host_device http https iscsi iser luks nbd null-aio null-co nvme qcow2 quorum raw rbd ssh throttle vhdx vmdk vpc 
 +</code>
  
-Création d'un volume où les disques sont en miroirQuand les deux disques sont connectés à des contrôleurs de disques différents, on parle de //duplexing// :+<WRAP center round important 60%> 
 +**Important** : Consultez **[[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-using_qemu_img-supported_qemu_img_formats|cette page]]** pour plus d'informations. 
 +</WRAP>  
  
-{{:linux:raid1m.gif|}}+===Convertir le Format de l'Image===
  
-===Avantages===+Il est possible de convertir un format d'image existante au format qcow2 avec la commande **qemu-img convert**, notamment les images au format **qed**, **raw**, **vdi**, **vhd** et **vmdk**. Par exemple :
  
-  * Protection des données contre une défaillance d'un disque.+<file> 
 +# qemu-img convert -f vmdk -O qcow2 myimage.vmdk mynewimage.qcow2 
 +</file>
  
-===Inconvénients===+Dans le cas d'une image au format **vdi** d'Oracle VirtualBox, il est préférable de créer une image au format **raw** en utilisant la commande **VBoxManage** :
  
-  * Coûteux à cause de l'augmentation du nombre de disques.+<file> 
 +# VBoxManage clonehd myimage.vdi myrawimage.img --format raw 
 +</file>
  
-====RAID 1+0 Striping en Miroir====+Ensuite il convient d'utiliser la commande **qemu-img convert** pour convertir l'image au format raw en qcow2 :
  
-Le RAID 1+0 ou encore 0+1 est une technique qui réunit le RAID 0 et le RAID 1On l'appelle aussi un RAID **exotique**:+<file> 
 +# qemu-img convert -f raw -O qcow2 myrawimage.img mynewimage.qcow2 
 +</file>
  
-{{:linux:raid10.gif|}}+====1.4 - Configuration de l'Installation de l'OS Invité====
  
-===Avantages===+===Language Settings===
  
-  * Protection des données contre une défaillance d'un disque. +Commencez par appuyer sur le choix **1** :
-  * Augmentation des performances d'E/par écriture en parallèle sur les disques.+
  
-===Inconvénients===+<code> 
 +... 
 +Starting installer, one moment... 
 +anaconda 29.19.1.13-1.el8 for CentOS Linux 8 started. 
 + * installation log files are stored in /tmp during the installation 
 + * shell is available on TTY2 
 + * if the graphical installation interface fails to start, try again with the 
 +   inst.text bootoption to start text installation 
 + * when reporting a bug add logs from /tmp as separate text/plain attachments 
 +14:08:33 Not asking for VNC because we don't have a network 
 +================================================================================ 
 +================================================================================ 
 +Installation
  
-  * Coûteux à cause de l'augmentation du nombre de disques.+1) [x] Language settings                 2) [x] Time settings 
 +       (English (United States))                (America/New_York timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Processing...)                          (Processing...) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [!] Network configuration             8) [!] Root password 
 +       (Not connected)                          (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-====RAID 2 - Miroir avec Contrôle d'Erreurs====+Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 1 
 +================================================================================ 
 +================================================================================
  
-Le RAID 2 est une technique de miroir avec contrôle de correction d'erreurs (EEC). De nos jours cette technique est peu utilisée, ayant été remplacée par les RAID 3et 5.+3) Arabic                  29) Hebrew                 55) Norwegian Nynorsk 
 +4) Assamese                30) Hindi                  56) Northern Sotho 
 +5) Asturian                31) Croatian               57) Odia 
 +6) Belarusian              32) Hungarian              58) Punjabi 
 +7) Bulgarian               33) Interlingua            59) Polish 
 +8) Bangla                  34) Indonesian             60) Portuguese 
 +9) Tibetan                 35) Icelandic              61) Romanian 
 +10) Bosnian                36) Italian                62) Russian 
 +11) Catalan                37) Japanese               63) Sinhala 
 +12) Czech                  38) Georgian               64) Slovak 
 +13) Welsh                  39) Kazakh                 65) Slovenian 
 +14) Danish                 40) Khmer                  66) Albanian 
 +15) German                 41) Kannada                67) Serbian 
 +16) Greek                  42) Korean                 68) Swedish 
 +17) English                43) Lithuanian             69) Tamil 
 +18) Spanish                44) Latvian                70) Telugu 
 +19) Estonian               45) Maithili               71) Tajik 
 +20) Basque                 46) Macedonian             72) Thai 
 +21) Persian                47) Malayalam              73) Turkish 
 +22) Finnish                48) Marathi                74) Ukrainian 
 +23) Filipino               49) Malay                  75) Urdu 
 +24) French                 50) Burmese                76) Vietnamese 
 +25) Friulian               51) Norwegian Bokmål       77) Mandarin Chinese
  
-====RAID 3 et 4 - Striping avec Parité====+Press ENTER to continue:  
 +26) Irish                  52) Low German             78) Zulu 
 +</code>
  
-Les RAID 3 et 4 sont des technologies avec bandes de parité distribuées sur un seul disque :+Choisissez l'option **24** puis l'option **1** :
  
-{{:linux:raid34.gif|}}+<code> 
 +Please select language support to install ['b' to return to language list, 'c' 
 +to continue, 'q' to quit, 'r' to refresh]24 
 +================================================================================ 
 +================================================================================ 
 +Language settings
  
-En RAID 3, la taille des segments n’est pas modifiable et est fixée à 512 octets (en RAID : un segment = un secteur de disque dur = 512 octets).+Available locales 
 +1) French (France)         3) French (Belgium)        5) French (Luxembourg) 
 +2) French (Canada)         4) French (Switzerland)
  
-En RAID 4la taille des segments est variable et se modifie en temps réel. Cela implique que les informations de parité doivent être mise à jour à chaque écriture afin de vérifier si la taille des segments a été modifiée. +Please select language support to install ['b' to return to language list'c' 
 +to continue, 'q' to quit, 'r' to refresh]: 1 
 +================================================================================ 
 +================================================================================ 
 +Installation
  
-===Avantages===+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (America/New_York timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [!] Network configuration             8) [!] Root password 
 +       (Not connected)                          (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-  * Protection des données contre une défaillance d'un disque.+Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]:  
 +[anaconda]1:main* 2:shell  3:log  4:storage-log >Switch tab: Alt+Tab | Help: F1  
 +</code>
  
-===Inconvénients===+===Network configuration===
  
-  * Création d'un goulot d'étranglement des données à cause de l'écriture des données de parité sur un seul disque.+Choisissez maintenant l'option **7** :
  
-====RAID 5 - Striping avec Parité Distribuée====+<code> 
 +================================================================================ 
 +================================================================================ 
 +Installation
  
-Le RAID est une technologie avec bandes de parité distribuées sur plusieurs disques :+1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (America/New_York timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [!] Network configuration             8) [!] Root password 
 +       (Not connected)                          (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-{{:linux:raid5.gif|}}+Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]
 +================================================================================ 
 +================================================================================ 
 +Network configuration
  
-===Avantages===+Wired (enp1s0) disconnected
  
-  * Protection des données contre une défaillance d'un disque, +Host Name: localhost.localdomain
-  * Evite le goulot d'étranglement d'un seul disque de parité.+
  
-===Inconvénients===+Current host name: localhost
  
-  * Lecture moins performante qu'avec RAID 3 et 4.+1) Set host name 
 +2) Configure device enp1s0 
 +<code>
  
-====Au délà de RAID 5====+Choisissez ensuite l'option **1** pour définir le nom d'hôte de la VM :
  
-Il existe aussi deux autres technologies RAIDtoute deux issues de la technologie RAID 5 :+<code> 
 +Please make a selection from the above ['c' to continue'q' to quit, 'r' to 
 +refresh]: 1 
 +================================================================================ 
 +================================================================================ 
 +Enter a new value for 'Host Name' and press ENTERtestvm1.ittraining.network 
 +================================================================================ 
 +================================================================================ 
 +Network configuration
  
-  * RAID 6 +Wired (enp1s0) disconnected
-    * //Disk Striping with Double Distributed Parity// +
-  * RAID TP +
-    * //Disk Striping with Triple Distributed Parity//+
  
-=====RAID Logiciel sous RHEL/CentOS=====+Host Name: testvm1.ittraining.network
  
-====Préparation du disque====+Current host name: localhost
  
-===Partitionnement===+1) Set host name 
 +2) Configure device enp1s0 
 +<code>
  
-Suite à votre LAB de la leçon **Gestion des Disques et le Swap**, votre disque comporte 12 partitions :+Choisissez l'option **2** pour configurer la connexion réseau :
  
 <code> <code>
-[root@centos7 ~]# fdisk -l+Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: 2 
 +================================================================================ 
 +================================================================================ 
 +Device configuration
  
-Disk /dev/sda: 21.5 GB21474836480 bytes41943040 sectors +1) IPv4 address or "dhcp" for DHCP 
-Units = sectors of 1 * 512 = 512 bytes +   dhcp 
-Sector size (logical/physical): 512 bytes / 512 bytes +2) IPv4 netmask 
-I/O size (minimum/optimal): 512 bytes / 512 bytes +3) IPv4 gateway 
-Disk label type: dos +4) IPv6 address[/prefix] or "auto" for automatic"dhcp" for DHCP"ignore" to 
-Disk identifier: 0x000c5a90+   turn off 
 +   auto 
 +5IPv6 default gateway 
 +6) Nameservers (comma separated
 +7) [ ] Connect automatically after reboot 
 +8) [ ] Apply configuration in installer
  
-   Device Boot      Start         End      Blocks   Id  System +Configuring device enp1s0. 
-/dev/sda1          2048      411647      204800   83  Linux +<code>
-/dev/sda2          411648    20891647    10240000   83  Linux +
-/dev/sda3        20891648    25083903     2096128   82  Linux swap / Solaris +
-/dev/sda4        25083904    41943039     8429568    5  Extended +
-/dev/sda5        25085952    26109951      512000   fd  Linux raid autodetect +
-/dev/sda6        26112000    26521599      204800   8e  Linux LVM +
-/dev/sda7        26523648    27138047      307200   8e  Linux LVM +
-/dev/sda8        27140096    28164095      512000   fd  Linux raid autodetect +
-/dev/sda9        28166144    28985343      409600   8e  Linux LVM +
-/dev/sda10       28987392    30011391      512000   fd  Linux raid autodetect +
-/dev/sda11       30013440    31037439      512000   fd  Linux raid autodetect +
-/dev/sda12       31039488    31449087      204800   83  Linux +
-</code>+
  
-====Mise en Place du RAID 5 Logiciel====+Laissez l’option **1** en **dhcp** puis choisissez l'option **6** pour définir les serveurs DNS en **8.8.8.8,8.8.4.4** :
  
-Dans le cas de cet exemple les quatre partitions concernées par la mise en place d'un RAID 5 sont :+<code> 
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: 6 
 +================================================================================ 
 +================================================================================ 
 +Enter a new value for 'Nameservers (comma separated)' and press ENTER8.8.8.8,8 
 +.8.4.4 
 +================================================================================ 
 +================================================================================ 
 +Device configuration
  
-<file> +1) IPv4 address or "dhcp" for DHCP 
-/dev/sda5        25085952    26109951      512000   fd  Linux raid autodetect +   dhcp 
-/dev/sda8        27140096    28164095      512000   fd  Linux raid autodetect +2) IPv4 netmask 
-/dev/sda10       28987392    30011391      512000   fd  Linux raid autodetect +3) IPv4 gateway 
-/dev/sda11       30013440    31037439      512000   fd  Linux raid autodetect +4) IPv6 address[/prefix] or "auto" for automatic, "dhcp" for DHCP, "ignore" to 
-</file>+   turn off 
 +   auto 
 +5) IPv6 default gateway 
 +6) Nameservers (comma separated) 
 +   8.8.8.8,8.8.4.4 
 +7) [ ] Connect automatically after reboot 
 +8) [ ] Apply configuration in installer
  
-La création d'une unité RAID avec la commande **mdadm** se fait grâce aux options passées en arguments à la commande :+Configuring device enp1s0. 
 +</code> 
 + 
 +Il est important de configurer la prise en compte automatique de la configuration après le re-démarrage. Choisissez donc l'option **7** :
  
 <code> <code>
-mdadm --create <unité RAID> [options<unités physiques>+Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: 7 
 +================================================================================ 
 +================================================================================ 
 +Device configuration 
 + 
 +1) IPv4 address or "dhcp" for DHCP 
 +   dhcp 
 +2) IPv4 netmask 
 +3) IPv4 gateway 
 +4) IPv6 address[/prefix] or "auto" for automatic, "dhcp" for DHCP, "ignore" to 
 +   turn off 
 +   auto 
 +5) IPv6 default gateway 
 +6) Nameservers (comma separated) 
 +   8.8.8.8,8.8.4.4 
 +7) [x] Connect automatically after reboot 
 +8) [ ] Apply configuration in installer 
 + 
 +Configuring device enp1s0.
 </code> </code>
  
-Par exemplesaisissez la commande suivante :+Pour pouvoir installer les paquets logiciels, la configuration réseau doit être appliquée immédiatement. Choisissez donc l'option **8** :
  
 <code> <code>
-[root@centos7 ~]# mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sda5 /dev/sda8 /dev/sda11 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-mdadm: Defaulting to version 1.2 metadata +refresh]: 8 
-mdadm: array /dev/md1 started. +================================================================================ 
-</code>+================================================================================ 
 +Device configuration
  
-Les options dans la ligne de commande sont :+1) IPv4 address or "dhcp" for DHCP 
 +   dhcp 
 +2) IPv4 netmask 
 +3) IPv4 gateway 
 +4) IPv6 address[/prefix] or "auto" for automatic, "dhcp" for DHCP, "ignore" to 
 +   turn off 
 +   auto 
 +5) IPv6 default gateway 
 +6) Nameservers (comma separated) 
 +   8.8.8.8,8.8.4.4 
 +7) [x] Connect automatically after reboot 
 +8) [x] Apply configuration in installer
  
-^ Option Courte ^ Option Longue ^ Description ^ +Configuring device enp1s0. 
-| -l | - -level | Le niveau RAID - **linear, 0,1,2,4 ou 5** | +</code>
-| -n | - -raid-devices=<nombre| Le nombre de périphériques actifs dans le RAID |+
  
-Les autres options de la commande **mdadm** peuvent être visualisées grâce à la commande suivante :+Validez les configurations actuelles en appuyant sur la touche **c** :
  
 <code> <code>
-[root@centos7 ~]# mdadm --help-options +Please make a selection from the above ['cto continue'q' to quit'r' to 
-Any parameter that does not start with '-is treated as a device name +refresh]: c 
-orfor --examine-bitmapa file name. +================================================================================ 
-The first such name is often the name of an md device.  Subsequent +================================================================================ 
-names are often names of component devices.+Network configuration 
 + 
 +Wired (enp1s0) disconnected 
 + 
 +Host Name: testvm1.ittraining.network
  
-Some common options are: +Current host namelocalhost
-  --help        -h   : General help message or, after above option, +
-                       mode specific help message +
-  --help-options     : This help message +
-  --version     -V   : Print version information for mdadm +
-  --verbose     -v   : Be more verbose about what is happening +
-  --quiet       -q   : Don't print un-necessary messages +
-  --brief       -b   : Be less verbose, more brief +
-  --export      -Y   : With --detail, --detail-platform or --examine use +
-                       key=value format for easy import into environment +
-  --force       -f   : Override normal checks and be more forceful+
  
-  --assemble    -A   : Assemble an array +1) Set host name 
-  --build       -B   : Build an array without metadata +2Configure device enp1s0
-  --create      -C   : Create a new array +
-  --detail      -D   : Display details of an array +
-  --examine     -E   : Examine superblock on an array component +
-  --examine-bitmap -X: Display the detail of a bitmap file +
-  --examine-badblocks: Display list of known bad blocks on device +
-  --monitor     -F   : monitor (followsome arrays +
-  --grow        -G   : resize/ reshape and array +
-  --incremental -I   : add/remove a single device to/from an array as appropriate +
-  --query       -Q   : Display general information about how a +
-                       device relates to the md driver +
-  --auto-detect      : Start arrays auto-detected by the kernel+
 </code> </code>
  
-Les //modes majeurs// de la commande **mdadm** peuvent être visualisés grâce à la commande suivante :+Pour retourner au menu principal, appuyez sur la touche **c** de nouveau :
  
 <code> <code>
-[root@centos7 ~]# mdadm --help +Please make a selection from the above ['cto continue'q' to quit'r' to 
-mdadm is used for building, managing, and monitoring +refresh]: c 
-Linux md devices (aka RAID arrays) +================================================================================ 
-Usage: mdadm --create device options... +================================================================================ 
-            Create a new array from unused devices. +Installation
-       mdadm --assemble device options... +
-            Assemble a previously created array. +
-       mdadm --build device options... +
-            Create or assemble an array without metadata. +
-       mdadm --manage device options... +
-            make changes to an existing array. +
-       mdadm --misc options... devices +
-            report on or modify various md related devices. +
-       mdadm --grow options device +
-            resize/reshape an active array +
-       mdadm --incremental device +
-            add/remove device to/from an array as appropriate +
-       mdadm --monitor options... +
-            Monitor one or more array for significant changes. +
-       mdadm device options... +
-            Shorthand for --manage. +
-Any parameter that does not start with '-is treated as a device name +
-orfor --examine-bitmapa file name. +
-The first such name is often the name of an md device.  Subsequent +
-names are often names of component devices.+
  
- For detailed help on the above major modes use --help after the mode +1) [x] Language settings                 2) [x] Time settings 
- e.g+       (French (France))                        (America/New_York timezone) 
-         mdadm --assemble --help +3) [!] Installation source               4) [!] Software selection 
- For general help on options use +       (Error setting up software               (Error checking software 
-         mdadm --help-options+       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [!] Root password 
 +       (Wired (enp1s0) connected)               (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]:  
 +[anaconda]1:main* 2:shell  3:log  4:storage-log >Switch tab: Alt+Tab | Help: F1 
 </code> </code>
  
-Dernièrementchaque //mode majeur// dispose de son propre aide :+<WRAP center round important> 
 +Important : **Important** - Si la configuration en DHCP n'est pas prise en compte. Refaites la configuration en IP fixe en indiquant une adresse 192.168.56.50un masque de sous-réseau de 255.255.255.0 et une adresse de passerelle de 192.168.56.1. 
 +</WRAP>
  
-<code> +===Time settings===
-[root@centos7 ~]# mdadm --assemble --help +
-Usage: mdadm --assemble device options... +
-       mdadm --assemble --scan options...+
  
-This usage assembles one or more raid arrays from pre-existing +Choisissez maintenant l'option **2** pour définir le fuseau d'horaire de la VM :
-components. +
-For each array, mdadm needs to know the md device, the identity of +
-the array, and a number of sub devices. These can be found in a number +
-of ways.+
  
-The md device is given on the command line, is found listed in the +<code> 
-config file, or can be deduced from the array identity. +================================================================================ 
-The array identity is determined either from the --uuid, --name, or +================================================================================ 
---super-minor commandline arguments, from the config file, +Installation
-or from the first component device on the command line.+
  
-The different combinations of these are as follows: +1) [x] Language settings                 2) [x] Time settings 
- If the --scan option is not given, then only devices and identities +       (French (France))                        (America/New_York timezone) 
- listed on the command line are considered. +3) [!] Installation source               4) [!] Software selection 
- The first device will be the array device, and the remainder will be +       (Error setting up software               (Error checking software 
- examined when looking for components. +       source)                                  selection) 
- If an explicit identity is given with --uuid or --super-minor, then +5) [!] Installation Destination          6) [x] Kdump 
- only devices with a superblock which matches that identity is considered, +       (No disks selected)                      (Kdump is enabled) 
- otherwise every device listed is considered.+7) [x] Network configuration             8) [!] Root password 
 +       (Wired (enp1s0) connected)               (Password is not set.
 +9) [!] User creation 
 +       (No user will be created)
  
- If the --scan option is given, and no devices are listed, then +Please make a selection from the above ['b' to begin installation'q' to quit, 
- every array listed in the config file is considered for assembly. +'rto refresh]: 2 
- The identity of candidate devices are determined from the config file. +================================================================================ 
- After these arrays are assembledmdadm will look for other devices +================================================================================ 
- that could form further arrays and tries to assemble them.  This can +Time settings
- be disabled using the 'AUTOoption in the config file.+
  
- If the --scan option is given as well as one or more devices, then +Timezone: America/New_York
- Those devices are md devices that are to be assembled.  Their identity +
- and components are determined from the config file.+
  
- If mdadm can not find all of the components for an array, it will assemble +NTP servers:not configured
- it but not activate it unless --run or --scan is given.  To preserve this +
- behaviour even with --scan, add --no-degraded.  Note that "all of the +
- components" means as many as were present the last time the array was running +
- as recorded in the superblock.  If the array was already degraded, and +
- the missing device is not a new problem, it will still be assembled.  It +
- is only newly missing devices that cause the array not to be started.+
  
-Options that are valid with --assemble (-Aare: +1Change timezone 
-  --bitmap=          : bitmap file to use with the array +2) Configure NTP servers
-  --uuid=       -u   : uuid of array to assemble. Devices which don'+
-                       have this uuid are excluded +
-  --super-minor= -m  : minor number to look for in super-block when +
-                       choosing devices to use. +
-  --name=       -N   : Array name to look for in super-block. +
-  --config=     -c   : config file +
-  --scan        -s   : scan config file for missing information +
-  --run         -R   : Try to start the array even if not enough devices +
-                       for a full array are present +
-  --force       -f   : Assemble the array even if some superblocks appear +
-                     : out-of-date.  This involves modifying the superblocks. +
-  --update=     -U   : Update superblock: try '-A --update=?' for option list. +
-  --no-degraded      : Assemble but do not start degraded arrays. +
-  --readonly    -o   : Mark the array as read-only. No resync will start.+
 </code> </code>
  
-Constatez maintenant les informations concernant le RAID 5 créé :+Choisissez l'option **1** pour modifier le fuseau d'horaire :
  
 <code> <code>
-[root@centos7 ~]# cat /proc/mdstat +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-Personalities : [raid6[raid5] [raid4]  +refresh]: 1 
-md1 active raid5 sda11[3] sda8[1] sda5[0] +================================================================================ 
-      1021952 blocks super 1.2 level 5, 512k chunk, algorithm [3/3] [UUU] +================================================================================ 
-       +Timezone settings 
-unused devices: <none>+ 
 +Available regions 
 +1) Europe                  5) Antarctica              9) Indian 
 +2) Asia                    6) Pacific                 10) Arctic 
 +3) America                 7) Australia               11) US 
 +4) Africa                  8) Atlantic                12) Etc 
 +<code> 
 + 
 +Appuyez sur la touche **1** pour choisir **Europe** : 
 + 
 +<code> 
 +Please select the timezone. Use numbers or type names directly ['b' back to 
 +region list, 'c' to continue, 'q' to quit, 'r' to refresh]: 1 
 +================================================================================ 
 +================================================================================ 
 + 
 +1) Amsterdam               21) Kaliningrad            41) San_Marino 
 +2) Andorra                 22) Kiev                   42) Sarajevo 
 +3) Astrakhan               23) Kirov                  43) Saratov 
 +4) Athens                  24) Lisbon                 44) Simferopol 
 +5) Belgrade                25) Ljubljana              45) Skopje 
 +6) Berlin                  26) London                 46) Sofia 
 +7) Bratislava              27) Luxembourg             47) Stockholm 
 +8) Brussels                28) Madrid                 48) Tallinn 
 +9) Bucharest               29) Malta                  49) Tirane 
 +10) Budapest               30) Mariehamn              50) Ulyanovsk 
 +11) Busingen               31) Minsk                  51) Uzhgorod 
 +12) Chisinau               32) Monaco                 52) Vaduz 
 +13) Copenhagen             33) Moscow                 53) Vatican 
 +14) Dublin                 34) Oslo                   54) Vienna 
 +15) Gibraltar              35) Paris                  55) Vilnius 
 +16) Guernsey               36) Podgorica              56) Volgograd 
 +17) Helsinki               37) Prague                 57) Warsaw 
 +18) Isle_of_Man            38) Riga                   58) Zagreb 
 +19) Istanbul               39) Rome                   59) Zaporozhye 
 +20) Jersey                 40) Samara                 60) Zurich
 </code> </code>
  
-Grâce à la commande mdadm, il est possible d'obtenir d'avantage d'informations :+Puis choisissez l'option **35** pour Paris :
  
 <code> <code>
-[root@centos7 ~]# mdadm --query /dev/md1 +Please select the timezone. Use numbers or type names directly ['b' back to 
-/dev/md1: 998.17MiB raid5 devices, 0 spares. Use mdadm --detail for more detail.+region list, 'c' to continue, 'q' to quit, 'r' to refresh]: 35 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [!] Root password 
 +       (Wired (enp1s0) connected)               (Password is not set.
 +9) [!] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 
 </code> </code>
  
-L'option **- -detail** produit le résultat suivant :+===Root password=== 
 + 
 +Pour définir le mot de passe root de la VM, choisissez l'option **8** et indiquez le mot de passe **fenestros** :
  
 <code> <code>
-[root@centos7 ~]# mdadm --detail /dev/md1 +================================================================================ 
-/dev/md1: +================================================================================ 
-        Version : 1.2 +Installation
-  Creation Time : Tue Aug  2 15:10:12 2016 +
-     Raid Level : raid5 +
-     Array Size : 1021952 (998.17 MiB 1046.48 MB) +
-  Used Dev Size : 510976 (499.08 MiB 523.24 MB) +
-   Raid Devices : 3 +
-  Total Devices : 3 +
-    Persistence : Superblock is persistent+
  
-    Update Time : Tue Aug  15:10:17 2016 +1) [x] Language settings                 2) [x] Time settings 
-          State : clean  +       (French (France))                        (Europe/Paris timezone) 
- Active Devices : +3) [!] Installation source               4) [!] Software selection 
-Working Devices : 3 +       (Error setting up software               (Error checking software 
- Failed Devices : 0 +       source)                                  selection) 
-  Spare Devices : 0+5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [!] Root password 
 +       (Wired (enp1s0) connected)               (Password is not set.) 
 +9) [!] User creation 
 +       (No user will be created)
  
-         Layout : left-symmetric +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
-     Chunk Size 512K+'r' to refresh]
 +================================================================================ 
 +================================================================================ 
 +Root password
  
-           Name : centos7.fenestros.loc: (local to host centos7.fenestros.loc) +Please select new root passwordYou will have to type it twice.
-           UUID : fd8bac53:1457a4f4:30feab84:e0f9d8e0 +
-         Events : 18+
  
-    Number   Major   Minor   RaidDevice State +Password: fenestros 
-       0              5        0      active sync   /dev/sda5 +Password (confirm): fenestros 
-       1       8        8        1      active sync   /dev/sda8 +================================================================================ 
-       3             11        2      active sync   /dev/sda11+================================================================================ 
 +Question 
 + 
 +The password you have provided is weak: The password fails the dictionary check 
 +- it is based on a dictionary word 
 +Would you like to use it anyway? 
 + 
 +Please respond 'yes' or 'no': yes 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 
 </code> </code>
  
-Notez la ligne **Persistence : Superblock is persistent**. En effet, cette implémentation de RAID inscrit les caractéristiques du volume dans un //super bloc// persistant en début de chaque unité de type bloc dans le volume.+===Installation source===
  
-<WRAP center round todo> +Choisissez l'option **3** :
-Recherchez la signification des termes Layout, Chunk size, Major et Minor. +
-</WRAP>+
  
-Cependantil necéssaire de renseigner le fichier **/etc/mdadm.conf** afin que le RAID soit contruit à chaque démarrage :+<code> 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [!] Installation source               4) [!] Software selection 
 +       (Error setting up software               (Error checking software 
 +       source)                                  selection) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation'q' to quit, 
 +'r' to refresh]: 3 
 +================================================================================ 
 +================================================================================ 
 +Installation source 
 + 
 +Choose an installation source type. 
 +1) CD/DVD 
 +2) local ISO file 
 +3) Network 
 +</code> 
 + 
 +L'ISO utilisé est de type **net-install**. Choisissez donc l'option **3** :
  
 <code> <code>
-[root@centos7 ~]# echo 'DEVICES /dev/sda5 /dev/sda8 /dev/sda11> /etc/mdadm.conf +Please make a selection from the above ['cto continue, 'q' to quit, 'r' to 
-[root@centos7 ~]# mdadm --detail --scan >> /etc/mdadm.conf  +refresh]: 3 
-[root@centos7 ~]# cat /etc/mdadm.conf +================================================================================ 
-DEVICES /dev/sda5 /dev/sda8 /dev/sda11 +================================================================================ 
-ARRAY /dev/md1 metadata=1.2 name=centos7.fenestros.loc:1 UUID=fd8bac53:1457a4f4:30feab84:e0f9d8e0+Installation source 
 + 
 +1) Closest mirror 
 +2) http:// 
 +3) https:// 
 +4) ftp:// 
 +5) nfs
 </code> </code>
  
-Chaque unité peut être examinée individuellement :+Choisissez l'option **1** pour utiliser le miroir le plus proche :
  
 <code> <code>
-[root@centos7 ~]# mdadm --examine /dev/sda5 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-/dev/sda5: +refresh]: 1 
-          Magic : a92b4efc +================================================================================ 
-        Version : 1.2 +================================================================================ 
-    Feature Map : 0x0 +Installation 
-     Array UUID : fd8bac53:1457a4f4:30feab84:e0f9d8e0 + 
-           Name : centos7.fenestros.loc:1  (local to host centos7.fenestros.loc+1) [x] Language settings                 2) [x] Time settings 
-  Creation Time : Tue Aug  2 15:10:12 2016 +       (French (France))                        (Europe/Paris timezone) 
-     Raid Level : raid5 +3) [x] Installation source               4) [!] Software selection 
-   Raid Devices 3+       (Closest mirror)                         (Nothing selected) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]:  
 +</code> 
 + 
 +===Software selection=== 
 + 
 +Choisissez l'option **4** puis l'option **3** pour indiquer une installation minimale du système  
 + 
 +<code> 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [x] Installation source               4) [!] Software selection 
 +       (Closest mirror)                         (Nothing selected) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]
 +================================================================================ 
 +================================================================================ 
 +Software selection 
 + 
 +Base environment
  
- Avail Dev Size : 1021952 (499.08 MiB 523.24 MB+1[ ] Server with GUI                  4) [ ] Workstation 
-     Array Size : 1021952 (998.17 MiB 1046.48 MB+2[ ] Server                           5) [ ] Virtualization Host 
-    Data Offset : 2048 sectors +3) [ ] Minimal Install                  6) [ ] Custom Operating System
-   Super Offset : 8 sectors +
-   Unused Space : before=1960 sectors, after=0 sectors +
-          State : clean +
-    Device UUID : 4569e15e:20201bce:365776f2:75aed23f+
  
-    Update Time : Tue Aug  2 15:10:17 2016 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-  Bad Block Log 512 entries available at offset 72 sectors +refresh]3 
-       Checksum : 4c9948d0 - correct +================================================================================ 
-         Events : 18+================================================================================ 
 +Software selection
  
-         Layout : left-symmetric +Base environment
-     Chunk Size : 512K+
  
-   Device Role : Active device 0 +1) [ ] Server with GUI                  4) [ ] Workstation 
-   Array State : AAA ('A' == active, '.' == missing, 'R' == replacing)+2) [ ] Server                           5) [ ] Virtualization Host 
 +3) [x] Minimal Install                  6[ ] Custom Operating System
 </code> </code>
  
-A ce stade il est intéressant de noter comment réagir lors d'une défaillance d'un disque. Dans notre cas nous allons indiquer au système que la partition /dev/sda5 est devenue défaillante :+Appuyez ensuite sur la touche **c** pour pouvoir éventuellement choisir des installations supplémentaires :
  
 <code> <code>
-[root@centos7 ~]# mdadm --manage --set-faulty /dev/md1 /dev/sda5 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-mdadmset /dev/sda5 faulty in /dev/md1+refresh]
 +================================================================================ 
 +================================================================================ 
 +Software selection 
 + 
 +Additional software for selected environment 
 + 
 +1) [ ] Guest Agents                     8) [ ] Headless Management 
 +2) [ ] Standard                         9) [ ] Legacy UNIX Compatibility 
 +3) [ ] Container Management             10) [ ] Network Servers 
 +4) [ ] .NET Core Development            11) [ ] Scientific Support 
 +5) [ ] RPM Development Tools            12) [ ] Security Tools 
 +6) [ ] Development Tools                13) [ ] Smart Card Support 
 +7) [ ] Graphical Administration Tools   14) [ ] System Tools
 </code> </code>
  
-L'utilisation de la ligne de commande suivante nous confirme le statut de /dev/sda5 :+Ne choisissez rien dans la liste et appuyez simplement sur la touche **c** pour revenir au menu principal :
  
 <code> <code>
-[root@centos7 ~]# mdadm --detail /dev/md1 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-/dev/md1+refresh]: c 
-        Version : 1.2 +================================================================================ 
-  Creation Time : Tue Aug  2 15:10:12 2016 +================================================================================ 
-     Raid Level : raid5 +Installation
-     Array Size : 1021952 (998.17 MiB 1046.48 MB) +
-  Used Dev Size : 510976 (499.08 MiB 523.24 MB) +
-   Raid Devices : 3 +
-  Total Devices : 3 +
-    Persistence : Superblock is persistent+
  
-    Update Time : Tue Aug  15:14:59 2016 +1) [x] Language settings                 2) [x] Time settings 
-          State : clean, degraded  +       (French (France))                        (Europe/Paris timezone) 
- Active Devices : 2 +3) [!] Installation source               4) [!] Software selection 
-Working Devices : 2 +       (Processing...)                          (Processing...) 
- Failed Devices : 1 +5) [!] Installation Destination          6) [x] Kdump 
-  Spare Devices : 0+       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created)
  
-         Layout : left-symmetric +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
-     Chunk Size 512K+'r' to refresh]
 +================================================================================ 
 +================================================================================ 
 +Installation
  
-           Name : centos7.fenestros.loc: (local to host centos7.fenestros.loc+1) [x] Language settings                 2) [x] Time settings 
-           UUID : fd8bac53:1457a4f4:30feab84:e0f9d8e0 +       (French (France))                        (Europe/Paris timezone) 
-         Events : 20+3) [x] Installation source               4) [x] Software selection 
 +       (Closest mirror)                         (Minimal Install) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created)
  
-    Number   Major   Minor   RaidDevice State +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
-       0              0        0      removed +'r' to refresh]: 
-       1              8        1      active sync   /dev/sda8 +</code>
-                   11        2      active sync   /dev/sda11+
  
-             8                    faulty   /dev/sda5+===Installation Destination=== 
 + 
 +Choisissez l'option **5** pour définir l'emplacement de l'installation : 
 + 
 +<code> 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [x] Installation source               4) [x] Software selection 
 +       (Closest mirror)                         (Minimal Install) 
 +5) [!] Installation Destination          6) [x] Kdump 
 +       (No disks selected)                      (Kdump is enabled) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: 5 
 +Probing storage...
 </code> </code>
  
-Il est maintenant nécessaire de supprimer /dev/sda5 de notre RAID 5 :+Séléctionnez le disque **vda** et appuyez sur la touche **c** :
  
 <code> <code>
-[root@centos7 ~]# mdadm --manage --remove /dev/md1 /dev/sda5 +================================================================================ 
-mdadmhot removed /dev/sda5 from /dev/md1+================================================================================ 
 +Installation Destination 
 + 
 +1) [x] : 5 GiB (vda) 
 + 
 +1 disk selected; 5 GiB capacity; 5 GiB free ... 
 + 
 +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
 +refresh]: c
 </code> </code>
  
-A l'examen de notre RAIDon constate que /dev/sda5 a été supprimé :+ce stade il vous est possible de choisir l'option **4** et de créer des partitions spécifiques en termes de points de montage en fonction de l'utilisation prévue pour la VM. Dans le cas de ce LABappuyez simplement sur le chois **2** puis sur la touche **c** :
  
 <code> <code>
-[root@centos7 ~]# mdadm --detail /dev/md1 +================================================================================ 
-/dev/md1: +================================================================================ 
-        Version : 1.2 +Partitioning Options 
-  Creation Time : Tue Aug  2 15:10:12 2016 + 
-     Raid Level : raid5 +1) [ ] Replace Existing Linux system(s
-     Array Size : 1021952 (998.17 MiB 1046.48 MB+2[ ] Use All Space 
-  Used Dev Size : 510976 (499.08 MiB 523.24 MB+3) [ ] Use Free Space 
-   Raid Devices : +4) [ ] Manually assign mount points 
-  Total Devices : 2 + 
-    Persistence : Superblock is persistent+Installation requires partitioning of your hard drive. Select what space to use 
 +for the install target or manually assign mount points.
  
-    Update Time : Tue Aug  2 15:16:41 2016 +Please make a selection from the above ['c' to continue'q' to quit, 'r' to 
-          State : cleandegraded  +refresh]: 2 
- Active Devices : 2 +================================================================================ 
-Working Devices : 2 +================================================================================ 
- Failed Devices : 0 +Partitioning Options
-  Spare Devices : 0+
  
-         Layout : left-symmetric +1) [ ] Replace Existing Linux system(s) 
-     Chunk Size : 512K+2) [x] Use All Space 
 +3) [ ] Use Free Space 
 +4) [ ] Manually assign mount points
  
-           Name : centos7.fenestros.loc: (local to host centos7.fenestros.loc) +Installation requires partitioning of your hard driveSelect what space to use 
-           UUID : fd8bac53:1457a4f4:30feab84:e0f9d8e0 +for the install target or manually assign mount points.
-         Events : 21+
  
-    Number   Major   Minor   RaidDevice State +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-       0              0        0      removed +refresh]: c
-                    8        1      active sync   /dev/sda8 +
-                   11        2      active sync   /dev/sda11+
 </code> </code>
  
-Constatez maintenant l'existance de votre RAID :+A ce stade il vous est possible de choisir le type d'installation, soit **Standard Partition**, **LVM** ou **LVM Thin Provisioning**. Notez que le choix par défaut proposé est **LVM** : 
 +  
 +<code> 
 +================================================================================ 
 +================================================================================ 
 +Partition Scheme Options 
 + 
 +1) [ ] Standard Partition 
 +2) [x] LVM 
 +3) [ ] LVM Thin Provisioning 
 + 
 +Select a partition scheme configuration. 
 +</code> 
 + 
 +Bien que préférable de choisir l'option par défaut pour des VMs en production . Par contre, pour des raisons liées à la suite de ce LAB, choisissez l'option **1** puis sur la touche **c** :
  
 <code> <code>
-[root@centos7 ~]# cat /proc/mdstat +Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to 
-Personalities : [raid6] [raid5] [raid4]  +refresh]
-md1 : active raid5 sda11[3] sda8[1+================================================================================ 
-      1021952 blocks super 1.2 level 5512k chunkalgorithm 2 [3/2] [_UU+================================================================================ 
-       +Partition Scheme Options 
-unused devices: <none>+ 
 +1) [xStandard Partition 
 +2) [ ] LVM 
 +3[ ] LVM Thin Provisioning 
 + 
 +Select a partition scheme configuration. 
 + 
 +Please make a selection from the above ['c' to continue'q' to quit'r' to 
 +refresh]: c 
 +Generating updated storage configuration 
 +Checking storage configuration...
 </code> </code>
  
-<WRAP center round important> +===Démarrer l'Installation=== 
-Notez que le RAID a été démarré avec 2 unités au lieu de trois.+ 
 +De retour au menu principal, choisissez l'option **b** pour démarrer l'installation : 
 + 
 +<code> 
 +================================================================================ 
 +================================================================================ 
 +Installation 
 + 
 +1) [x] Language settings                 2) [x] Time settings 
 +       (French (France))                        (Europe/Paris timezone) 
 +3) [x] Installation source               4) [x] Software selection 
 +       (Closest mirror)                         (Minimal Install) 
 +5) [x] Installation Destination          6) [x] Kdump 
 +       (Automatic partitioning                  (Kdump is enabled) 
 +       selected) 
 +7) [x] Network configuration             8) [x] Root password 
 +       (Wired (enp1s0) connected)               (Password is set.) 
 +9) [ ] User creation 
 +       (No user will be created) 
 + 
 +Please make a selection from the above ['b' to begin installation, 'q' to quit, 
 +'r' to refresh]: b 
 +</code> 
 + 
 +<WRAP center round important 60%
 +**Important** : Notez que nous n'avons pas spécifié d'utilisateurs. Cette décision n'est pas bloquante pour la suite de l'installation.
 </WRAP> </WRAP>
  
-Pour ajouter un autre disque à notre RAID afin de remplacer /dev/sda5 il convient d'utiliser l'option **--add** :+L'installation démarre et se poursuit :
  
 <code> <code>
-[root@centos7 ~]# mdadm --manage --add /dev/md1 /dev/sda10 +... 
-mdadm: added /dev/sda10+Configuring storage 
 +
 +Installing boot loader 
 +
 +Performing post-installation setup tasks 
 +
 + 
 +Configuring installed system 
 +.......... 
 +Writing network configuration 
 +
 +Creating users 
 +.... 
 +Configuring addons 
 +Executing com_redhat_kdump addon 
 +Executing org_fedora_oscap addon 
 +
 +Generating initramfs 
 +
 +Running post-installation scripts 
 +
 +Storing configuration files and kickstarts 
 +..
 </code> </code>
  
-L'exemen du RAID indique que /dev/sda10 a été ajouté en tant que //spare// et à l'issu de quelques minutes le RAID 5 a été reconstruite :+===Démarrer la VM=== 
 + 
 +l'issu de l'installation, appuyez sur la touche [Enter] pour démarrez la VM :
  
 <code> <code>
-[root@centos7 ~]# mdadm --detail /dev/md1 +Installation complete. Press ENTER to quit:  
-/dev/md1: +... 
-        Version : 1.2 + OK  Started Network Manager. 
-  Creation Time : Tue Aug  2 15:10:12 2016 +         Starting Network Manager Wait Online... 
-     Raid Level : raid5 +[  OK  ] Reached target Network
-     Array Size : 1021952 (998.17 MiB 1046.48 MB) +         Starting OpenSSH server daemon... 
-  Used Dev Size : 510976 (499.08 MiB 523.24 MB) +         Starting Permit User Sessions... 
-   Raid Devices +         Starting Dynamic System Tuning Daemon... 
-  Total Devices +         Starting Hostname Service... 
-    Persistence Superblock is persistent+ OK  ] Started OpenSSH server daemon. 
 +[  OK  ] Started Permit User Sessions. 
 +         Starting Hold until boot process finishes up... 
 + OK  ] Started Command Scheduler. 
 +         Starting Terminate Plymouth Boot Screen... 
 +  18.386454] IPv6ADDRCONF(NETDEV_UP)enp1s0link is not ready 
 +</code>
  
-    Update Time : Tue Aug  2 15:19:06 2016 +====1.5 - Vérification de la VM Invitée====
-          State : clean  +
- Active Devices : 3 +
-Working Devices : 3 +
- Failed Devices : 0 +
-  Spare Devices : 0+
  
-         Layout : left-symmetric +Au prompt, connectez-vous en tant que **root** avec le mot de passe **fenestros** :
-     Chunk Size 512K+
  
-           Name : centos7.fenestros.loc: (local to host centos7.fenestros.loc) +<code> 
-           UUID : fd8bac53:1457a4f4:30feab84:e0f9d8e0 +CentOS Linux 8 
-         Events : 40+Kernel 4.18.0-305.12.1.el8_4.x86_64 on an x86_64
  
-    Number   Major   Minor   RaidDevice State +testvm1 login: root 
-       4             10        0      active sync   /dev/sda10 +Mot de passe : fenestros 
-       1              8        1      active sync   /dev/sda8 +[root@testvm1 ~]# 
-                   11        2      active sync   /dev/sda11+
 </code> </code>
  
-Naturellement, il necéssaire de renseigner le fichier **/etc/mdadm.conf** du changement afin que le RAID soit contruit à chaque démarrage :+===Réseau=== 
 + 
 +Vérifiez la prise en compte d'une adresse IPv4 dans le réseau 192.168.56.0/24 :
  
 <code> <code>
-[root@centos7 ~]# echo 'DEVICES /dev/sda10 /dev/sda8 /dev/sda11' > /etc/mdadm.conf +[root@testvm1 ~]# ip a 
-[root@centos7 ~]# mdadm --detail --scan >> /etc/mdadm.conf  +1: lo: <LOOPBACK,UP,LOWER_UPmtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 
-[root@centos7 ~]# cat /etc/mdadm.conf +    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
-DEVICES /dev/sda10 /dev/sda8 /dev/sda11 +    inet 127.0.0.1/8 scope host lo 
-ARRAY /dev/md1 metadata=1.2 name=centos7.fenestros.loc:1 UUID=fd8bac53:1457a4f4:30feab84:e0f9d8e0+       valid_lft forever preferred_lft forever 
 +    inet6 ::1/128 scope host  
 +       valid_lft forever preferred_lft forever 
 +2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 
 +    link/ether 52:54:00:44:af:a1 brd ff:ff:ff:ff:ff:ff 
 +    inet 192.168.56.83/24 brd 192.168.56.255 scope global dynamic noprefixroute enp1s0 
 +       valid_lft 3534sec preferred_lft 3534sec 
 +    inet6 fe80::6191:6417:8b53:bcb9/64 scope link noprefixroute  
 +       valid_lft forever preferred_lft forever
 </code> </code>
 +
 +===Internet===
 +
 +Vérifiez la connectivité de la VM :
 +
 +<code>
 +[root@testvm1 ~]# ping www.free.fr
 +PING www.free.fr (212.27.48.10) 56(84) bytes of data.
 +64 bytes from www.free.fr (212.27.48.10): icmp_seq=1 ttl=46 time=29.9 ms
 +64 bytes from www.free.fr (212.27.48.10): icmp_seq=2 ttl=46 time=30.1 ms
 +
 +--- www.free.fr ping statistics ---
 +2 packets transmitted, 2 received, 0% packet loss, time 1001ms
 +rtt min/avg/max/mdev = 29.887/29.989/30.091/0.102 ms
 +[root@testvm1 ~]# [ALT GR]+[CTRL]+[)]
 +[root@centos8 ~]#
 +</code>
 +
 +<WRAP center round important 60%>
 +**Important** : Notez l'utilisation de la séquence de touches [ALT GR]+[CTRL]+[)] sur un clavier français afin de se détacher de la VM. C'est-à-dire, la touche [AltGr] et rester appuyer plus la touche [Ctrl] et rester appuyer plus la touche [)].
 +</WRAP>
  
 ----- -----
-<html> +Copyright © 2022 Hugh Norris
-<div align="center"> +
-Copyright © 2020 Hugh Norris+
-</html>+
Menu