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:redhat:rh134:l104 [2024/10/21 15:21] – created adminelearning:workbooks:redhat:rh134:l104 [2024/10/24 12:57] (Version actuelle) admin
Ligne 5: Ligne 5:
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-======LCF504 - Gestion des Disques, des Systèmes de Fichiers et du Swap======+======RH13405 - Gestion des Disques, des Systèmes de Fichiers et du Swap======
  
 =====Contenu du Module===== =====Contenu du Module=====
  
-  * **LCF504 - Gestion des Disques, des Systèmes de Fichiers et du Swap**+  * **RH13405 - Gestion des Disques, des Systèmes de Fichiers et du Swap**
     * Contenu du Module     * Contenu du Module
     * Périphériques de stockage     * Périphériques de stockage
Ligne 28: Ligne 28:
       * LAB #9 - Volumes Logiques en Bandes       * LAB #9 - Volumes Logiques en Bandes
       * LAB #10 - Gérer les Métadonnées       * LAB #10 - Gérer les Métadonnées
 +    * Raid Logiciel
 +      * Concepts RAID
 +        * Disques en miroir
 +        * Bandes de données
 +      * Types de RAID
 +        * RAID 0 - Concaténation
 +        * RAID 0 - Striping
 +        * RAID 1 - Miroir
 +        * RAID 1+0 - Striping en Miroir
 +        * RAID 2 - Miroir avec Contrôle d'Erreurs
 +        * RAID 3 et 4 - Striping avec Parité
 +        * RAID 5 - Striping avec Parité Distribuée
 +        * Au délà de RAID 5
 +      * LAB #11 - Mise en Place du RAID 5 Logiciel
 +        * 11.1 - Préparer le disque
 +        * 11.2 - Créer une Unité RAID
 +        * 11.3 - Remplacer une Unité Défaillante
 +    * LAB #12 - Travailler avec Stratis
 +      * 12.1 - Présentation
 +        * Concepts clés de Stratis
 +        * Gestion simplifiée
 +        * Avantages de Stratis
 +        * Stratis vs ZFS/Btrfs
 +      * 12.2 - Travailler avec Stratis
 +        * Installation
 +        * Création d'un Pool
 +        * Création d'un Système de Fichiers
 +        * Montage du System de Fichiers
 +        * Croissance Dynamique du Système de Fichiers
 +        * Création d'un Snapshot
 +        * Suppression des Systèmes de Fichiers
     * Systèmes de Fichiers Journalisés     * Systèmes de Fichiers Journalisés
       * Présentation       * Présentation
-      * Ext3 +      * LAB #13 - Ext3 
-        * Gestion d'Ext3 +        * 13.1 - Gestion d'Ext3 
-        * LAB #11 - Convertir un Système de Fichiers Ext3 en Ext2 +        * 13.2 - Convertir un Système de Fichiers Ext3 en Ext2 
-        * LAB #12 - Convertir un Système de Fichiers Ext2 en Ext3 +        * 13.3 - Convertir un Système de Fichiers Ext2 en Ext3 
-        * LAB #13 - Placer le Journal sur un autre Partition +        * 13.4 - Placer le Journal sur un autre Partition 
-        * LAB #14 - Modifier la Fréquence de Vérification du Système de Fichiers Ext3 +        * 13.5 - Modifier la Fréquence de Vérification du Système de Fichiers Ext3 
-      * Ext4 +      * LAB #14 - Ext4 
-        * LAB #15 - Créer un Système de Fichiers Ext4 +        * 14.1 - Créer un Système de Fichiers Ext4 
-        * LAB #16 - Ajouter une Étiquette au Système de Fichiers Ext4 +        * 14.2 - Ajouter une Étiquette au Système de Fichiers Ext4 
-        * LAB #17 - Convertir un Système de Fichiers Ext3 en Ext4 +        * 14.3 - Convertir un Système de Fichiers Ext3 en Ext4 
-      * XFS +      * LAB #15 - XFS 
-        * LAB #18 - Créer un Système de Fichiers XFS +        * 15.1 - Créer un Système de Fichiers XFS 
-        * LAB #19 - Ajouter une Étiquette au Système de Fichiers XFS+        * 15.2 - Ajouter une Étiquette au Système de Fichiers XFS
       * Autres Systèmes de Fichiers       * Autres Systèmes de Fichiers
         * ReiserFS         * ReiserFS
Ligne 48: Ligne 79:
         * Btrfs         * Btrfs
       * Comparaison des Commandes par Système de Fichiers       * Comparaison des Commandes par Système de Fichiers
-    * LAB #20 Créer un Système de Fichiers ISO +    * LAB #16 - Système de Fichiers ISO 
-      * La Commande mkisofs +      * 16.1 - La Commande mkisofs 
-    * Systèmes de Fichiers Chiffrés +    * LAB #17 - Systèmes de Fichiers Chiffrés 
-      * LAB #21 - Créer un Système de Fichiers Chiffré avec LUKS+      * 17.1 - Créer un Système de Fichiers Chiffré avec LUKS
         * Présentation         * Présentation
         * Mise en Place         * Mise en Place
         * Ajouter une deuxième Passphrase         * Ajouter une deuxième Passphrase
         * Supprimer une Passphrase         * Supprimer une Passphrase
-    Raid Logiciel +        Supprimer LUKS 
-      * LAB #22 Mise en Place du RAID 5 Logiciel +    * LAB #18 Le Swap 
-        22.1 - Préparer le disque +      18.1 - Taille du swap 
-        * 22.2 - Créer une Unité RAID +      * 18.2 - Partitions de swap 
-        * 22.3 - Remplacer une Unité Défaillante +      * 18.3 - La Commande swapon 
-    * Le Swap +      * 18.4 - La Commande swapoff 
-      * Taille du swap +      * 18.5 - Créer un Fichier de Swap
-      * Partitions de swap +
-      * La Commande swapon +
-      * La Commande swapoff +
-      * LAB #23 - Créer un Fichier de Swap+
  
 =====Périphériques de stockage===== =====Périphériques de stockage=====
Ligne 162: Ligne 189:
 =====Partitionnement===== =====Partitionnement=====
  
-====LAB #1 - Partitionnement de votre Disque sous RHEL/CentOS 8 avec fdisk====+Le schéma de partitionnement **Master Boot Record** (MBR) est la norme sur les systèmes qui utilisent le BIOS. Ce schéma prend en charge un maximum de quatre partitions primaires. Sur les systèmes Linux, avec des partitions étendues et logiques, vous pouvez créer jusqu'à 15 partitions. Avec des systèmes 32 bits, les disques partitionnés avec MBR peuvent avoir une taille allant jusqu'à 2 TiB.
  
-Pour procéder au partitionnement de votre disque ou de vos disques, RHEL/CentOS 8 possède l'outil dénommé **fdisk**.+La limite de 2 TiB pour la taille des disques et des partitions est désormais une limite courante et restrictive. Par conséquent, le schéma MBR est remplacé par le système de partitionnement **GUID Partition Table** (GPT). 
 + 
 +Pour les systèmes qui utilisent le micrologiciel UEFI (Unified Extensible Firmware Interface), GPT est la norme pour le partitionnement des disques et répond aux limites du schéma MBR. GPT offre un maximum de 128 partitions au maximum. Le schéma GPT alloue 64 bits pour les adresses de blocs logiques, afin de prendre en charge des partitions et des disques allant jusqu'à huit zébibytes (ZiB) ou huit milliards de tébibytes (TiB). 
 + 
 +Le partitionnement GPT offre des fonctionnalités et des avantages supplémentaires par rapport au MBR. GPT utilise un identifiant unique (GUID) pour identifier chaque disque et chaque partition. GPT rend la table de partition redondante avec le GPT primaire en tête de disque et un GPT secondaire de sauvegarde à la fin du disque. GPT utilise une somme de contrôle pour détecter les erreurs dans l'en-tête GPT et la table de partition. 
 + 
 +====LAB #1 - Partitionnement de votre Disque sous RedHat 9 avec fdisk==== 
 + 
 +Pour procéder au partitionnement de votre disque ou de vos disques, RedHat 9 possède l'outil dénommé **fdisk**.
  
 Lancez fdisk en fournissant en argument le fichier de référence de votre premier disque dur, par exemple : Lancez fdisk en fournissant en argument le fichier de référence de votre premier disque dur, par exemple :
  
 <code> <code>
-[root@centos8 ~]# fdisk /dev/sdb+[root@redhat9 ~]# fdisk /dev/sdb
  
-Welcome to fdisk (util-linux 2.32.1).+Welcome to fdisk (util-linux 2.37.4).
 Changes will remain in memory only, until you decide to write them. Changes will remain in memory only, until you decide to write them.
 Be careful before using the write command. Be careful before using the write command.
  
 Device does not contain a recognized partition table. Device does not contain a recognized partition table.
-Created a new DOS disklabel with disk identifier 0xb0dacb39.+Created a new DOS disklabel with disk identifier 0x23a56c2e.
  
 Command (m for help):  Command (m for help): 
Ligne 255: Ligne 290:
 Using default response p. Using default response p.
 Partition number (1-4, default 1):  Partition number (1-4, default 1): 
-First sector (2048-8388607, default 2048):  +First sector (2048-67108863, default 2048):  
-Last sector, +sectors or +size{K,M,G,T,P} (2048-8388607, default 8388607): +100M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-67108863, default 67108863): +100M
  
 Created a new partition 1 of type 'Linux' and of size 100 MiB. Created a new partition 1 of type 'Linux' and of size 100 MiB.
Ligne 268: Ligne 303:
 Using default response p. Using default response p.
 Partition number (2-4, default 2):  Partition number (2-4, default 2): 
-First sector (206848-8388607, default 206848):  +First sector (206848-67108863, default 206848):  
-Last sector, +sectors or +size{K,M,G,T,P} (206848-8388607, default 8388607): +100M            +Last sector, +/-sectors or +/-size{K,M,G,T,P} (206848-67108863, default 67108863): +100M
  
 Created a new partition 2 of type 'Linux' and of size 100 MiB. Created a new partition 2 of type 'Linux' and of size 100 MiB.
Ligne 281: Ligne 316:
 Using default response p. Using default response p.
 Partition number (3,4, default 3):  Partition number (3,4, default 3): 
-First sector (411648-8388607, default 411648):  +First sector (411648-67108863, default 411648):  
-Last sector, +sectors or +size{K,M,G,T,P} (411648-8388607, default 8388607): +100M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (411648-67108863, default 67108863): +100M
  
 Created a new partition 3 of type 'Linux' and of size 100 MiB. Created a new partition 3 of type 'Linux' and of size 100 MiB.
Ligne 296: Ligne 331:
      primary (3 primary, 0 extended, 1 free)      primary (3 primary, 0 extended, 1 free)
      extended (container for logical partitions)      extended (container for logical partitions)
-Select (default e): e+Select (default e): 
  
 +Using default response e.
 Selected partition 4 Selected partition 4
-First sector (616448-8388607, default 616448):  +First sector (616448-67108863, default 616448):  
-Last sector, +sectors or +size{K,M,G,T,P} (616448-8388607, default 8388607): +Last sector, +/-sectors or +/-size{K,M,G,T,P} (616448-67108863, default 67108863): 
  
-Created a new partition 4 of type 'Extended' and of size 3.7 GiB.+Created a new partition 4 of type 'Extended' and of size 31.7 GiB.
  
-Command (m for help):  +Command (m for help):
 </code> </code>
  
Ligne 313: Ligne 349:
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 5 Adding logical partition 5
-First sector (618496-8388607, default 618496):  +First sector (618496-67108863, default 618496):  
-Last sector, +sectors or +size{K,M,G,T,P} (618496-8388607, default 8388607): +500M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (618496-67108863, default 67108863): +500M
  
 Created a new partition 5 of type 'Linux' and of size 500 MiB. Created a new partition 5 of type 'Linux' and of size 500 MiB.
Ligne 321: Ligne 357:
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 6 Adding logical partition 6
-First sector (1644544-8388607, default 1644544):  +First sector (1644544-67108863, default 1644544):  
-Last sector, +sectors or +size{K,M,G,T,P} (1644544-8388607, default 8388607): +200M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (1644544-67108863, default 67108863): +200M
  
 Created a new partition 6 of type 'Linux' and of size 200 MiB. Created a new partition 6 of type 'Linux' and of size 200 MiB.
Ligne 329: Ligne 365:
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 7 Adding logical partition 7
-First sector (2056192-8388607, default 2056192):  +First sector (2056192-67108863, default 2056192):  
-Last sector, +sectors or +size{K,M,G,T,P} (2056192-8388607, default 8388607): +300M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (2056192-67108863, default 67108863): +300M
  
 Created a new partition 7 of type 'Linux' and of size 300 MiB. Created a new partition 7 of type 'Linux' and of size 300 MiB.
Ligne 337: Ligne 373:
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 8 Adding logical partition 8
-First sector (2672640-8388607, default 2672640):  +First sector (2672640-67108863, default 2672640):  
-Last sector, +sectors or +size{K,M,G,T,P} (2672640-8388607, default 8388607): +500M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (2672640-67108863, default 67108863): +500M
  
 Created a new partition 8 of type 'Linux' and of size 500 MiB. Created a new partition 8 of type 'Linux' and of size 500 MiB.
Ligne 345: Ligne 381:
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 9 Adding logical partition 9
-First sector (3698688-8388607, default 3698688):  +First sector (3698688-67108863, default 3698688):  
-Last sector, +sectors or +size{K,M,G,T,P} (3698688-8388607, default 8388607): +400M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (3698688-67108863, default 67108863): +400M
  
 Created a new partition 9 of type 'Linux' and of size 400 MiB. Created a new partition 9 of type 'Linux' and of size 400 MiB.
  
- Command (m for help): n+Command (m for help): n
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 10 Adding logical partition 10
-First sector (4519936-8388607, default 4519936):  +First sector (4519936-67108863, default 4519936):  
-Last sector, +sectors or +size{K,M,G,T,P} (4519936-8388607, default 8388607): +500M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (4519936-67108863, default 67108863): +500M
  
 Created a new partition 10 of type 'Linux' and of size 500 MiB. Created a new partition 10 of type 'Linux' and of size 500 MiB.
Ligne 361: Ligne 397:
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 11 Adding logical partition 11
-First sector (5545984-8388607, default 5545984):  +First sector (5545984-67108863, default 5545984):  
-Last sector, +sectors or +size{K,M,G,T,P} (5545984-8388607, default 8388607): +500M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (5545984-67108863, default 67108863): +500M
  
 Created a new partition 11 of type 'Linux' and of size 500 MiB. Created a new partition 11 of type 'Linux' and of size 500 MiB.
Ligne 369: Ligne 405:
 All primary partitions are in use. All primary partitions are in use.
 Adding logical partition 12 Adding logical partition 12
-First sector (6572032-8388607, default 6572032):  +First sector (6572032-67108863, default 6572032):  
-Last sector, +sectors or +size{K,M,G,T,P} (6572032-8388607, default 8388607): +200M+Last sector, +/-sectors or +/-size{K,M,G,T,P} (6572032-67108863, default 67108863): +200M
  
 Created a new partition 12 of type 'Linux' and of size 200 MiB. Created a new partition 12 of type 'Linux' and of size 200 MiB.
  
-Command (m for help): +Command (m for help):
 </code> </code>
  
Ligne 381: Ligne 417:
 <code> <code>
 Command (m for help): p Command (m for help): p
-Disk /dev/sdb: GiB, 4294967296 bytes, 8388608 sectors+Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK   
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos Disklabel type: dos
-Disk identifier: 0xb0dacb39+Disk identifier: 0x23a56c2e
  
-Device     Boot   Start     End Sectors  Size Id Type +Device     Boot   Start      End  Sectors  Size Id Type 
-/dev/sdb1          2048  206847  204800  100M 83 Linux +/dev/sdb1          2048   206847   204800  100M 83 Linux 
-/dev/sdb2        206848  411647  204800  100M 83 Linux +/dev/sdb2        206848   411647   204800  100M 83 Linux 
-/dev/sdb3        411648  616447  204800  100M 83 Linux +/dev/sdb3        411648   616447   204800  100M 83 Linux 
-/dev/sdb4        616448 8388607 7772160  3.7G  5 Extended +/dev/sdb4        616448 67108863 66492416 31.7G  5 Extended 
-/dev/sdb5        618496 1642495 1024000  500M 83 Linux +/dev/sdb5        618496  1642495  1024000  500M 83 Linux 
-/dev/sdb6       1644544 2054143  409600  200M 83 Linux +/dev/sdb6       1644544  2054143   409600  200M 83 Linux 
-/dev/sdb7       2056192 2670591  614400  300M 83 Linux +/dev/sdb7       2056192  2670591   614400  300M 83 Linux 
-/dev/sdb8       2672640 3696639 1024000  500M 83 Linux +/dev/sdb8       2672640  3696639  1024000  500M 83 Linux 
-/dev/sdb9       3698688 4517887  819200  400M 83 Linux +/dev/sdb9       3698688  4517887   819200  400M 83 Linux 
-/dev/sdb10      4519936 5543935 1024000  500M 83 Linux +/dev/sdb10      4519936  5543935  1024000  500M 83 Linux 
-/dev/sdb11      5545984 6569983 1024000  500M 83 Linux +/dev/sdb11      5545984  6569983  1024000  500M 83 Linux 
-/dev/sdb12      6572032 6981631  409600  200M 83 Linux+/dev/sdb12      6572032  6981631   409600  200M 83 Linux
  
 Command (m for help):  Command (m for help): 
Ligne 413: Ligne 450:
 Syncing disks. Syncing disks.
  
-[root@centos8 ~]# partprobe +[root@redhat9 ~]# partprobe 
-[root@centos8 ~]# +[root@redhat9 ~]#
 </code> </code>
  
Ligne 420: Ligne 457:
  
 <code> <code>
-[root@centos8 ~]# fdisk /dev/sdb+[root@redhat9 ~]# fdisk /dev/sdb
  
-Welcome to fdisk (util-linux 2.32.1).+Welcome to fdisk (util-linux 2.37.4).
 Changes will remain in memory only, until you decide to write them. Changes will remain in memory only, until you decide to write them.
 Be careful before using the write command. Be careful before using the write command.
Ligne 428: Ligne 465:
  
 Command (m for help): p Command (m for help): p
-Disk /dev/sdb: GiB, 4294967296 bytes, 8388608 sectors+Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK   
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos Disklabel type: dos
-Disk identifier: 0xb0dacb39+Disk identifier: 0x23a56c2e
  
-Device     Boot   Start     End Sectors  Size Id Type +Device     Boot   Start      End  Sectors  Size Id Type 
-/dev/sdb1          2048  206847  204800  100M 83 Linux +/dev/sdb1          2048   206847   204800  100M 83 Linux 
-/dev/sdb2        206848  411647  204800  100M 83 Linux +/dev/sdb2        206848   411647   204800  100M 83 Linux 
-/dev/sdb3        411648  616447  204800  100M 83 Linux +/dev/sdb3        411648   616447   204800  100M 83 Linux 
-/dev/sdb4        616448 8388607 7772160  3.7G  5 Extended +/dev/sdb4        616448 67108863 66492416 31.7G  5 Extended 
-/dev/sdb5        618496 1642495 1024000  500M 83 Linux +/dev/sdb5        618496  1642495  1024000  500M 83 Linux 
-/dev/sdb6       1644544 2054143  409600  200M 83 Linux +/dev/sdb6       1644544  2054143   409600  200M 83 Linux 
-/dev/sdb7       2056192 2670591  614400  300M 83 Linux +/dev/sdb7       2056192  2670591   614400  300M 83 Linux 
-/dev/sdb8       2672640 3696639 1024000  500M 83 Linux +/dev/sdb8       2672640  3696639  1024000  500M 83 Linux 
-/dev/sdb9       3698688 4517887  819200  400M 83 Linux +/dev/sdb9       3698688  4517887   819200  400M 83 Linux 
-/dev/sdb10      4519936 5543935 1024000  500M 83 Linux +/dev/sdb10      4519936  5543935  1024000  500M 83 Linux 
-/dev/sdb11      5545984 6569983 1024000  500M 83 Linux +/dev/sdb11      5545984  6569983  1024000  500M 83 Linux 
-/dev/sdb12      6572032 6981631  409600  200M 83 Linux+/dev/sdb12      6572032  6981631   409600  200M 83 Linux
  
-Command (m for help): +Command (m for help):
 </code> </code>
  
Ligne 461: Ligne 499:
  
 Command (m for help): p Command (m for help): p
-Disk /dev/sdb: GiB, 4294967296 bytes, 8388608 sectors+Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK   
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos Disklabel type: dos
-Disk identifier: 0xb0dacb39+Disk identifier: 0x23a56c2e
  
-Device     Boot   Start     End Sectors  Size Id Type +Device     Boot   Start      End  Sectors  Size Id Type 
-/dev/sdb1          2048  206847  204800  100M 83 Linux +/dev/sdb1          2048   206847   204800  100M 83 Linux 
-/dev/sdb2        206848  411647  204800  100M 83 Linux +/dev/sdb2        206848   411647   204800  100M 83 Linux 
-/dev/sdb3        411648  616447  204800  100M 83 Linux +/dev/sdb3        411648   616447   204800  100M 83 Linux 
-/dev/sdb4        616448 8388607 7772160  3.7G  5 Extended +/dev/sdb4        616448 67108863 66492416 31.7G  5 Extended 
-/dev/sdb5        618496 1642495 1024000  500M 83 Linux +/dev/sdb5        618496  1642495  1024000  500M 83 Linux 
-/dev/sdb6       1644544 2054143  409600  200M 83 Linux +/dev/sdb6       1644544  2054143   409600  200M 83 Linux 
-/dev/sdb7       2056192 2670591  614400  300M 83 Linux +/dev/sdb7       2056192  2670591   614400  300M 83 Linux 
-/dev/sdb8       2672640 3696639 1024000  500M 83 Linux +/dev/sdb8       2672640  3696639  1024000  500M 83 Linux 
-/dev/sdb9       3698688 4517887  819200  400M 83 Linux +/dev/sdb9       3698688  4517887   819200  400M 83 Linux 
-/dev/sdb10      4519936 5543935 1024000  500M 83 Linux +/dev/sdb10      4519936  5543935  1024000  500M 83 Linux 
-/dev/sdb11      5545984 6569983 1024000  500M 83 Linux+/dev/sdb11      5545984  6569983  1024000  500M 83 Linux
  
-Command (m for help): +Command (m for help):
 </code> </code>
  
Ligne 491: Ligne 530:
 Command (m for help): q Command (m for help): q
  
-[root@centos8 ~]# fdisk /dev/sdb+[root@redhat9 ~]# fdisk /dev/sdb
  
-Welcome to fdisk (util-linux 2.32.1).+Welcome to fdisk (util-linux 2.37.4).
 Changes will remain in memory only, until you decide to write them. Changes will remain in memory only, until you decide to write them.
 Be careful before using the write command. Be careful before using the write command.
Ligne 499: Ligne 538:
  
 Command (m for help): p Command (m for help): p
-Disk /dev/sdb: GiB, 4294967296 bytes, 8388608 sectors+Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK   
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos Disklabel type: dos
-Disk identifier: 0xb0dacb39+Disk identifier: 0x23a56c2e
  
-Device     Boot   Start     End Sectors  Size Id Type +Device     Boot   Start      End  Sectors  Size Id Type 
-/dev/sdb1          2048  206847  204800  100M 83 Linux +/dev/sdb1          2048   206847   204800  100M 83 Linux 
-/dev/sdb2        206848  411647  204800  100M 83 Linux +/dev/sdb2        206848   411647   204800  100M 83 Linux 
-/dev/sdb3        411648  616447  204800  100M 83 Linux +/dev/sdb3        411648   616447   204800  100M 83 Linux 
-/dev/sdb4        616448 8388607 7772160  3.7G  5 Extended +/dev/sdb4        616448 67108863 66492416 31.7G  5 Extended 
-/dev/sdb5        618496 1642495 1024000  500M 83 Linux +/dev/sdb5        618496  1642495  1024000  500M 83 Linux 
-/dev/sdb6       1644544 2054143  409600  200M 83 Linux +/dev/sdb6       1644544  2054143   409600  200M 83 Linux 
-/dev/sdb7       2056192 2670591  614400  300M 83 Linux +/dev/sdb7       2056192  2670591   614400  300M 83 Linux 
-/dev/sdb8       2672640 3696639 1024000  500M 83 Linux +/dev/sdb8       2672640  3696639  1024000  500M 83 Linux 
-/dev/sdb9       3698688 4517887  819200  400M 83 Linux +/dev/sdb9       3698688  4517887   819200  400M 83 Linux 
-/dev/sdb10      4519936 5543935 1024000  500M 83 Linux +/dev/sdb10      4519936  5543935  1024000  500M 83 Linux 
-/dev/sdb11      5545984 6569983 1024000  500M 83 Linux +/dev/sdb11      5545984  6569983  1024000  500M 83 Linux 
-/dev/sdb12      6572032 6981631  409600  200M 83 Linux+/dev/sdb12      6572032  6981631   409600  200M 83 Linux
  
-Command (m for help):  +Command (m for help): 
 </code> </code>
  
Ligne 544: Ligne 584:
 Command (m for help): t Command (m for help): t
 Partition number (1-12, default 12): 5 Partition number (1-12, default 12): 5
-Hex code (type L to list all codes): fd+Hex code or alias (type L to list all): fd
  
 Changed type of partition 'Linux' to 'Linux raid autodetect'. Changed type of partition 'Linux' to 'Linux raid autodetect'.
Ligne 550: Ligne 590:
 Command (m for help): t Command (m for help): t
 Partition number (1-12, default 12): 6 Partition number (1-12, default 12): 6
-Hex code (type L to list all codes): 8e+Hex code or alias (type L to list all): 8e
  
 Changed type of partition 'Linux' to 'Linux LVM'. Changed type of partition 'Linux' to 'Linux LVM'.
Ligne 556: Ligne 596:
 Command (m for help): t Command (m for help): t
 Partition number (1-12, default 12): 7 Partition number (1-12, default 12): 7
-Hex code (type L to list all codes): 8e+Hex code or alias (type L to list all): 8e
  
 Changed type of partition 'Linux' to 'Linux LVM'. Changed type of partition 'Linux' to 'Linux LVM'.
Ligne 562: Ligne 602:
 Command (m for help): t Command (m for help): t
 Partition number (1-12, default 12): 8 Partition number (1-12, default 12): 8
-Hex code (type L to list all codes): fd+Hex code or alias (type L to list all): fd
  
 Changed type of partition 'Linux' to 'Linux raid autodetect'. Changed type of partition 'Linux' to 'Linux raid autodetect'.
Ligne 568: Ligne 608:
 Command (m for help): t Command (m for help): t
 Partition number (1-12, default 12): 9 Partition number (1-12, default 12): 9
-Hex code (type L to list all codes): 8e+Hex code or alias (type L to list all): 8e
  
 Changed type of partition 'Linux' to 'Linux LVM'. Changed type of partition 'Linux' to 'Linux LVM'.
Ligne 574: Ligne 614:
 Command (m for help): t Command (m for help): t
 Partition number (1-12, default 12): 10 Partition number (1-12, default 12): 10
-Hex code (type L to list all codes): fd+Hex code or alias (type L to list all): fd
  
 Changed type of partition 'Linux' to 'Linux raid autodetect'. Changed type of partition 'Linux' to 'Linux raid autodetect'.
Ligne 580: Ligne 620:
 Command (m for help): t Command (m for help): t
 Partition number (1-12, default 12): 11 Partition number (1-12, default 12): 11
-Hex code (type L to list all codes): fd+Hex code or alias (type L to list all): fd
  
 Changed type of partition 'Linux' to 'Linux raid autodetect'. Changed type of partition 'Linux' to 'Linux raid autodetect'.
 +
 +Command (m for help): 
 </code> </code>
  
Ligne 589: Ligne 631:
 <code> <code>
 Command (m for help): p Command (m for help): p
-Disk /dev/sdb: GiB, 4294967296 bytes, 8388608 sectors+Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK   
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos Disklabel type: dos
-Disk identifier: 0xb0dacb39+Disk identifier: 0x23a56c2e
  
-Device     Boot   Start     End Sectors  Size Id Type +Device     Boot   Start      End  Sectors  Size Id Type 
-/dev/sdb1          2048  206847  204800  100M 83 Linux +/dev/sdb1          2048   206847   204800  100M 83 Linux 
-/dev/sdb2        206848  411647  204800  100M 83 Linux +/dev/sdb2        206848   411647   204800  100M 83 Linux 
-/dev/sdb3        411648  616447  204800  100M 83 Linux +/dev/sdb3        411648   616447   204800  100M 83 Linux 
-/dev/sdb4        616448 8388607 7772160  3.7G  5 Extended +/dev/sdb4        616448 67108863 66492416 31.7G  5 Extended 
-/dev/sdb5        618496 1642495 1024000  500M fd Linux raid autodetect +/dev/sdb5        618496  1642495  1024000  500M fd Linux raid autodetect 
-/dev/sdb6       1644544 2054143  409600  200M 8e Linux LVM +/dev/sdb6       1644544  2054143   409600  200M 8e Linux LVM 
-/dev/sdb7       2056192 2670591  614400  300M 8e Linux LVM +/dev/sdb7       2056192  2670591   614400  300M 8e Linux LVM 
-/dev/sdb8       2672640 3696639 1024000  500M fd Linux raid autodetect +/dev/sdb8       2672640  3696639  1024000  500M fd Linux raid autodetect 
-/dev/sdb9       3698688 4517887  819200  400M 8e Linux LVM +/dev/sdb9       3698688  4517887   819200  400M 8e Linux LVM 
-/dev/sdb10      4519936 5543935 1024000  500M fd Linux raid autodetect +/dev/sdb10      4519936  5543935  1024000  500M fd Linux raid autodetect 
-/dev/sdb11      5545984 6569983 1024000  500M fd Linux raid autodetect +/dev/sdb11      5545984  6569983  1024000  500M fd Linux raid autodetect 
-/dev/sdb12      6572032 6981631  409600  200M 83 Linux+/dev/sdb12      6572032  6981631   409600  200M 83 Linux
  
 Command (m for help):  Command (m for help): 
Ligne 617: Ligne 660:
 <code> <code>
 Command (m for help): w Command (m for help): w
-The partition table has been altered+The partition table has been altered.
 Calling ioctl() to re-read partition table. Calling ioctl() to re-read partition table.
- 
-WARNING: Re-reading the partition table failed with error 16: Device or resource busy. 
-The kernel still uses the old table. The new table will be used at 
-the next reboot or after you run partprobe(8) or kpartx(8) 
 Syncing disks. Syncing disks.
-[root@centos8 ~]# partprobe+ 
 +[root@redhat9 ~]# partprobe 
 +[root@redhat9 ~]#
 </code> </code>
 +
 +<WRAP center round important 60%>
 +**Important** : Pour créer des partition GPT, RedHat 9 possède l'utilitaire **parted**. Consultez le manuel de celui-ci.
 +</WRAP>
  
 ====Options de la Commande fdisk==== ====Options de la Commande fdisk====
Ligne 633: Ligne 677:
  
 <code> <code>
-[root@centos8 ~]# fdisk --help+[root@redhat9 ~]# fdisk --help
  
 Usage: Usage:
- fdisk [options] <disk>      change partition table + fdisk [options] <disk>         change partition table 
- fdisk [options] -l [<disk>] list partition table(s)+ fdisk [options] -l [<disk>...] list partition table(s)
  
 Display or manipulate a disk partition table. Display or manipulate a disk partition table.
Ligne 648: Ligne 692:
                                  colors are enabled by default                                  colors are enabled by default
  -l, --list                    display partitions and exit  -l, --list                    display partitions and exit
 + -x, --list-details            like --list but with more details
 + -n, --noauto-pt               don't create default partition table on empty devices
  -o, --output <list>           output columns  -o, --output <list>           output columns
  -t, --type <type>             recognize specified partition table type only  -t, --type <type>             recognize specified partition table type only
Ligne 653: Ligne 699:
  -s, --getsz                   display device size in 512-byte sectors [DEPRECATED]  -s, --getsz                   display device size in 512-byte sectors [DEPRECATED]
      --bytes                   print SIZE in bytes rather than in human readable format      --bytes                   print SIZE in bytes rather than in human readable format
 +     --lock[=<mode>          use exclusive device lock (yes, no or nonblock)
  -w, --wipe <mode>             wipe signatures (auto, always or never)  -w, --wipe <mode>             wipe signatures (auto, always or never)
  -W, --wipe-partitions <mode>  wipe signatures from new partitions (auto, always or never)  -W, --wipe-partitions <mode>  wipe signatures from new partitions (auto, always or never)
Ligne 679: Ligne 726:
 Afin de mettre en place le LVM, vous avez besoin du paquet **lvm2** et du paquet **device-mapper**.  Afin de mettre en place le LVM, vous avez besoin du paquet **lvm2** et du paquet **device-mapper**. 
  
-Nous allons travailler sous RHEL/CentOS 8 avec les partitions suivantes :+Nous allons travailler sous RedHat 9 avec les partitions suivantes :
  
 <code> <code>
Ligne 690: Ligne 737:
  
 <code> <code>
-[root@centos8 ~]# vgscan +[root@redhat9 ~]# vgscan 
-  Found volume group "cl_centos8" using metadata type lvm2+  Found volume group "rhel" using metadata type lvm2
 </code> </code>
  
Ligne 697: Ligne 744:
  
 <code> <code>
-[root@centos8 ~]# vgscan --longhelp+[root@redhat9 ~]# vgscan --longhelp
   vgscan - Search for all volume groups   vgscan - Search for all volume groups
  
   vgscan   vgscan
- [    --ignorelockingfailure ] +        [    --ignorelockingfailure ] 
- [    --mknodes ] +        [    --mknodes ] 
- [    --notifydbus ] +        [    --notifydbus ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Common variables for lvm:   Common variables for lvm:
Ligne 766: Ligne 817:
  
 <code> <code>
-[root@centos8 ~]# pvcreate /dev/sdb6 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# pvcreate /dev/sdb6 /dev/sdb7 /dev/sdb9
   Physical volume "/dev/sdb6" successfully created.   Physical volume "/dev/sdb6" successfully created.
   Physical volume "/dev/sdb7" successfully created.   Physical volume "/dev/sdb7" successfully created.
Ligne 775: Ligne 826:
  
 <code> <code>
-[root@centos8 ~]# pvcreate --longhelp+[root@redhat9 ~]# pvcreate --longhelp
   pvcreate - Initialize physical volume(s) for use by LVM   pvcreate - Initialize physical volume(s) for use by LVM
  
   pvcreate PV ...   pvcreate PV ...
- [ -f|--force ] +        [ -f|--force ] 
- [ -M|--metadatatype lvm2 ] +        [ -M|--metadatatype lvm2 ] 
- [ -u|--uuid String ] +        [ -u|--uuid String ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [    --dataalignment Size[k|UNIT] ] +        [    --dataalignment Size[k|UNIT] ] 
- [    --dataalignmentoffset Size[k|UNIT] ] +        [    --dataalignmentoffset Size[k|UNIT] ] 
- [    --bootloaderareasize Size[m|UNIT] ] +        [    --bootloaderareasize Size[m|UNIT] ] 
- [    --labelsector Number ] +        [    --labelsector Number ] 
- [    --pvmetadatacopies 0|1|2 ] +        [    --pvmetadatacopies 0|1|2 ] 
- [    --metadatasize Size[m|UNIT] ] +        [    --metadatasize Size[m|UNIT] ] 
- [    --metadataignore y|n ] +        [    --metadataignore y|n ] 
- [    --norestorefile ] +        [    --norestorefile ] 
- [    --setphysicalvolumesize Size[m|UNIT] ] +        [    --setphysicalvolumesize Size[m|UNIT] ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [    --restorefile String ] +        [    --restorefile String ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Common variables for lvm:   Common variables for lvm:
Ligne 850: Ligne 905:
 </code> </code>
  
-Pour visualiser le PV il convient d'utiliser la commande **pvdisplay** :+Pour visualiser les PVs il convient d'utiliser la commande **pvdisplay** :
  
 <code> <code>
-[root@centos8 ~]# pvdisplay /dev/sdb6 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# pvdisplay /dev/sdb6 /dev/sdb7 /dev/sdb9
   "/dev/sdb6" is a new physical volume of "200.00 MiB"   "/dev/sdb6" is a new physical volume of "200.00 MiB"
   --- NEW Physical volume ---   --- NEW Physical volume ---
Ligne 864: Ligne 919:
   Free PE               0   Free PE               0
   Allocated PE          0   Allocated PE          0
-  PV UUID               xsAjLA-sUEU-dexm-H7G1-Dsi4-q6qW-8Tqkay+  PV UUID               qFjsnE-XjSN-HBqU-z4ML-NnJm-E6EQ-6hNFUo
        
   "/dev/sdb7" is a new physical volume of "300.00 MiB"   "/dev/sdb7" is a new physical volume of "300.00 MiB"
Ligne 876: Ligne 931:
   Free PE               0   Free PE               0
   Allocated PE          0   Allocated PE          0
-  PV UUID               WpssK3-sThn-3nS0-80O3-NcW3-23e0-gxejn4+  PV UUID               CKljsJ-dZ1n-WwQZ-G0w3-3E7k-juL1-rd8OhF
        
   "/dev/sdb9" is a new physical volume of "400.00 MiB"   "/dev/sdb9" is a new physical volume of "400.00 MiB"
Ligne 888: Ligne 943:
   Free PE               0   Free PE               0
   Allocated PE          0   Allocated PE          0
-  PV UUID               rqaB99-3UdD-pJxE-Z1Eo-h9yv-tZ41-r4UJSY+  PV UUID               80N1XI-aoN5-Vcnp-AOaP-eSWF-cWIH-QMbe0A
 </code> </code>
  
Ligne 894: Ligne 949:
  
 <code> <code>
-[root@centos8 ~]# pvdisplay --longhelp+[root@redhat9 ~]# pvdisplay --longhelp
   pvdisplay - Display various attributes of physical volume(s)   pvdisplay - Display various attributes of physical volume(s)
  
   pvdisplay   pvdisplay
- [ -a|--all ] +        [ -a|--all ] 
- [ -c|--colon ] +        [ -c|--colon ] 
- [ -C|--columns ] +        [ -C|--columns ] 
- [ -m|--maps ] +        [ -m|--maps ] 
- [ -o|--options String ] +        [ -o|--options String ] 
- [ -S|--select String ] +        [ -S|--select String ] 
- [ -s|--short ] +        [ -s|--short ] 
- [ -O|--sort String ] +        [ -O|--sort String ] 
- [    --aligned ] +        [    --aligned ] 
- [    --binary ] +        [    --binary ] 
- [    --configreport log|vg|lv|pv|pvseg|seg ] +        [    --configreport log|vg|lv|pv|pvseg|seg ] 
- [    --foreign ] +        [    --foreign ] 
- [    --ignorelockingfailure ] +        [    --ignorelockingfailure ] 
- [    --logonly ] +        [    --logonly ] 
- [    --noheadings ] +        [    --noheadings ] 
- [    --nosuffix ] +        [    --nosuffix ] 
- [    --readonly ] +        [    --readonly ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [    --separator String ] +        [    --separator String ] 
- [    --shared ] +        [    --shared ] 
- [    --unbuffered ] +        [    --unbuffered ] 
- [    --units r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ] +        [    --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV|Tag ... ]+        [ PV|Tag ... ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Common variables for lvm:   Common variables for lvm:
Ligne 982: Ligne 1041:
  
 <code> <code>
-[root@centos8 ~]# vgcreate -s 8M vg0 /dev/sdb6 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# vgcreate -s 8M vg0 /dev/sdb6 /dev/sdb7 /dev/sdb9
   Volume group "vg0" successfully created   Volume group "vg0" successfully created
 </code> </code>
Ligne 989: Ligne 1048:
  
 <code> <code>
-[root@centos8 ~]# vgcreate --help+[root@redhat9 ~]# vgcreate --help
   vgcreate - Create a volume group   vgcreate - Create a volume group
  
   vgcreate VG_new PV ...   vgcreate VG_new PV ...
- [ -A|--autobackup y|n ] +        [ -A|--autobackup y|n ] 
- [ -c|--clustered y|n ] +        [ -c|--clustered y|n ] 
- [ -l|--maxlogicalvolumes Number ] +        [ -l|--maxlogicalvolumes Number ] 
- [ -p|--maxphysicalvolumes Number ] +        [ -p|--maxphysicalvolumes Number ] 
- [ -M|--metadatatype lvm2 ] +        [ -M|--metadatatype lvm2 ] 
- [ -s|--physicalextentsize Size[m|UNIT] ] +        [ -s|--physicalextentsize Size[m|UNIT] ] 
- [ -f|--force ] +        [ -f|--force ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [    --addtag Tag ] +        [    --addtag Tag ] 
- [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] +        [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] 
- [    --metadataprofile String ] +        [    --metadataprofile String ] 
- [    --labelsector Number ] +        [    --labelsector Number ] 
- [    --metadatasize Size[m|UNIT] ] +        [    --metadatasize Size[m|UNIT] ] 
- [    --pvmetadatacopies 0|1|2 ] +        [    --pvmetadatacopies 0|1|2 ] 
- [    --vgmetadatacopies all|unmanaged|Number ] +        [    --vgmetadatacopies all|unmanaged|Number ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [    --dataalignment Size[k|UNIT] ] +        [    --dataalignment Size[k|UNIT] ] 
- [    --dataalignmentoffset Size[k|UNIT] ] +        [    --dataalignmentoffset Size[k|UNIT] ] 
- [    --shared ] +        [    --shared ] 
- [    --systemid String ] +        [    --systemid String ] 
- [    --locktype sanlock|dlm|none ] +        [    --locktype sanlock|dlm|none ] 
- [ COMMON_OPTIONS ]+           --setautoactivation y|n ] 
 +        [ COMMON_OPTIONS ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 1038: Ligne 1102:
  
 <code> <code>
-[root@centos8 ~]# vgdisplay vg0+[root@redhat9 ~]# vgdisplay vg0
   --- Volume group ---   --- Volume group ---
   VG Name               vg0   VG Name               vg0
Ligne 1058: Ligne 1122:
   Alloc PE / Size       0 / 0      Alloc PE / Size       0 / 0   
   Free  PE / Size       110 / 880.00 MiB   Free  PE / Size       110 / 880.00 MiB
-  VG UUID               6cO8IX-xhvn-5J4z-Em2t-7RAq-u3y8-1cVZln+  VG UUID               7tQDuL-D900-dWk5-AEo1-JOdP-9Tdq-BKfiBF
 </code> </code>
  
Ligne 1064: Ligne 1128:
  
 <code> <code>
-[root@centos8 ~]# vgdisplay --help+[root@redhat9 ~]# vgdisplay --help
   vgdisplay - Display volume group information   vgdisplay - Display volume group information
  
   vgdisplay   vgdisplay
- [ -A|--activevolumegroups ] +        [ -A|--activevolumegroups ] 
- [ -c|--colon ] +        [ -c|--colon ] 
- [ -C|--columns ] +        [ -C|--columns ] 
- [ -o|--options String ] +        [ -o|--options String ] 
- [ -S|--select String ] +        [ -S|--select String ] 
- [ -s|--short ] +        [ -s|--short ] 
- [ -O|--sort String ] +        [ -O|--sort String ] 
- [    --aligned ] +        [    --aligned ] 
- [    --binary ] +        [    --binary ] 
- [    --configreport log|vg|lv|pv|pvseg|seg ] +        [    --configreport log|vg|lv|pv|pvseg|seg ] 
- [    --foreign ] +        [    --foreign ] 
- [    --ignorelockingfailure ] +        [    --ignorelockingfailure ] 
- [    --logonly ] +        [    --logonly ] 
- [    --noheadings ] +        [    --noheadings ] 
- [    --nosuffix ] +        [    --nosuffix ] 
- [    --readonly ] +        [    --readonly ] 
- [    --reportformat basic|json ] +        [    --shared ] 
- [    --shared ] +        [    --separator String ] 
- [    --separator String ] +        [    --unbuffered ] 
- [    --unbuffered ] +        [    --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ] 
- [    --units r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ] +        [ COMMON_OPTIONS ] 
- [ COMMON_OPTIONS ] +        [ VG|Tag ... ]
- [ VG|Tag ... ]+
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 1116: Ligne 1183:
  
 <code> <code>
-[root@centos8 ~]# lvcreate -L 350 -n lv0 vg0+[root@redhat9 ~]# lvcreate -L 350 -n lv0 vg0
   Rounding up size to full physical extent 352.00 MiB   Rounding up size to full physical extent 352.00 MiB
   Logical volume "lv0" created.   Logical volume "lv0" created.
Ligne 1128: Ligne 1195:
  
 <code> <code>
-[root@centos8 ~]# lvcreate --help+[root@redhat9 ~]# lvcreate --help
   lvcreate - Create a logical volume   lvcreate - Create a logical volume
  
   Create a linear LV.   Create a linear LV.
   lvcreate -L|--size Size[m|UNIT] VG   lvcreate -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ --type linear ] (implied) 
- [    --type linear ] +        [ -l|--extents Number[PERCENT] ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
-  Create a striped LV (infers --type striped).+  Create a striped LV.
   lvcreate -i|--stripes Number -L|--size Size[m|UNIT] VG   lvcreate -i|--stripes Number -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ --type striped ] (implied) 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ COMMON_OPTIONS ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ PV ... ]+        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
-  Create a raid1 or mirror LV (infers --type raid1|mirror).+  Create a raid1 or mirror LV.
   lvcreate -m|--mirrors Number -L|--size Size[m|UNIT] VG   lvcreate -m|--mirrors Number -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ --type raid1|mirror ] (implied) 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -l|--extents Number[PERCENT] ] 
- [    --mirrorlog core|disk ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [    --minrecoveryrate Size[k|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [    --maxrecoveryrate Size[k|UNIT] ] +        [    --mirrorlog core|disk ] 
- [ COMMON_OPTIONS ] +        [    --minrecoveryrate Size[k|UNIT] ] 
- [ PV ... ]+        [    --maxrecoveryrate Size[k|UNIT] ] 
 +        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Create a raid LV (a specific raid level must be used, e.g. raid1).   Create a raid LV (a specific raid level must be used, e.g. raid1).
   lvcreate --type raid -L|--size Size[m|UNIT] VG   lvcreate --type raid -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -m|--mirrors Number ] +        [ -i|--stripes Number ] 
- [ -i|--stripes Number ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -m|--mirrors Number ] 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [    --minrecoveryrate Size[k|UNIT] ] +        [    --minrecoveryrate Size[k|UNIT] ] 
- [    --maxrecoveryrate Size[k|UNIT] ] +        [    --maxrecoveryrate Size[k|UNIT] ] 
- [    --raidintegrity y|n ] +        [    --raidintegrity y|n ] 
- [    --raidintegritymode String ] +        [    --raidintegritymode String ] 
- [    --raidintegrityblocksize Number ] +        [    --raidintegrityblocksize Number ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Create a raid10 LV.   Create a raid10 LV.
   lvcreate -m|--mirrors Number -i|--stripes Number -L|--size Size[m|UNIT] VG   lvcreate -m|--mirrors Number -i|--stripes Number -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ --type raid10 ] (implied) 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [    --minrecoveryrate Size[k|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [    --maxrecoveryrate Size[k|UNIT] ] +        [    --minrecoveryrate Size[k|UNIT] ] 
- [ COMMON_OPTIONS ] +        [    --maxrecoveryrate Size[k|UNIT] ] 
- [ PV ... ]+        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Create a COW snapshot LV of an origin LV.   Create a COW snapshot LV of an origin LV.
   lvcreate -s|--snapshot -L|--size Size[m|UNIT] LV   lvcreate -s|--snapshot -L|--size Size[m|UNIT] LV
- [ -l|--extents Number[PERCENT] ] +        [ --type snapshot ] (implied) 
- [ -i|--stripes Number ] +        [ -l|--extents Number[PERCENT] ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -i|--stripes Number ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [    --type snapshot ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Create a thin pool.   Create a thin pool.
   lvcreate --type thin-pool -L|--size Size[m|UNIT] VG   lvcreate --type thin-pool -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -i|--stripes Number ] 
- [ -i|--stripes Number +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -T|--thin 
- [    --thinpool LV_new ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [    --poolmetadatasize Size[m|UNIT] +        [    --thinpool LV_new ] 
- [    --poolmetadataspare y|n ] +        [    --discards passdown|nopassdown|ignore 
- [    --discards passdown|nopassdown|ignore +        [    --errorwhenfull y|n ] 
- [    --errorwhenfull y|n ] +        [    --poolmetadatasize Size[m|UNIT] 
- [ COMMON_OPTIONS ] +        [    --poolmetadataspare y|n ] 
- [ PV ... ]+        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Create a cache pool.   Create a cache pool.
   lvcreate --type cache-pool -L|--size Size[m|UNIT] VG   lvcreate --type cache-pool -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -H|--cache +        [ -i|--stripes Number 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
-   --poolmetadatasize Size[m|UNIT] +        [ -H|--cache 
-   --poolmetadataspare y|+        [ -c|--chunksize Size[k|UNIT] 
- [    --cachemode writethrough|writeback|passthrough ] +        [    --cachemode writethrough|writeback|passthrough ] 
- [    --cachepolicy String ] +        [    --cachepolicy String ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [    --cachemetadataformat auto|1|2 ] +        [    --cachemetadataformat auto|1|2 ] 
- [ COMMON_OPTIONS ] +           --poolmetadatasize Size[m|UNIT] ] 
- [ PV ... ]+        [    --poolmetadataspare y|n ] 
 +        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
-  Create a thin LV in a thin pool (infers --type thin)+  Create a thin LV in a thin pool. 
-  lvcreate -V|--virtualsize Size[m|UNIT] --thinpool LV_thinpool VG +  lvcreate -V|--virtualsize Size[m|UNIT] --thinpool LV VG 
--T|--thin ] +        [ --type thin ] (implied) 
- [    --type thin ] +        [ -T|--thin 
-   --discards passdown|nopassdown|ignore ] +        [ COMMON_OPTIONS ]
- [    --errorwhenfull y|n +
- [ COMMON_OPTIONS ]+
  
-  Create a thin LV that is a snapshot of an existing thin LV  +  Create a thin LV that is a snapshot of an existing thin LV. 
-  (infers --type thin)+  lvcreate -s|--snapshot LV 
-  lvcreate -s|--snapshot LV_thin +        [ --type thin ] (implied) 
-   --type thin ] +        [ -T|--thin 
-   --discards passdown|nopassdown|ignore ] +        [ COMMON_OPTIONS ]
- [    --errorwhenfull y|n +
- [ COMMON_OPTIONS ]+
  
   Create a thin LV that is a snapshot of an external origin LV.   Create a thin LV that is a snapshot of an external origin LV.
-  lvcreate --type thin --thinpool LV_thinpool LV +  lvcreate --type thin --thinpool LV LV 
- [ -T|--thin ] +        [ -T|--thin ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ COMMON_OPTIONS ]
- [    --poolmetadatasize Size[m|UNIT] ] +
- [    --poolmetadataspare y|n ] +
- [    --discards passdown|nopassdown|ignore ] +
- [    --errorwhenfull y|n ] +
- [ COMMON_OPTIONS ]+
  
   Create a LV that returns VDO when used.   Create a LV that returns VDO when used.
   lvcreate --type vdo -L|--size Size[m|UNIT] VG   lvcreate --type vdo -L|--size Size[m|UNIT] VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -V|--virtualsize Size[m|UNIT] ] +        [ -i|--stripes Number ] 
- [ -i|--stripes Number ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -V|--virtualsize Size[m|UNIT] ] 
-   --vdo ] +           --vdo 
- [    --vdopool LV_new ] +        [    --vdopool LV_new 
- [    --compression y|n ] +        [    --compression y|n ] 
- [    --deduplication y|n ] +        [    --deduplication y|
- [ COMMON_OPTIONS ] +        [    --vdosettings String 
- [ PV ... ] +        [ COMMON_OPTIONS ] 
- +        [ PV ... ]
-  Create a thin LV, first creating a thin pool for it,  +
-  where the new thin pool is named by the --thinpool arg. +
-  lvcreate --type thin -V|--virtualsize Size[m|UNIT] -L|--size Size[m|UNIT--thinpool LV_new +
- [ -l|--extents Number[PERCENT] ] +
- [ -T|--thin ] +
- [ -c|--chunksize Size[k|UNIT] ] +
- [ -i|--stripes Number ] +
- [ -I|--stripesize Size[k|UNIT] +
- [    --poolmetadatasize Size[m|UNIT] +
- [    --poolmetadataspare y|n ] +
- [    --discards passdown|nopassdown|ignore +
- [    --errorwhenfull y|n +
- [ COMMON_OPTIONS ] +
- [ PV ... ]+
  
   Create a new LV, then attach the specified cachepool    Create a new LV, then attach the specified cachepool 
   which converts the new LV to type cache.   which converts the new LV to type cache.
-  lvcreate --type cache -L|--size Size[m|UNIT] --cachepool LV_cachepool VG +  lvcreate --type cache -L|--size Size[m|UNIT] --cachepool LV VG 
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -H|--cache +        [ -i|--stripes Number 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -i|--stripes Number +        [ -H|--cache 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [    --poolmetadatasize Size[m|UNIT] ] +        [    --cachemode writethrough|writeback|passthrough ] 
- [    --poolmetadataspare y|n ] +        [    --cachepolicy String ] 
- [    --cachemode writethrough|writeback|passthrough ] +        [    --cachesettings String ] 
- [    --cachepolicy String ] +        [    --cachemetadataformat auto|1|2 ] 
- [    --cachesettings String ] +           --poolmetadatasize Size[m|UNIT] ] 
- [    --cachemetadataformat auto|1|2 ] +        [    --poolmetadataspare y|n ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Create a new LV, then attach the specified cachevol    Create a new LV, then attach the specified cachevol 
   which converts the new LV to type cache.   which converts the new LV to type cache.
   lvcreate --type cache -L|--size Size[m|UNIT] --cachevol LV VG   lvcreate --type cache -L|--size Size[m|UNIT] --cachevol LV VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -c|--chunksize Size[k|UNIT] +        [ -i|--stripes Number 
- [ -i|--stripes Number +        [ -I|--stripesize Size[k|UNIT] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [    --cachemode writethrough|writeback|passthrough ] +        [    --cachemode writethrough|writeback|passthrough ] 
- [    --cachepolicy String ] +        [    --cachepolicy String ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [    --cachemetadataformat auto|1|2 ] +        [    --cachemetadataformat auto|1|2 ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Create a new LV, then attach a cachevol created from    Create a new LV, then attach a cachevol created from 
Ligne 1307: Ligne 1358:
   new LV to type cache.   new LV to type cache.
   lvcreate --type cache -L|--size Size[m|UNIT] --cachedevice PV VG   lvcreate --type cache -L|--size Size[m|UNIT] --cachedevice PV VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -i|--stripes Number ] 
- [ -i|--stripes Number +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] 
- [    --cachemode writethrough|writeback|passthrough ] +           --cachesize Size[m|UNIT] ] 
- [    --cachepolicy String ] +        [    --cachemode writethrough|writeback|passthrough ] 
- [    --cachesettings String ] +        [    --cachepolicy String ] 
- [    --cachemetadataformat auto|1|2 ] +        [    --cachesettings String ] 
- [    --cachesize Size[m|UNIT] ] +        [    --cachemetadataformat auto|1|2 ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Create a new LV, then attach the specified cachevol    Create a new LV, then attach the specified cachevol 
   which converts the new LV to type writecache.   which converts the new LV to type writecache.
   lvcreate --type writecache -L|--size Size[m|UNIT] --cachevol LV VG   lvcreate --type writecache -L|--size Size[m|UNIT] --cachevol LV VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -i|--stripes Number ] +        [ -i|--stripes Number ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Create a new LV, then attach a cachevol created from    Create a new LV, then attach a cachevol created from 
Ligne 1333: Ligne 1384:
   new LV to type writecache.   new LV to type writecache.
   lvcreate --type writecache -L|--size Size[m|UNIT] --cachedevice PV VG   lvcreate --type writecache -L|--size Size[m|UNIT] --cachedevice PV VG
- [ -l|--extents Number[PERCENT] ] +        [ -l|--extents Number[PERCENT] ] 
- [ -i|--stripes Number ] +        [ -i|--stripes Number ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [    --cachesize Size[m|UNIT] ] +        [    --cachesize Size[m|UNIT] ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Common options for command:   Common options for command:
- [ -a|--activate y|n|ay ] +        [ -a|--activate y|n|ay ] 
- [ -A|--autobackup y|n ] +        [ -A|--autobackup y|n ] 
- [ -C|--contiguous y|n ] +        [ -C|--contiguous y|n ] 
- [ -M|--persistent y|n ] +        [ -M|--persistent y|n ] 
- [ -j|--major Number ] +        [ -j|--major Number ] 
- [ -k|--setactivationskip y|n ] +        [ -k|--setactivationskip y|n ] 
- [ -K|--ignoreactivationskip ] +        [ -K|--ignoreactivationskip ] 
- [ -n|--name String ] +        [ -n|--name String ] 
- [ -p|--permission rw|r ] +        [ -p|--permission rw|r ] 
- [ -r|--readahead auto|none|Number ] +        [ -r|--readahead auto|none|Number ] 
- [ -W|--wipesignatures y|n ] +        [ -W|--wipesignatures y|n ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [    --addtag Tag ] +        [    --addtag Tag ] 
- [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] +        [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] 
- [    --ignoremonitoring ] +           --setautoactivation y|n ] 
- [    --metadataprofile String ] +        [    --ignoremonitoring ] 
- [    --minor Number ] +        [    --metadataprofile String ] 
- [    --monitor y|n ] +        [    --minor Number ] 
- [    --nosync ] +        [    --monitor y|n ] 
- [    --noudevsync ] +        [    --nosync ] 
- [    --reportformat basic|json ]+        [    --noudevsync ] 
 +        [    --reportformat basic|json|json_std ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 1386: Ligne 1442:
  
 <code> <code>
-[root@centos8 ~]# mkdir /mnt/lvm+[root@redhat9 ~]# mkdir /mnt/lvm
 </code> </code>
  
Ligne 1392: Ligne 1448:
  
 <code> <code>
-[root@centos8 ~]# mke2fs -j /dev/vg0/lv0 +[root@redhat9 ~]# mke2fs -j /dev/vg0/lv0 
-mke2fs 1.45.(20-Mar-2020)+mke2fs 1.46.(30-Dec-2021) 
 +Discarding device blocks: done                            
 Creating filesystem with 360448 1k blocks and 90112 inodes Creating filesystem with 360448 1k blocks and 90112 inodes
-Filesystem UUID: 87b6d526-d379-4e0c-8984-94811f1cee33+Filesystem UUID: 34d451f7-96c2-43b1-8cc0-9fe8bafcf498
 Superblock backups stored on blocks:  Superblock backups stored on blocks: 
- 8193, 24577, 40961, 57345, 73729, 204801, 221185+        8193, 24577, 40961, 57345, 73729, 204801, 221185
  
 Allocating group tables: done                             Allocating group tables: done                            
 Writing inode tables: done                             Writing inode tables: done                            
 Creating journal (8192 blocks): done Creating journal (8192 blocks): done
-Writing superblocks and filesystem accounting information: done+Writing superblocks and filesystem accounting information: done 
 </code> </code>
  
Ligne 1408: Ligne 1465:
  
 <code> <code>
-[root@centos8 ~]# mount -t ext3 /dev/vg0/lv0 /mnt/lvm+[root@redhat9 ~]# mount -t ext3 /dev/vg0/lv0 /mnt/lvm
 </code> </code>
  
Ligne 1416: Ligne 1473:
  
 <code> <code>
-[root@centos8 ~]# cp -a /home /mnt/lvm+[root@redhat9 ~]# cp -a /home /mnt/lvm
 </code> </code>
  
Ligne 1422: Ligne 1479:
  
 <code> <code>
-[root@centos8 ~]# ls -l /mnt/lvm +[root@redhat9 ~]# ls -l /mnt/lvm 
-total 14 +total 13 
-drwxr-xr-x. root root  1024 Apr 20 14:35 home +drwxr-xr-x. root root  1024 Oct 19  2023 home 
-drwx------. 2 root root 12288 May 26 17:00 lost+found+drwx------. 2 root root 12288 Oct 23 15:21 lost+found 
 +[root@redhat9 ~]# 
 </code> </code>
  
Ligne 1431: Ligne 1489:
  
 <code> <code>
-[root@centos8 ~]# df -h /mnt/lvm+[root@redhat9 ~]# df -h /mnt/lvm
 Filesystem           Size  Used Avail Use% Mounted on Filesystem           Size  Used Avail Use% Mounted on
-/dev/mapper/vg0-lv0  333M  17M  314M   1% /mnt/lvm+/dev/mapper/vg0-lv0  320M  4.4M  298M   2% /mnt/lvm
 </code> </code>
  
-Dans la cas de notre exemple, la taille est de **333 Mo** avec **17 Mo** occupé.+Dans la cas de notre exemple, la taille est de **320 Mo** avec **4.4 Mo** occupé.
  
 ====LAB #4 - Etendre un Volume Logique à Chaud==== ====LAB #4 - Etendre un Volume Logique à Chaud====
Ligne 1443: Ligne 1501:
  
 <code> <code>
-[root@centos8 ~]# lvextend -L +100M /dev/vg0/lv0+[root@redhat9 ~]# lvextend -L +100M /dev/vg0/lv0
   Rounding size to boundary between physical extents: 104.00 MiB.   Rounding size to boundary between physical extents: 104.00 MiB.
   Size of logical volume vg0/lv0 changed from 352.00 MiB (44 extents) to 456.00 MiB (57 extents).   Size of logical volume vg0/lv0 changed from 352.00 MiB (44 extents) to 456.00 MiB (57 extents).
Ligne 1456: Ligne 1514:
  
 <code> <code>
-[root@centos8 ~]# lvextend --help+[root@redhat9 ~]# lvextend --help
   lvextend - Add space to a logical volume   lvextend - Add space to a logical volume
  
   Extend an LV by a specified size.   Extend an LV by a specified size.
   lvextend -L|--size [+]Size[m|UNIT] LV   lvextend -L|--size [+]Size[m|UNIT] LV
- [ -l|--extents [+]Number[PERCENT] ] +        [ -l|--extents [+]Number[PERCENT] ] 
- [ -r|--resizefs ] +        [ -r|--resizefs ] 
- [ -i|--stripes Number ] +        [ -i|--stripes Number ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [    --poolmetadatasize [+]Size[m|UNIT] ] +        [    --poolmetadatasize [+]Size[m|UNIT] ] 
- [ COMMON_OPTIONS ] +           --fs String ] 
- [ PV ... ]+        [    --fsmode String ] 
 +        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Extend an LV by specified PV extents.   Extend an LV by specified PV extents.
   lvextend LV PV ...   lvextend LV PV ...
- [ -r|--resizefs ] +        [ -r|--resizefs ] 
- [ -i|--stripes Number ] +        [ -i|--stripes Number ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ COMMON_OPTIONS ]+           --fs String ] 
 +        [    --fsmode String ] 
 +        [ COMMON_OPTIONS ]
  
   Extend a pool metadata SubLV by a specified size.   Extend a pool metadata SubLV by a specified size.
-  lvextend --poolmetadatasize [+]Size[m|UNIT] LV_thinpool +  lvextend --poolmetadatasize [+]Size[m|UNIT] LV 
- [ -i|--stripes Number ] +        [ -i|--stripes Number ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Extend an LV according to a predefined policy.   Extend an LV according to a predefined policy.
-  lvextend --usepolicies LV_snapshot_thinpool +  lvextend --usepolicies LV 
- [ -r|--resizefs ] +        [ -r|--resizefs ] 
- [ COMMON_OPTIONS ] +           --fs String ] 
- [ PV ... ]+        [    --fsmode String ] 
 +        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Common options for command:   Common options for command:
- [ -A|--autobackup y|n ] +        [ -A|--autobackup y|n ] 
- [ -f|--force ] +        [ -f|--force ] 
- [ -m|--mirrors Number ] +        [ -m|--mirrors Number ] 
- [ -n|--nofsck ] +        [ -n|--nofsck ] 
- [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] +        [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] 
- [    --nosync ] +        [    --nosync ] 
- [    --noudevsync ] +        [    --noudevsync ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [    --type linear|striped|snapshot|mirror|raid|thin|cache|vdo|thin-pool|cache-pool|vdo-pool ]+        [    --type linear|striped|snapshot|raid|mirror|thin|thin-pool|vdo|vdo-pool|cache|cache-pool|writecache ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 1522: Ligne 1590:
  
 <code> <code>
-[root@centos8 ~]# resize2fs /dev/vg0/lv0 +[root@redhat9 ~]# resize2fs /dev/vg0/lv0 
-resize2fs 1.45.(20-Mar-2020)+resize2fs 1.46.(30-Dec-2021)
 Filesystem at /dev/vg0/lv0 is mounted on /mnt/lvm; on-line resizing required Filesystem at /dev/vg0/lv0 is mounted on /mnt/lvm; on-line resizing required
 old_desc_blocks = 2, new_desc_blocks = 2 old_desc_blocks = 2, new_desc_blocks = 2
Ligne 1532: Ligne 1600:
  
 <code> <code>
-[root@centos8 ~]# df -h /mnt/lvm+[root@redhat9 ~]# df -h /mnt/lvm
 Filesystem           Size  Used Avail Use% Mounted on Filesystem           Size  Used Avail Use% Mounted on
-/dev/mapper/vg0-lv0  434M   17M  395M   5% /mnt/lvm+/dev/mapper/vg0-lv0  418M  4.4M  391M   2% /mnt/lvm
 </code> </code>
  
-Vous noterez que la taille a augmentée mais que les données sont toujours présentes.+Vous noterez que la taille a augmentée et que les données sont toujours présentes.
  
 ====LAB #5 - Snapshots==== ====LAB #5 - Snapshots====
Ligne 1546: Ligne 1614:
  
 <code> <code>
-[root@centos8 ~]# dd if=/dev/zero of=/mnt/lvm/10M bs=1048576 count=10+[root@redhat9 ~]# dd if=/dev/zero of=/mnt/lvm/10M bs=1048576 count=10
 10+0 records in 10+0 records in
 10+0 records out 10+0 records out
-10485760 bytes (10 MB, 10 MiB) copied, 0.0281282 s, 373 MB/s+10485760 bytes (10 MB, 10 MiB) copied, 0.0239133 s, 438 MB/s
 </code> </code>
  
Ligne 1555: Ligne 1623:
  
 <code> <code>
-[root@centos8 ~]# lvcreate -s -L 18M -n testsnap /dev/vg0/lv0 +[root@redhat9 ~]# lvcreate -s -L 5M -n testsnap /dev/vg0/lv0 
-  Rounding up size to full physical extent 24.00 MiB+  Rounding up size to full physical extent 8.00 MiB
   Logical volume "testsnap" created.   Logical volume "testsnap" created.
 </code> </code>
Ligne 1563: Ligne 1631:
  
 <code> <code>
-[root@centos8 ~]# lvs +[root@redhat9 ~]# lvs 
-  LV       VG         Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert +  LV       VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert 
-  root     cl_centos8 -wi-ao----  27.79g                                                     +  root     rhel -wi-ao---- <44.00g                                                     
-  swap     cl_centos8 -wi-ao----   3.20g                                                     +  swap     rhel -wi-ao----   5.00g                                                     
-  lv0      vg0        owi-aos--- 456.00m                                                     +  lv0      vg0  owi-aos--- 456.00m                                                     
-  testsnap vg0        swi-a-s---  24.00m      lv0    0.05  +  testsnap vg0  swi-a-s---   8.00m      lv0    0.15 
 </code> </code>
  
Ligne 1578: Ligne 1646:
  
 <code> <code>
-[root@centos8 ~]# lvs --help+[root@redhat9 ~]# lvs --help
   lvs - Display information about logical volumes   lvs - Display information about logical volumes
  
   lvs   lvs
- [ -H|--history ] +        [ -H|--history ] 
- [ -a|--all ] +        [ -a|--all ] 
- [ -o|--options String ] +        [ -o|--options String ] 
- [ -S|--select String ] +        [ -S|--select String ] 
- [ -O|--sort String ] +        [ -O|--sort String ] 
- [    --segments ] +        [    --segments ] 
- [    --aligned ] +        [    --aligned ] 
- [    --binary ] +        [    --binary ] 
- [    --configreport log|vg|lv|pv|pvseg|seg ] +        [    --configreport log|vg|lv|pv|pvseg|seg ] 
- [    --foreign ] +        [    --foreign ] 
- [    --ignorelockingfailure ] +           --headings none|abbrev|full|0|1|2 ] 
- [    --logonly ] +        [    --ignorelockingfailure ] 
- [    --nameprefixes ] +        [    --logonly ] 
- [    --noheadings ] +        [    --nameprefixes ] 
- [    --nosuffix ] +        [    --noheadings ] 
- [    --readonly ] +        [    --nosuffix ] 
- [    --reportformat basic|json ] +        [    --readonly ] 
- [    --rows ] +        [    --reportformat basic|json|json_std 
- [    --separator String ] +        [    --rows ] 
- [    --shared ] +        [    --separator String ] 
- [    --unbuffered ] +        [    --shared ] 
- [    --units r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ] +        [    --unbuffered ] 
- [    --unquoted ] +        [    --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ] 
- [ COMMON_OPTIONS ] +        [    --unquoted ] 
- [ VG|LV|Tag ... ]+        [ COMMON_OPTIONS ] 
 +        [ VG|LV|Tag ... ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 1630: Ligne 1703:
  
 <code> <code>
-[root@centos8 ~]# mkdir /mnt/testsnap+[root@redhat9 ~]# mkdir /mnt/testsnap
 </code> </code>
  
Ligne 1636: Ligne 1709:
  
 <code> <code>
-[root@centos8 ~]# mount /dev/vg0/testsnap /mnt/testsnap+[root@redhat9 ~]# mount /dev/vg0/testsnap /mnt/testsnap
 </code> </code>
  
Ligne 1642: Ligne 1715:
  
 <code> <code>
-[root@centos8 ~]# ls -l /mnt/lvm +[root@redhat9 ~]# ls -l /mnt/lvm 
-total 10296 +total 10294 
--rw-r--r--. 1 root root 10485760 Jun 24 04:41 10M +-rw-r--r--. 1 root root 10485760 Oct 23 15:27 10M 
-drwxr-xr-x. 3 root root     1024 Jun 16 06:39 home +drwxr-xr-x. 3 root root     1024 Oct 19  2023 home 
-drwx------. 2 root root    12288 Jun 24 04:20 lost+found +drwx------. 2 root root    12288 Oct 23 15:21 lost+found 
-[root@centos8 ~]# ls -l /mnt/testsnap/ + 
-total 10296 +[root@redhat9 ~]# ls -l /mnt/testsnap/ 
--rw-r--r--. 1 root root 10485760 Jun 24 04:41 10M +total 10294 
-drwxr-xr-x. 3 root root     1024 Jun 16 06:39 home +-rw-r--r--. 1 root root 10485760 Oct 23 15:27 10M 
-drwx------. 2 root root    12288 Jun 24 04:20 lost+found+drwxr-xr-x. 3 root root     1024 Oct 19  2023 home 
 +drwx------. 2 root root    12288 Oct 23 15:21 lost+found
 </code> </code>
  
Ligne 1657: Ligne 1731:
  
 <code> <code>
-[root@centos8 ~]# rm /mnt/lvm/10M+[root@redhat9 ~]# rm /mnt/lvm/10M
 rm: remove regular file '/mnt/lvm/10M'? y rm: remove regular file '/mnt/lvm/10M'? y
 </code> </code>
Ligne 1664: Ligne 1738:
  
 <code> <code>
-[root@centos8 ~]# df -Ph /mnt/lvm+[root@redhat9 ~]# df -Ph /mnt/lvm
 Filesystem           Size  Used Avail Use% Mounted on Filesystem           Size  Used Avail Use% Mounted on
-/dev/mapper/vg0-lv0  434M   17M  395M   5% /mnt/lvm+/dev/mapper/vg0-lv0  418M  4.4M  391M   2% /mnt/lvm
  
-[root@centos8 ~]# df -Ph /mnt/testsnap/+[root@redhat9 ~]# df -Ph /mnt/testsnap/
 Filesystem                Size  Used Avail Use% Mounted on Filesystem                Size  Used Avail Use% Mounted on
-/dev/mapper/vg0-testsnap  434M   27M  385M   7% /mnt/testsnap+/dev/mapper/vg0-testsnap  418M   15M  381M   4% /mnt/testsnap
  
-[root@centos8 ~]# lvs +[root@redhat9 ~]# lvs 
-  LV       VG         Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert +  LV       VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert 
-  root     cl_centos8 -wi-ao----  27.79g                                                     +  root     rhel -wi-ao---- <44.00g                                                     
-  swap     cl_centos8 -wi-ao----   3.20g                                                     +  swap     rhel -wi-ao----   5.00g                                                     
-  lv0      vg0        owi-aos--- 456.00m                                                     +  lv0      vg0  owi-aos--- 456.00m                                                     
-  testsnap vg0        swi-aos---  24.00m      lv0    0.24     +  testsnap vg0  swi-aos---   8.00m      lv0    0.68     
 </code> </code>
  
Ligne 1689: Ligne 1763:
  
 <code> <code>
-[root@centos8 ~]# umount /mnt/testsnap/ +[root@redhat9 ~]# umount /mnt/testsnap/ 
-[root@centos8 ~]# lvremove /dev/vg0/testsnap+ 
 +[root@redhat9 ~]# lvremove /dev/vg0/testsnap
 Do you really want to remove active logical volume vg0/testsnap? [y/n]: y Do you really want to remove active logical volume vg0/testsnap? [y/n]: y
-  Logical volume "testsnap" successfully removed +  Logical volume "testsnap" successfully removed
-[root@centos8 ~]# umount /mnt/lvm  + 
-[root@centos8 ~]# lvremove /dev/vg0/lv0+[root@redhat9 ~]# umount /mnt/lvm  
 + 
 +[root@redhat9 ~]# lvremove /dev/vg0/lv0
 Do you really want to remove active logical volume vg0/lv0? [y/n]: y Do you really want to remove active logical volume vg0/lv0? [y/n]: y
-  Logical volume "lv0" successfully removed+  Logical volume "lv0" successfully removed.
 </code> </code>
  
Ligne 1706: Ligne 1783:
  
 <code> <code>
-[root@centos8 ~]# lvremove --help+[root@redhat9 ~]# lvremove --help
   lvremove - Remove logical volume(s) from the system   lvremove - Remove logical volume(s) from the system
  
   lvremove VG|LV|Tag|Select ...   lvremove VG|LV|Tag|Select ...
- [ -A|--autobackup y|n ] +        [ -A|--autobackup y|n ] 
- [ -f|--force ] +        [ -f|--force ] 
- [ -S|--select String ] +        [ -S|--select String ] 
- [    --nohistory ] +        [    --nohistory ] 
- [    --noudevsync ] +        [    --noudevsync ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
-  Use --longhelp to show all options and advanced commands+  Use --longhelp to show all options and advanced commands.
 </code> </code>
  
Ligne 1740: Ligne 1821:
  
 <code> <code>
-[root@centos8 ~]# vgremove vg0+[root@redhat9 ~]# vgremove vg0
   Volume group "vg0" successfully removed   Volume group "vg0" successfully removed
 </code> </code>
Ligne 1747: Ligne 1828:
  
 <code> <code>
-[root@centos8 ~]# vgremove --help+[root@redhat9 ~]# vgremove --help
   vgremove - Remove volume group(s)   vgremove - Remove volume group(s)
  
   vgremove VG|Tag|Select ...   vgremove VG|Tag|Select ...
- [ -f|--force ] +        [ -f|--force ] 
- [ -S|--select String ] +        [ -S|--select String ] 
- [    --noudevsync ] +        [    --noudevsync ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 1779: Ligne 1864:
  
 <code> <code>
-[root@centos8 ~]# pvremove /dev/sdb6 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# pvremove /dev/sdb6 /dev/sdb7 /dev/sdb9
   Labels on physical volume "/dev/sdb6" successfully wiped.   Labels on physical volume "/dev/sdb6" successfully wiped.
   Labels on physical volume "/dev/sdb7" successfully wiped.   Labels on physical volume "/dev/sdb7" successfully wiped.
Ligne 1788: Ligne 1873:
  
 <code> <code>
-[root@centos8 ~]# pvremove --help+[root@redhat9 ~]# pvremove --help
   pvremove - Remove LVM label(s) from physical volume(s)   pvremove - Remove LVM label(s) from physical volume(s)
  
   pvremove PV ...   pvremove PV ...
- [ -f|--force ] +        [ -f|--force ] 
- [    --reportformat basic|json ] +        [    --reportformat basic|json|json_std 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 1820: Ligne 1909:
  
 <code> <code>
-[root@centos8 ~]# pvcreate /dev/sdb6 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# pvcreate /dev/sdb6 /dev/sdb7 /dev/sdb9
   Physical volume "/dev/sdb6" successfully created.   Physical volume "/dev/sdb6" successfully created.
   Physical volume "/dev/sdb7" successfully created.   Physical volume "/dev/sdb7" successfully created.
   Physical volume "/dev/sdb9" successfully created.   Physical volume "/dev/sdb9" successfully created.
  
-[root@centos8 ~]# vgcreate -s 8M vg0 /dev/sdb6 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# vgcreate -s 8M vg0 /dev/sdb6 /dev/sdb7 /dev/sdb9
   Volume group "vg0" successfully created   Volume group "vg0" successfully created
 </code> </code>
Ligne 1832: Ligne 1921:
  
 <code> <code>
-[root@centos8 ~]# lvcreate -m 1 -L 100M -n lv1 vg0+[root@redhat9 ~]# lvcreate -m 1 -L 100M -n lv1 vg0
   Rounding up size to full physical extent 104.00 MiB   Rounding up size to full physical extent 104.00 MiB
   Logical volume "lv1" created.   Logical volume "lv1" created.
Ligne 1840: Ligne 1929:
  
 <code> <code>
-[root@centos8 ~]# lvdisplay -m /dev/vg0/lv1+[root@redhat9 ~]# lvdisplay -m /dev/vg0/lv1
   --- Logical volume ---   --- Logical volume ---
   LV Path                /dev/vg0/lv1   LV Path                /dev/vg0/lv1
   LV Name                lv1   LV Name                lv1
   VG Name                vg0   VG Name                vg0
-  LV UUID                lJQQWs-n05T-pxzi-Zq2R-UzRI-kYZf-hsNPYQ+  LV UUID                L7FOYB-c0tG-dE1u-Oyod-LltI-PEcv-rebeIa
   LV Write Access        read/write   LV Write Access        read/write
-  LV Creation host, time centos8.ittraining.loc, 2021-06-02 07:37:28 -0400+  LV Creation host, time redhat9.ittraining.loc, 2024-10-23 15:42:34 +0200
   LV Status              available   LV Status              available
   # open                 0   # open                 0
Ligne 1856: Ligne 1945:
   Allocation             inherit   Allocation             inherit
   Read ahead sectors     auto   Read ahead sectors     auto
-  - currently set to     8192 +  - currently set to     256 
-  Block device           253:4+  Block device           253:6
        
   --- Segments ---   --- Segments ---
   Logical extents 0 to 12:   Logical extents 0 to 12:
-    Type raid1 +    Type                raid1 
-    Monitoring monitored+    Monitoring          monitored
     Raid Data LV 0     Raid Data LV 0
-      Logical volume lv1_rimage_0 +      Logical volume    lv1_rimage_0 
-      Logical extents 0 to 12+      Logical extents   0 to 12
     Raid Data LV 1     Raid Data LV 1
-      Logical volume lv1_rimage_1 +      Logical volume    lv1_rimage_1 
-      Logical extents 0 to 12 +      Logical extents   0 to 12 
-    Raid Metadata LV 0 lv1_rmeta_0 +    Raid Metadata LV 0  lv1_rmeta_0 
-    Raid Metadata LV 1 lv1_rmeta_1+    Raid Metadata LV 1  lv1_rmeta_1
 </code> </code>
  
Ligne 1876: Ligne 1965:
  
 <code> <code>
-[root@centos8 ~]# pvdisplay -m /dev/sdb6 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# pvdisplay -m /dev/sdb6 /dev/sdb7 /dev/sdb9
   --- Physical volume ---   --- Physical volume ---
   PV Name               /dev/sdb6   PV Name               /dev/sdb6
Ligne 1886: Ligne 1975:
   Free PE               10   Free PE               10
   Allocated PE          14   Allocated PE          14
-  PV UUID               lxuKRI-l3Dd-jhsv-OWtw-au2c-0ti0-XGnt1E+  PV UUID               TnqoyD-LQvR-pHro-wlud-vVUq-Kime-xuVTJD
        
   --- Physical Segments ---   --- Physical Segments ---
   Physical extent 0 to 0:   Physical extent 0 to 0:
-    Logical volume /dev/vg0/lv1_rmeta_0 +    Logical volume      /dev/vg0/lv1_rmeta_0 
-    Logical extents 0 to 0+    Logical extents     0 to 0
   Physical extent 1 to 13:   Physical extent 1 to 13:
-    Logical volume /dev/vg0/lv1_rimage_0 +    Logical volume      /dev/vg0/lv1_rimage_0 
-    Logical extents 0 to 12+    Logical extents     0 to 12
   Physical extent 14 to 23:   Physical extent 14 to 23:
     FREE     FREE
Ligne 1907: Ligne 1996:
   Free PE               23   Free PE               23
   Allocated PE          14   Allocated PE          14
-  PV UUID               QDmfcX-Pv8o-hapq-TJOI-RaPH-qecT-VUMY4v+  PV UUID               eff83E-hlnA-FWdf-VQzX-c3dP-dsDf-3dvhik
        
   --- Physical Segments ---   --- Physical Segments ---
   Physical extent 0 to 0:   Physical extent 0 to 0:
-    Logical volume /dev/vg0/lv1_rmeta_1 +    Logical volume      /dev/vg0/lv1_rmeta_1 
-    Logical extents 0 to 0+    Logical extents     0 to 0
   Physical extent 1 to 13:   Physical extent 1 to 13:
-    Logical volume /dev/vg0/lv1_rimage_1 +    Logical volume      /dev/vg0/lv1_rimage_1 
-    Logical extents 0 to 12+    Logical extents     0 to 12
   Physical extent 14 to 36:   Physical extent 14 to 36:
     FREE     FREE
Ligne 1928: Ligne 2017:
   Free PE               49   Free PE               49
   Allocated PE          0   Allocated PE          0
-  PV UUID               ZTQV1b-Ha76-BQtB-zJEU-kfyK-ausJ-CxnRwg+  PV UUID               UhD7RK-T8QS-nUAV-Sh0X-4JXp-Cbju-f8o2yC
        
   --- Physical Segments ---   --- Physical Segments ---
Ligne 1938: Ligne 2027:
  
 <code> <code>
-[root@centos8 ~]# lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7+[root@redhat9 ~]# lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7
 Are you sure you want to convert raid1 LV vg0/lv1 to type linear losing all resilience? [y/n]: y Are you sure you want to convert raid1 LV vg0/lv1 to type linear losing all resilience? [y/n]: y
   Logical volume vg0/lv1 successfully converted.   Logical volume vg0/lv1 successfully converted.
Ligne 1946: Ligne 2035:
  
 <code> <code>
-[root@centos8 ~]# lvconvert -m 1 /dev/vg0/lv1+[root@redhat9 ~]# lvconvert -m 1 /dev/vg0/lv1
 Are you sure you want to convert linear LV vg0/lv1 to raid1 with 2 images enhancing resilience? [y/n]: y Are you sure you want to convert linear LV vg0/lv1 to raid1 with 2 images enhancing resilience? [y/n]: y
   Logical volume vg0/lv1 successfully converted.   Logical volume vg0/lv1 successfully converted.
Ligne 1954: Ligne 2043:
  
 <code> <code>
-[root@centos8 ~]# lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7+[root@redhat9 ~]# lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7
 Are you sure you want to convert raid1 LV vg0/lv1 to type linear losing all resilience? [y/n]: y Are you sure you want to convert raid1 LV vg0/lv1 to type linear losing all resilience? [y/n]: y
   Logical volume vg0/lv1 successfully converted.   Logical volume vg0/lv1 successfully converted.
Ligne 1962: Ligne 2051:
  
 <code> <code>
-[root@centos8 ~]# lvconvert --help+[root@redhat9 ~]# lvconvert --help
   lvconvert - Change logical volume layout   lvconvert - Change logical volume layout
  
   Convert LV to linear.   Convert LV to linear.
   lvconvert --type linear LV   lvconvert --type linear LV
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Convert LV to striped.   Convert LV to striped.
   lvconvert --type striped LV   lvconvert --type striped LV
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [    --stripes Number ] +        [    --stripes Number ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Convert LV to type mirror (also see type raid1),   Convert LV to type mirror (also see type raid1),
   lvconvert --type mirror LV   lvconvert --type mirror LV
- [ -m|--mirrors [+|-]Number ] +        [ -m|--mirrors [+|-]Number ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [    --stripes Number ] +        [    --stripes Number ] 
- [    --mirrorlog core|disk ] +        [    --mirrorlog core|disk ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Convert LV to raid or change raid layout    Convert LV to raid or change raid layout 
   (a specific raid level must be used, e.g. raid1).   (a specific raid level must be used, e.g. raid1).
   lvconvert --type raid LV   lvconvert --type raid LV
- [ -m|--mirrors [+|-]Number ] +        [ -m|--mirrors [+|-]Number ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [    --stripes Number ] +        [    --stripes Number ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Convert LV to raid1 or mirror, or change number of mirror images.   Convert LV to raid1 or mirror, or change number of mirror images.
   lvconvert -m|--mirrors [+|-]Number LV   lvconvert -m|--mirrors [+|-]Number LV
- [ -R|--regionsize Size[m|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [    --mirrorlog core|disk ] +        [    --mirrorlog core|disk ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Convert raid LV to change number of stripe images.   Convert raid LV to change number of stripe images.
-  lvconvert --stripes Number LV_raid +  lvconvert --stripes Number LV 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Convert raid LV to change the stripe size.   Convert raid LV to change the stripe size.
-  lvconvert -I|--stripesize Size[k|UNIT] LV_raid +  lvconvert -I|--stripesize Size[k|UNIT] LV 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [ -R|--regionsize Size[m|UNIT] ] +        [ -R|--regionsize Size[m|UNIT] ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Split images from a raid1 or mirror LV and use them to create a new LV.   Split images from a raid1 or mirror LV and use them to create a new LV.
-  lvconvert --splitmirrors Number -n|--name LV_new LV_cache_mirror_raid1 +  lvconvert --splitmirrors Number -n|--name LV_new LV 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Split images from a raid1 LV and track changes to origin for later merge.   Split images from a raid1 LV and track changes to origin for later merge.
-  lvconvert --splitmirrors Number --trackchanges LV_cache_raid1 +  lvconvert --splitmirrors Number --trackchanges LV 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Merge LV images that were split from a raid1 LV.   Merge LV images that were split from a raid1 LV.
-  lvconvert --mergemirrors VG|LV_linear_raid|Tag ... +  lvconvert --mergemirrors VG|LV|Tag ... 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Convert LV to a thin LV, using the original LV as an external origin.   Convert LV to a thin LV, using the original LV as an external origin.
-  lvconvert --type thin --thinpool LV LV_linear_striped_thin_cache_raid +  lvconvert --type thin --thinpool LV LV 
- [ -T|--thin ] +        [ -T|--thin ] 
- [ -r|--readahead auto|none|Number ] +        [ -r|--readahead auto|none|Number ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [    --originname LV_new ] +        [    --originname LV_new ] 
- [    --poolmetadata LV ] +        [    --poolmetadata LV ] 
- [    --poolmetadatasize Size[m|UNIT] ] +        [    --poolmetadatasize Size[m|UNIT] ] 
- [    --poolmetadataspare y|n ] +        [    --poolmetadataspare y|n ] 
- [    --metadataprofile String ] +        [    --metadataprofile String ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS 
 +        [ PV ... ] 
 + 
 +  Convert LV to a thin LV, using LV as thin-pool data volume. 
 +  lvconvert --type thin LV 
 +        [ -T|--thin ] 
 +        [ -r|--readahead auto|none|Number ] 
 +        [ -c|--chunksize Size[k|UNIT] ] 
 +        [ -Z|--zero y|n ] 
 +        [    --poolmetadata LV ] 
 +        [    --poolmetadatasize Size[m|UNIT] ] 
 +        [    --poolmetadataspare y|n ] 
 +        [    --metadataprofile String ] 
 +        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Attach a cache pool to an LV, converts the LV to type cache.   Attach a cache pool to an LV, converts the LV to type cache.
-  lvconvert --type cache --cachepool LV LV_linear_striped_thinpool_vdo_vdopool_vdopooldata_raid +  lvconvert --type cache --cachepool LV LV 
- [ -H|--cache ] +        [ -H|--cache ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [ -r|--readahead auto|none|Number ] +        [ -r|--readahead auto|none|Number ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [    --cachemetadataformat auto|1|2 ] +        [    --cachemetadataformat auto|1|2 ] 
- [    --cachemode writethrough|writeback|passthrough ] +        [    --cachemode writethrough|writeback|passthrough ] 
- [    --cachepolicy String ] +        [    --cachepolicy String ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [    --poolmetadata LV ] +        [    --poolmetadata LV ] 
- [    --poolmetadatasize Size[m|UNIT] ] +        [    --poolmetadatasize Size[m|UNIT] ] 
- [    --poolmetadataspare y|n ] +        [    --poolmetadataspare y|n ] 
- [    --metadataprofile String ] +        [    --metadataprofile String ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS 
 +        [ PV ... ]
  
   Attach a writecache to an LV, converts the LV to type writecache.   Attach a writecache to an LV, converts the LV to type writecache.
-  lvconvert --type writecache --cachevol LV LV_linear_striped_raid +  lvconvert --type writecache --cachevol LV LV 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Attach a cache to an LV, converts the LV to type cache.   Attach a cache to an LV, converts the LV to type cache.
-  lvconvert --type cache --cachevol LV LV_linear_striped_thinpool_raid +  lvconvert --type cache --cachevol LV LV 
- [ -H|--cache ] +        [ -H|--cache ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [    --cachemetadataformat auto|1|2 ] +        [    --cachemetadataformat auto|1|2 ] 
- [    --cachemode writethrough|writeback|passthrough ] +        [    --cachemode writethrough|writeback|passthrough ] 
- [    --cachepolicy String ] +        [    --cachepolicy String ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [    --poolmetadatasize Size[m|UNIT] ] +        [    --poolmetadatasize Size[m|UNIT] ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Add a writecache to an LV, using a specified cache device.   Add a writecache to an LV, using a specified cache device.
-  lvconvert --type writecache --cachedevice PV LV_linear_striped_raid +  lvconvert --type writecache --cachedevice PV LV 
- [    --cachesize Size[m|UNIT] ] +        [    --cachesize Size[m|UNIT] ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Add a cache to an LV, using a specified cache device.   Add a cache to an LV, using a specified cache device.
-  lvconvert --type cache --cachedevice PV LV_linear_striped_thinpool_raid +  lvconvert --type cache --cachedevice PV LV 
- [    --cachesize Size[m|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [    --cachesettings String ] +        [    --cachesize Size[m|UNIT] ] 
- [ COMMON_OPTIONS ]+        [    --cachesettings String ] 
 +        [ COMMON_OPTIONS ]
  
   Convert LV to type thin-pool.   Convert LV to type thin-pool.
-  lvconvert --type thin-pool LV_linear_striped_cache_raid +  lvconvert --type thin-pool LV 
- [ -I|--stripesize Size[k|UNIT] ] +        [ -I|--stripesize Size[k|UNIT] ] 
- [ -r|--readahead auto|none|Number ] +        [ -r|--readahead auto|none|Number ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [    --stripes Number ] +        [    --stripes Number ] 
- [    --discards passdown|nopassdown|ignore ] +        [    --discards passdown|nopassdown|ignore ] 
- [    --poolmetadata LV ] +           --errorwhenfull y|n ] 
- [    --poolmetadatasize Size[m|UNIT] ] +        [    --poolmetadata LV ] 
- [    --poolmetadataspare y|n ] +        [    --poolmetadatasize Size[m|UNIT] ] 
- [    --metadataprofile String ] +        [    --poolmetadataspare y|n ] 
- [ COMMON_OPTIONS ] +        [    --metadataprofile String ] 
- [ PV ... ]+        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Convert LV to type cache-pool.   Convert LV to type cache-pool.
-  lvconvert --type cache-pool LV_linear_striped_raid +  lvconvert --type cache-pool LV 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [ -r|--readahead auto|none|Number ] +        [ -r|--readahead auto|none|Number ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [    --cachemetadataformat auto|1|2 ] +        [    --cachemetadataformat auto|1|2 ] 
- [    --cachemode writethrough|writeback|passthrough ] +        [    --cachemode writethrough|writeback|passthrough ] 
- [    --cachepolicy String ] +        [    --cachepolicy String ] 
- [    --cachesettings String ] +        [    --cachesettings String ] 
- [    --poolmetadata LV ] +        [    --poolmetadata LV ] 
- [    --poolmetadatasize Size[m|UNIT] ] +        [    --poolmetadatasize Size[m|UNIT] ] 
- [    --poolmetadataspare y|n ] +        [    --poolmetadataspare y|n ] 
- [    --metadataprofile String ] +        [    --metadataprofile String ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Convert LV to type vdopool.   Convert LV to type vdopool.
-  lvconvert --type vdo-pool LV_linear_striped_cache_raid +  lvconvert --type vdo-pool LV 
- [ -n|--name LV_new ] +        [ -n|--name LV_new ] 
- [ -V|--virtualsize Size[m|UNIT] ] +        [ -V|--virtualsize Size[m|UNIT] ] 
- [    --compression y|n ] +        [ -r|--readahead auto|none|Number ] 
- [    --deduplication y|n ] +        [ -Z|--zero y|n ] 
- [ COMMON_OPTIONS ]+        [    --metadataprofile String ] 
 +        [    --compression y|n ] 
 +        [    --deduplication y|n ] 
 +           --vdosettings String ] 
 +        [ COMMON_OPTIONS ]
  
   Detach a cache from an LV.   Detach a cache from an LV.
-  lvconvert --splitcache LV_thinpool_cache_cachepool_vdopool_writecache +  lvconvert --splitcache LV 
- [ COMMON_OPTIONS ]+           --cachesettings String ] 
 +        [ COMMON_OPTIONS ]
  
   Merge thin LV into its origin LV.   Merge thin LV into its origin LV.
-  lvconvert --mergethin LV_thin ... +  lvconvert --mergethin LV ... 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Merge COW snapshot LV into its origin.   Merge COW snapshot LV into its origin.
-  lvconvert --mergesnapshot LV_snapshot ... +  lvconvert --mergesnapshot LV ... 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Combine a former COW snapshot (second arg) with a former    Combine a former COW snapshot (second arg) with a former 
   origin LV (first arg) to reverse a splitsnapshot command.   origin LV (first arg) to reverse a splitsnapshot command.
-  lvconvert --type snapshot LV LV_linear_striped +  lvconvert --type snapshot LV LV 
- [ -s|--snapshot ] +        [ -s|--snapshot ] 
- [ -c|--chunksize Size[k|UNIT] ] +        [ -c|--chunksize Size[k|UNIT] ] 
- [ -Z|--zero y|n ] +        [ -Z|--zero y|n ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Replace failed PVs in a raid or mirror LV.    Replace failed PVs in a raid or mirror LV. 
   Repair a thin pool.    Repair a thin pool. 
   Repair a cache pool.   Repair a cache pool.
-  lvconvert --repair LV_thinpool_cache_cachepool_mirror_raid +  lvconvert --repair LV 
- [ -i|--interval Number ] +        [ -i|--interval Number ] 
- [    --usepolicies ] +        [ -k|--setactivationskip y|n ] 
- [    --poolmetadataspare y|n ] +        [    --usepolicies ] 
- [ COMMON_OPTIONS ] +        [    --poolmetadataspare y|n ] 
- [ PV ... ]+        [ COMMON_OPTIONS ] 
 +        [ PV ... ]
  
   Replace specific PV(s) in a raid LV with another PV.   Replace specific PV(s) in a raid LV with another PV.
-  lvconvert --replace PV LV_raid +  lvconvert --replace PV LV 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Poll LV to continue conversion.   Poll LV to continue conversion.
-  lvconvert --startpoll LV_mirror_raid +  lvconvert --startpoll LV 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Add or remove data integrity checksums to raid images.   Add or remove data integrity checksums to raid images.
-  lvconvert --raidintegrity y|n LV_raid +  lvconvert --raidintegrity y|n LV 
- [    --raidintegritymode String ] +        [    --raidintegritymode String ] 
- [    --raidintegrityblocksize Number ] +        [    --raidintegrityblocksize Number ] 
- [ COMMON_OPTIONS ] +        [ COMMON_OPTIONS ] 
- [ PV ... ]+        [ PV ... ]
  
   Common options for command:   Common options for command:
- [ -b|--background ] +        [ -b|--background ] 
- [ -f|--force ] +        [ -f|--force ] 
- [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] +        [    --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ] 
- [    --noudevsync ]+        [    --noudevsync ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 2211: Ligne 2327:
  
 <code> <code>
-[root@centos8 ~]# lvs +[root@redhat9 ~]# lvs 
-  LV   VG         Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert +  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert 
-  root cl_centos8 -wi-ao----  27.79g                                                     +  root rhel -wi-ao---- <44.00g                                                     
-  swap cl_centos8 -wi-ao----   3.20g                                                     +  swap rhel -wi-ao----   5.00g                                                     
-  lv1  vg0        -wi-a----- 104.00m                                                                                                 +  lv1  vg0  -wi-a----- 104.00m                                                                                                
 </code> </code>
  
Ligne 2225: Ligne 2341:
  
 <code> <code>
-[root@centos8 ~]# vgs +[root@redhat9 ~]# vgs 
-  VG         #PV #LV #SN Attr   VSize   VFree   +  VG   #PV #LV #SN Attr   VSize   VFree   
-  cl_centos8   1     0 wz--n- <31.00g      0  +  rhel   1     0 wz--n- <49.00g      0  
-  vg0          3     0 wz--n- 880.00m 776.00m+  vg0    3     0 wz--n- 880.00m 776.00m
 </code> </code>
  
Ligne 2238: Ligne 2354:
  
 <code> <code>
-[root@centos8 ~]# pvs +[root@redhat9 ~]# pvs 
-  PV         VG         Fmt  Attr PSize   PFree   +  PV         VG   Fmt  Attr PSize   PFree   
-  /dev/sda2  cl_centos8 lvm2 a--  <31.00g      0  +  /dev/sda2  rhel lvm2 a--  <49.00g      0  
-  /dev/sdb6  vg0        lvm2 a--  192.00m  88.00m +  /dev/sdb6  vg0  lvm2 a--  192.00m  88.00m 
-  /dev/sdb7  vg0        lvm2 a--  296.00m 296.00m +  /dev/sdb7  vg0  lvm2 a--  296.00m 296.00m 
-  /dev/sdb9  vg0        lvm2 a--  392.00m 392.00m    +  /dev/sdb9  vg0  lvm2 a--  392.00m 392.00m    
 </code> </code>
  
Ligne 2255: Ligne 2371:
  
 <code> <code>
-[root@centos8 ~]# lvchange -a n /dev/vg0/lv1+[root@redhat9 ~]# lvchange -a n /dev/vg0/lv1 
 + 
 +[root@redhat9 ~]# lvs 
 +  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert 
 +  root rhel -wi-ao---- <44.00g                                                     
 +  swap rhel -wi-ao----   5.00g                                                     
 +  lv1  vg0  -wi------- 104.00m                                                    
 </code> </code>
  
Ligne 2261: Ligne 2383:
  
 <code> <code>
-[root@centos8 ~]# lvchange -a y /dev/vg0/lv1+[root@redhat9 ~]# lvchange -a y /dev/vg0/lv1 
 + 
 +[root@redhat9 ~]# lvs 
 +  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert 
 +  root rhel -wi-ao---- <44.00g                                                     
 +  swap rhel -wi-ao----   5.00g                                                     
 +  lv1  vg0  -wi-a----- 104.00m 
 </code> </code>
  
Ligne 2267: Ligne 2395:
  
 <code> <code>
-[root@centos8 ~]# lvchange --help+[root@redhat9 ~]# lvchange --help
   lvchange - Change the attributes of logical volume(s)   lvchange - Change the attributes of logical volume(s)
  
Ligne 2274: Ligne 2402:
   required, after which the others are optional.   required, after which the others are optional.
   lvchange   lvchange
- ( -C|--contiguous y|n, +        ( -C|--contiguous y|n, 
-   -p|--permission rw|r, +          -p|--permission rw|r, 
-   -r|--readahead auto|none|Number, +          -r|--readahead auto|none|Number, 
-   -k|--setactivationskip y|n, +          -k|--setactivationskip y|n, 
-   -Z|--zero y|n, +          -Z|--zero y|n, 
-   -M|--persistent n, +          -M|--persistent n, 
-      --addtag Tag, +             --addtag Tag, 
-      --deltag Tag, +             --deltag Tag, 
-      --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit, +             --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit, 
-      --compression y|n, +             --compression y|n, 
-      --deduplication y|n, +             --deduplication y|n, 
-      --detachprofile, +             --detachprofile, 
-      --metadataprofile String, +             --metadataprofile String, 
-      --profile String, +             --profile String, 
-      --errorwhenfull y|n, +             --setautoactivation y|n, 
-      --discards passdown|nopassdown|ignore, +             --errorwhenfull y|n, 
-      --cachemode writethrough|writeback|passthrough, +             --discards passdown|nopassdown|ignore, 
-      --cachepolicy String, +             --cachemode writethrough|writeback|passthrough, 
-      --cachesettings String, +             --cachepolicy String, 
-      --minrecoveryrate Size[k|UNIT], +             --cachesettings String, 
-      --maxrecoveryrate Size[k|UNIT], +             --minrecoveryrate Size[k|UNIT], 
-      --writebehind Number, +             --maxrecoveryrate Size[k|UNIT], 
-      --writemostly PV[:t|n|y] ) +             --vdosettings String, 
-  VG|LV|Tag|Select ... +             --writebehind Number, 
- [ -a|--activate y|n|ay ] +             --writemostly PV[:t|n|y] ) 
- [    --poll y|n ] +         VG|LV|Tag|Select ... 
- [    --monitor y|n ] +        [ -a|--activate y|n|ay ] 
- [ COMMON_OPTIONS ]+        [    --poll y|n ] 
 +        [    --monitor y|n ] 
 +        [ COMMON_OPTIONS ]
  
   Resyncronize a mirror or raid LV.    Resyncronize a mirror or raid LV. 
   Use to reset 'R' attribute on a not initially synchronized LV.   Use to reset 'R' attribute on a not initially synchronized LV.
-  lvchange --resync VG|LV_mirror_raid|Tag|Select ... +  lvchange --resync VG|LV|Tag|Select ... 
- [ -a|--activate y|n|ay ] +        [ -a|--activate y|n|ay ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Resynchronize or check a raid LV.   Resynchronize or check a raid LV.
-  lvchange --syncaction check|repair VG|LV_raid|Tag|Select ... +  lvchange --syncaction check|repair VG|LV|Tag|Select ... 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Reconstruct data on specific PVs of a raid LV.   Reconstruct data on specific PVs of a raid LV.
-  lvchange --rebuild PV VG|LV_raid|Tag|Select ... +  lvchange --rebuild PV VG|LV|Tag|Select ... 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Activate or deactivate an LV.   Activate or deactivate an LV.
   lvchange -a|--activate y|n|ay VG|LV|Tag|Select ...   lvchange -a|--activate y|n|ay VG|LV|Tag|Select ...
- [ -P|--partial ] +        [ -P|--partial ] 
- [ -K|--ignoreactivationskip ] +        [ -K|--ignoreactivationskip ] 
- [    --activationmode partial|degraded|complete ] +        [    --activationmode partial|degraded|complete ] 
- [    --poll y|n ] +        [    --poll y|n ] 
- [    --monitor y|n ] +        [    --monitor y|n ] 
- [    --ignorelockingfailure ] +        [    --ignorelockingfailure ] 
- [    --sysinit ] +        [    --sysinit ] 
- [    --readonly ] +        [    --readonly ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Reactivate an LV using the latest metadata.   Reactivate an LV using the latest metadata.
   lvchange --refresh VG|LV|Tag|Select ...   lvchange --refresh VG|LV|Tag|Select ...
- [ -P|--partial ] +        [ -P|--partial ] 
- [    --activationmode partial|degraded|complete ] +        [    --activationmode partial|degraded|complete ] 
- [    --poll y|n ] +        [    --poll y|n ] 
- [    --monitor y|n ] +        [    --monitor y|n ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Start or stop monitoring an LV from dmeventd.   Start or stop monitoring an LV from dmeventd.
   lvchange --monitor y|n VG|LV|Tag|Select ...   lvchange --monitor y|n VG|LV|Tag|Select ...
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Start or stop processing an LV conversion.   Start or stop processing an LV conversion.
   lvchange --poll y|n VG|LV|Tag|Select ...   lvchange --poll y|n VG|LV|Tag|Select ...
- [    --monitor y|n ] +        [    --monitor y|n ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Make the minor device number persistent for an LV.   Make the minor device number persistent for an LV.
   lvchange -M|--persistent y --minor Number LV   lvchange -M|--persistent y --minor Number LV
- [ -j|--major Number ] +        [ -j|--major Number ] 
- [ -a|--activate y|n|ay ] +        [ -a|--activate y|n|ay ] 
- [    --poll y|n ] +        [    --poll y|n ] 
- [    --monitor y|n ] +        [    --monitor y|n ] 
- [ COMMON_OPTIONS ]+        [ COMMON_OPTIONS ]
  
   Common options for command:   Common options for command:
- [ -A|--autobackup y|n ] +        [ -A|--autobackup y|n ] 
- [ -f|--force ] +        [ -f|--force ] 
- [ -S|--select String ] +        [ -S|--select String ] 
- [    --ignoremonitoring ] +        [    --ignoremonitoring ] 
- [    --noudevsync ] +        [    --noudevsync ] 
- [    --reportformat basic|json ]+        [    --reportformat basic|json|json_std ]
  
   Common options for lvm:   Common options for lvm:
- [ -d|--debug ] +        [ -d|--debug ] 
- [ -h|--help ] +        [ -h|--help ] 
- [ -q|--quiet ] +        [ -q|--quiet ] 
- [ -v|--verbose ] +        [ -v|--verbose ] 
- [ -y|--yes ] +        [ -y|--yes ] 
- [ -t|--test ] +        [ -t|--test ] 
- [    --commandprofile String ] +        [    --commandprofile String ] 
- [    --config String ] +        [    --config String ] 
- [    --driverloaded y|n ] +        [    --driverloaded y|n ] 
- [    --nolocking ] +        [    --nolocking ] 
- [    --lockopt String ] +        [    --lockopt String ] 
- [    --longhelp ] +        [    --longhelp ] 
- [    --profile String ] +        [    --profile String ] 
- [    --version ]+        [    --version 
 +        [    --devicesfile String ] 
 +        [    --devices PV ] 
 +        [    --nohints ] 
 +        [    --journal String ]
  
   Use --longhelp to show all options and advanced commands.   Use --longhelp to show all options and advanced commands.
Ligne 2391: Ligne 2525:
  
 <code> <code>
-[root@centos8 ~]# lvcreate -i2 -I64 -n lv2 -L 100M vg0 /dev/sdb7 /dev/sdb9+[root@redhat9 ~]# lvcreate -i2 -I64 -n lv2 -L 100M vg0 /dev/sdb7 /dev/sdb9
   Rounding up size to full physical extent 104.00 MiB   Rounding up size to full physical extent 104.00 MiB
-  Rounding size 104.00 MiB (13 extents) up to stripe boundary size 112.00 MiB(14 extents).+  Rounding size 104.00 MiB (13 extents) up to stripe boundary size 112.00 MiB (14 extents).
   Logical volume "lv2" created.   Logical volume "lv2" created.
 </code> </code>
Ligne 2400: Ligne 2534:
  
 <code> <code>
-[root@centos8 ~]# lvdisplay -m /dev/vg0/lv2+[root@redhat9 ~]# lvdisplay -m /dev/vg0/lv2
   --- Logical volume ---   --- Logical volume ---
   LV Path                /dev/vg0/lv2   LV Path                /dev/vg0/lv2
   LV Name                lv2   LV Name                lv2
   VG Name                vg0   VG Name                vg0
-  LV UUID                MmXbPt-ZF8u-rnIv-3YU9-m64J-RCz2-6NzAuG+  LV UUID                rgVJEa-mbyk-nQhm-rLt0-EqPB-QyI3-zyG2qX
   LV Write Access        read/write   LV Write Access        read/write
-  LV Creation host, time centos8.ittraining.loc, 2021-06-02 07:47:38 -0400+  LV Creation host, time redhat9.ittraining.loc, 2024-10-23 15:49:12 +0200
   LV Status              available   LV Status              available
   # open                 0   # open                 0
Ligne 2415: Ligne 2549:
   Allocation             inherit   Allocation             inherit
   Read ahead sectors     auto   Read ahead sectors     auto
-  - currently set to     8192 +  - currently set to     512 
-  Block device           253:1+  Block device           253:3
        
   --- Segments ---   --- Segments ---
   Logical extents 0 to 13:   Logical extents 0 to 13:
-    Type striped +    Type                striped 
-    Stripes +    Stripes             
-    Stripe size 64.00 KiB+    Stripe size         64.00 KiB
     Stripe 0:     Stripe 0:
-      Physical volume /dev/sdb7 +      Physical volume   /dev/sdb7 
-      Physical extents 0 to 6+      Physical extents  0 to 6
     Stripe 1:     Stripe 1:
-      Physical volume /dev/sdb9 +      Physical volume   /dev/sdb9 
-      Physical extents 0 to 6 +      Physical extents  0 to 6
 </code> </code>
  
Ligne 2435: Ligne 2568:
  
 <code> <code>
-[root@centos8 ~]# lvs -o +devices +[root@redhat9 ~]# lvs -o +devices 
-  LV   VG         Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                   +  LV   VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                   
-  root cl_centos8 -wi-ao----  27.79g                                                     /dev/sda2(820           +  root rhel -wi-ao---- <44.00g                                                     /dev/sda2(1280          
-  swap cl_centos8 -wi-ao----   3.20g                                                     /dev/sda2(0)              +  swap rhel -wi-ao----   5.00g                                                     /dev/sda2(0)              
-  lv1  vg0        -wi-a----- 104.00m                                                     /dev/sdb6(1)              +  lv1  vg0  -wi-a----- 104.00m                                                     /dev/sdb6(1)              
-  lv2  vg0        -wi-a----- 112.00m                                                     /dev/sdb7(0),/dev/sdb9(0)+  lv2  vg0  -wi-a----- 112.00m                                                     /dev/sdb7(0),/dev/sdb9(0)
 </code> </code>
  
Ligne 2448: Ligne 2581:
  
 <code> <code>
-[root@centos8 ~]# cat /etc/lvm/backup/vg0 +[root@redhat9 ~]# cat /etc/lvm/backup/vg0 
-# Generated by LVM2 version 2.03.09(2)-RHEL8 (2020-05-28): Wed Jun  2 07:47:38 2021+# Generated by LVM2 version 2.03.23(2) (2023-11-21): Wed Oct 23 15:49:12 2024
  
 contents = "Text Format Volume Group" contents = "Text Format Volume Group"
Ligne 2456: Ligne 2589:
 description = "Created *after* executing 'lvcreate -i2 -I64 -n lv2 -L 100M vg0 /dev/sdb7 /dev/sdb9'" description = "Created *after* executing 'lvcreate -i2 -I64 -n lv2 -L 100M vg0 /dev/sdb7 /dev/sdb9'"
  
-creation_host = "centos8.ittraining.loc" # Linux centos8.ittraining.loc 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 +creation_host = "redhat9.ittraining.loc"        # Linux redhat9.ittraining.loc 5.14.0-427.37.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 13 12:41:50 EDT 2024 x86_64 
-creation_time = 1622634458 # Wed Jun  2 07:47:38 2021+creation_time = 1729691352      # Wed Oct 23 15:49:12 2024
  
 vg0 { vg0 {
- id = "TDXUip-c3yg-J83l-Z30x-zcsJ-Rbvl-gjFvfd+        id = "akzcF6-eQ28-j9Xa-Cuiq-KioO-dAKJ-GEK034
- seqno = 11 +        seqno = 11 
- format = "lvm2" # informational +        format = "lvm2"                 # informational 
- status = ["RESIZEABLE", "READ", "WRITE"+        status = ["RESIZEABLE", "READ", "WRITE"
- flags = [] +        flags = [] 
- extent_size = 16384 # 8 Megabytes +        extent_size = 16384             # 8 Megabytes 
- max_lv = 0 +        max_lv = 0 
- max_pv = 0 +        max_pv = 0 
- metadata_copies = 0+        metadata_copies = 0
  
- physical_volumes {+        physical_volumes {
  
- pv0 { +                pv0 { 
- id = "lxuKRI-l3Dd-jhsv-OWtw-au2c-0ti0-XGnt1E+                        id = "TnqoyD-LQvR-pHro-wlud-vVUq-Kime-xuVTJD
- device = "/dev/sdb6" # Hint only+                        device = "/dev/sdb6"    # Hint only
  
- status = ["ALLOCATABLE"+                        device_id_type = "sys_wwid" 
- flags = [] +                        device_id = "t10.ATA_QEMU_HARDDISK_QM00005" 
- dev_size = 409600 # 200 Megabytes +                        status = ["ALLOCATABLE"
- pe_start = 2048 +                        flags = [] 
- pe_count = 24 # 192 Megabytes +                        dev_size = 409600       # 200 Megabytes 
- }+                        pe_start = 2048 
 +                        pe_count = 24   # 192 Megabytes 
 +                }
  
- pv1 { +                pv1 { 
- id = "QDmfcX-Pv8o-hapq-TJOI-RaPH-qecT-VUMY4v+                        id = "eff83E-hlnA-FWdf-VQzX-c3dP-dsDf-3dvhik
- device = "/dev/sdb7" # Hint only+                        device = "/dev/sdb7"    # Hint only
  
- status = ["ALLOCATABLE"+                        device_id_type = "sys_wwid" 
- flags = [] +                        device_id = "t10.ATA_QEMU_HARDDISK_QM00005" 
- dev_size = 614400 # 300 Megabytes +                        status = ["ALLOCATABLE"
- pe_start = 2048 +                        flags = [] 
- pe_count = 37 # 296 Megabytes +                        dev_size = 614400       # 300 Megabytes 
- }+                        pe_start = 2048 
 +                        pe_count = 37   # 296 Megabytes 
 +                }
  
- pv2 { +                pv2 { 
- id = "ZTQV1b-Ha76-BQtB-zJEU-kfyK-ausJ-CxnRwg+                        id = "UhD7RK-T8QS-nUAV-Sh0X-4JXp-Cbju-f8o2yC
- device = "/dev/sdb9" # Hint only+                        device = "/dev/sdb9"    # Hint only
  
- status = ["ALLOCATABLE"+                        device_id_type = "sys_wwid" 
- flags = [] +                        device_id = "t10.ATA_QEMU_HARDDISK_QM00005" 
- dev_size = 819200 # 400 Megabytes +                        status = ["ALLOCATABLE"
- pe_start = 2048 +                        flags = [] 
- pe_count = 49 # 392 Megabytes +                        dev_size = 819200       # 400 Megabytes 
- +                        pe_start = 2048 
- }+                        pe_count = 49   # 392 Megabytes 
 +                
 +        }
  
- logical_volumes {+        logical_volumes {
  
- lv1 { +                lv1 { 
- id = "lJQQWs-n05T-pxzi-Zq2R-UzRI-kYZf-hsNPYQ+                        id = "L7FOYB-c0tG-dE1u-Oyod-LltI-PEcv-rebeIa
- status = ["READ", "WRITE", "VISIBLE"+                        status = ["READ", "WRITE", "VISIBLE"
- flags = [] +                        flags = [] 
- creation_time = 1622633848 2021-06-02 07:37:28 -0400 +                        creation_time = 1729690954      2024-10-23 15:42:34 +0200 
- creation_host = "centos8.ittraining.loc" +                        creation_host = "redhat9.ittraining.loc" 
- segment_count = 1+                        segment_count = 1
  
- segment1 { +                        segment1 { 
- start_extent = 0 +                                start_extent = 0 
- extent_count = 13 # 104 Megabytes+                                extent_count = 13       # 104 Megabytes
  
- type = "striped" +                                type = "striped" 
- stripe_count = 1 # linear+                                stripe_count = 1        # linear
  
- stripes = [ +                                stripes = [ 
- "pv0",+                                        "pv0",
- +                                
- +                        
- }+                }
  
- lv2 { +                lv2 { 
- id = "MmXbPt-ZF8u-rnIv-3YU9-m64J-RCz2-6NzAuG+                        id = "rgVJEa-mbyk-nQhm-rLt0-EqPB-QyI3-zyG2qX
- status = ["READ", "WRITE", "VISIBLE"+                        status = ["READ", "WRITE", "VISIBLE"
- flags = [] +                        flags = [] 
- creation_time = 1622634458 2021-06-02 07:47:38 -0400 +                        creation_time = 1729691352      2024-10-23 15:49:12 +0200 
- creation_host = "centos8.ittraining.loc" +                        creation_host = "redhat9.ittraining.loc" 
- segment_count = 1+                        segment_count = 1
  
- segment1 { +                        segment1 { 
- start_extent = 0 +                                start_extent = 0 
- extent_count = 14 # 112 Megabytes+                                extent_count = 14       # 112 Megabytes
  
- type = "striped" +                                type = "striped" 
- stripe_count = 2 +                                stripe_count = 2 
- stripe_size = 128 # 64 Kilobytes+                                stripe_size = 128       # 64 Kilobytes
  
- stripes = [ +                                stripes = [ 
- "pv1", 0, +                                        "pv1", 0, 
- "pv2",+                                        "pv2",
- +                                
- +                        
- +                
- }+        }
  
 } }
Ligne 2559: Ligne 2698:
  
 <code> <code>
-[root@centos8 ~]# ls /etc/lvm/archive/ +[root@redhat9 ~]# ls /etc/lvm/archive/ 
-vg0_00000-427117660.vg   vg0_00002-2064899457.vg  vg0_00004-5061041.vg    vg0_00006-1956284179.vg  vg0_00008-708301076.vg   vg0_00010-1200598227.vg  vg0_00012-854342401.vg +rhel_00000-628100095.vg  vg0_00001-944764243.vg  vg0_00003-1616314336.vg  vg0_00005-1097824442.vg  vg0_00007-341212008.vg  vg0_00009-689917891.vg   vg0_00011-1035270871.vg 
-vg0_00001-1993147316.vg  vg0_00003-1757437978.vg  vg0_00005-116946854.vg  vg0_00007-1006758937.vg  vg0_00009-1054420117.vg  vg0_00011-973084311.vg+vg0_00000-565701167.vg   vg0_00002-556906173.vg  vg0_00004-1230709712.vg  vg0_00006-1896107975.vg  vg0_00008-439634752.vg  vg0_00010-1717657247.vg  vg0_00012-219256591.vg
 </code> </code>
  
Ligne 2569: Ligne 2708:
  
 <code> <code>
-[root@centos8 ~]# vgcfgbackup vg0+[root@redhat9 ~]# vgcfgbackup vg0
   Volume group "vg0" successfully backed up.   Volume group "vg0" successfully backed up.
 </code> </code>
Ligne 2576: Ligne 2715:
  
 <code> <code>
-[root@centos8 ~]# vgcfgbackup -f /tmp/vg0_backup vg0+[root@redhat9 ~]# vgcfgbackup -f /tmp/vg0_backup vg0
   Volume group "vg0" successfully backed up.   Volume group "vg0" successfully backed up.
 </code> </code>
Ligne 2583: Ligne 2722:
  
 <code> <code>
-[root@centos8 ~]# vgcfgrestore --list vg0+[root@redhat9 ~]# vgcfgbackup vg0 
 +  Volume group "vg0" successfully backed up. 
 +[root@redhat9 ~]# vgcfgrestore --list vg0
        
-  File: /etc/lvm/archive/vg0_00000-427117660.vg +  File:         /etc/lvm/archive/vg0_00000-565701167.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'vgcreate -s 8M vg0 /dev/sdb6 /dev/sdb7 /dev/sdb9+  Description:  Created *before* executing 'lvcreate -L 350 -n lv0 vg0' 
-  Backup Time: Wed May 26 10:43:14 2021+  Backup Time:  Wed Oct 23 15:19:32 2024
  
        
-  File: /etc/lvm/archive/vg0_00001-1993147316.vg +  File:         /etc/lvm/archive/vg0_00001-944764243.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvcreate -L 350 -n lv0 vg0' +  Description:  Created *before* executing 'lvextend -L +100M /dev/vg0/lv0
-  Backup Time: Wed May 26 16:56:31 2021+  Backup Time:  Wed Oct 23 15:24:34 2024
  
        
-  File: /etc/lvm/archive/vg0_00002-2064899457.vg +  File:         /etc/lvm/archive/vg0_00002-556906173.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvextend -L +100M /dev/vg0/lv0' +  Description:  Created *before* executing 'lvcreate -s -L 5M -n testsnap /dev/vg0/lv0' 
-  Backup Time: Wed May 26 22:12:15 2021+  Backup Time:  Wed Oct 23 15:28:18 2024
  
        
-  File: /etc/lvm/archive/vg0_00003-1757437978.vg +  File:         /etc/lvm/archive/vg0_00003-1616314336.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvcreate -s -L 13M -n testsnap /dev/vg0/lv0' +  Description:  Created *before* executing 'lvcreate -s -L 5M -n testsnap /dev/vg0/lv0' 
-  Backup Time: Wed May 26 22:19:25 2021+  Backup Time:  Wed Oct 23 15:28:18 2024
  
        
-  File: /etc/lvm/archive/vg0_00004-5061041.vg +  File:         /etc/lvm/archive/vg0_00004-1230709712.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvremove /dev/vg0/testsnap' +  Description:  Created *before* executing 'lvremove /dev/vg0/testsnap' 
-  Backup Time: Wed May 26 22:38:37 2021+  Backup Time:  Wed Oct 23 15:33:25 2024
  
        
-  File: /etc/lvm/archive/vg0_00005-116946854.vg +  File:         /etc/lvm/archive/vg0_00005-1097824442.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvremove /dev/vg0/lv0+  Description:  Created *before* executing 'lvremove /dev/vg0/testsnap
-  Backup Time: Wed May 26 22:42:18 2021+  Backup Time:  Wed Oct 23 15:33:25 2024
  
        
-  File: /etc/lvm/archive/vg0_00006-1956284179.vg +  File:         /etc/lvm/archive/vg0_00006-1896107975.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'vgremove vg0' +  Description:  Created *before* executing 'lvremove /dev/vg0/lv0
-  Backup Time: Wed May 26 22:43:49 2021+  Backup Time:  Wed Oct 23 15:33:54 2024
  
        
-  File: /etc/lvm/archive/vg0_00007-1006758937.vg +  File:         /etc/lvm/archive/vg0_00007-341212008.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'vgcreate -s 8M vg0 /dev/sdb6 /dev/sdb7 /dev/sdb9+  Description:  Created *before* executing 'lvcreate -m 1 -L 100M -n lv1 vg0' 
-  Backup Time: Wed Jun  2 07:37:07 2021+  Backup Time:  Wed Oct 23 15:42:34 2024
  
        
-  File: /etc/lvm/archive/vg0_00008-708301076.vg +  File:         /etc/lvm/archive/vg0_00008-439634752.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvcreate -m 1 -L 100M -n lv1 vg0' +  Description:  Created *before* executing 'lvcreate -m 1 -L 100M -n lv1 vg0' 
-  Backup Time: Wed Jun  2 07:37:28 2021+  Backup Time:  Wed Oct 23 15:42:34 2024
  
        
-  File: /etc/lvm/archive/vg0_00009-1054420117.vg +  File:         /etc/lvm/archive/vg0_00009-689917891.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7' +  Description:  Created *before* executing 'lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7' 
-  Backup Time: Wed Jun  2 07:41:04 2021+  Backup Time:  Wed Oct 23 15:44:01 2024
  
        
-  File: /etc/lvm/archive/vg0_00010-1200598227.vg +  File:         /etc/lvm/archive/vg0_00010-1717657247.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvconvert -m 1 /dev/vg0/lv1' +  Description:  Created *before* executing 'lvconvert -m 1 /dev/vg0/lv1' 
-  Backup Time: Wed Jun  2 07:41:53 2021+  Backup Time:  Wed Oct 23 15:44:22 2024
  
        
-  File: /etc/lvm/archive/vg0_00011-973084311.vg +  File:         /etc/lvm/archive/vg0_00011-1035270871.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7' +  Description:  Created *before* executing 'lvconvert -m 0 /dev/vg0/lv1 /dev/sdb7' 
-  Backup Time: Wed Jun  2 07:42:23 2021+  Backup Time:  Wed Oct 23 15:44:39 2024
  
        
-  File: /etc/lvm/archive/vg0_00012-854342401.vg +  File:         /etc/lvm/archive/vg0_00012-219256591.vg 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *before* executing 'lvcreate -i2 -I64 -n lv2 -L 100M vg0 /dev/sdb7 /dev/sdb9' +  Description:  Created *before* executing 'lvcreate -i2 -I64 -n lv2 -L 100M vg0 /dev/sdb7 /dev/sdb9' 
-  Backup Time: Wed Jun  2 07:47:38 2021+  Backup Time:  Wed Oct 23 15:49:12 2024
  
        
-  File: /etc/lvm/backup/vg0 +  File:         /etc/lvm/backup/vg0 
-  VG name:     vg0 +  VG name:      vg0 
-  Description: Created *after* executing 'vgcfgbackup vg0' +  Description:  Created *after* executing 'vgcfgbackup vg0' 
-  Backup Time: Wed Jun  07:50:57 2021+  Backup Time:  Wed Oct 23 15:53:54 2024 
 +</code> 
 + 
 +=====RAID Logiciel===== 
 + 
 +=====Concepts RAID===== 
 + 
 +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. 
 + 
 +Les solutions RAID sont issues du travail fourni par l'université de Berkeley en Californie sur un projet de tolérances de pannes. Les systèmes RAID offre maintenant plusieurs avantages : 
 + 
 +    * Addition des capacités, 
 +    * Amélioration des performances, 
 +    * Apporter la tolérance de panne. 
 + 
 +Deux concepts sont fondamentaux à la compréhension des solutions RAID. 
 + 
 +====Disques en miroir==== 
 + 
 +La technique des disques en miroir consiste à dupliquer l'écriture des données sur plusieurs disques. Le miroir peut être géré par un logiciel ou par du matériel. 
 + 
 +====Bandes de données==== 
 + 
 +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 physiques. L'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. 
 + 
 +=====Types de RAID===== 
 + 
 +====RAID 0 - Concaténation==== 
 + 
 +Création de volume par récupération de l'espace libre sur un ou plusieurs disques. Le principe de la concaténation est la création d'un volume à bandes où chaque bande est une tranche. 
 + 
 +{{:linux:raid0c.gif|}} 
 + 
 +===Avantages=== 
 + 
 +  * Récupération de l'espace disque. 
 + 
 +===Inconvénients=== 
 + 
 +  * Pas de protection des données, 
 +  * Pas d'augmentation des performances d'E/S. 
 + 
 +====RAID 0 - Striping==== 
 + 
 +Création de volume sur plusieurs disques afin d'augmenter les performances d'E/S. Le principe du striping est la création d'un volume à bandes réparties sur plusieurs tranches. La 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. 
 + 
 +{{:linux:raid0s.gif|}} 
 + 
 +===Avantages=== 
 + 
 +  * Augmentation des performances d'E/S par écriture en parallèle sur les disques. 
 + 
 +===Inconvénients=== 
 + 
 +  * Pas de protection des données. 
 + 
 +====RAID 1 - Miroir==== 
 + 
 +Création d'un volume où les disques sont en miroir. Quand les deux disques sont connectés à des contrôleurs de disques différents, on parle de //duplexing//
 + 
 +{{:linux:raid1m.gif|}} 
 + 
 +===Avantages=== 
 + 
 +  * Protection des données contre une défaillance d'un disque. 
 + 
 +===Inconvénients=== 
 + 
 +  * Coûteux à cause de l'augmentation du nombre de disques. 
 + 
 +====RAID 1+0 - Striping en Miroir==== 
 + 
 +Le RAID 1+0 ou encore 0+1 est une technique qui réunit le RAID 0 et le RAID 1. On l'appelle aussi un RAID **exotique**: 
 + 
 +{{:linux:raid10.gif|}} 
 + 
 +===Avantages=== 
 + 
 +  * Protection des données contre une défaillance d'un disque. 
 +  * Augmentation des performances d'E/S par écriture en parallèle sur les disques. 
 + 
 +===Inconvénients=== 
 + 
 +  * Coûteux à cause de l'augmentation du nombre de disques. 
 + 
 +====RAID - Miroir avec Contrôle d'Erreurs==== 
 + 
 +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 3, 4 et 5. 
 + 
 +====RAID 3 et 4 - Striping avec Parité==== 
 + 
 +Les RAID 3 et 4 sont des technologies avec bandes de parité distribuées sur un seul disque : 
 + 
 +{{:linux:raid34.gif|}} 
 + 
 +En RAID 3, la taille des segments n’est pas modifiable et est fixée à 512 octets (en RAID 3 : un segment = un secteur de disque dur = 512 octets). 
 + 
 +En RAID 4, la 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.  
 + 
 +===Avantages=== 
 + 
 +  * Protection des données contre une défaillance d'un disque. 
 + 
 +===Inconvénients=== 
 + 
 +  * Création d'un goulot d'étranglement des données à cause de l'écriture des données de parité sur un seul disque. 
 + 
 +====RAID 5 - Striping avec Parité Distribuée==== 
 + 
 +Le RAID 5 est une technologie avec bandes de parité distribuées sur plusieurs disques : 
 + 
 +{{:linux:raid5.gif|}} 
 + 
 +===Avantages=== 
 + 
 +  * Protection des données contre une défaillance d'un disque, 
 +  * Evite le goulot d'étranglement d'un seul disque de parité. 
 + 
 +===Inconvénients=== 
 + 
 +  * Lecture moins performante qu'avec RAID 3 et 4. 
 + 
 +====Au délà de RAID 5==== 
 + 
 +Il existe aussi deux autres technologies RAID, toute deux issues de la technologie RAID 5 : 
 + 
 +  * RAID 6 
 +    * //Disk Striping with Double Distributed Parity// 
 +  * RAID TP 
 +    * //Disk Striping with Triple Distributed Parity// 
 + 
 +====LAB #11 - Mise en Place du RAID 5 Logiciel==== 
 + 
 +===11.1 - Préparer le disque=== 
 + 
 +Rappelez-vous avoir modifié les types de 4 partitions du disque **/dev/sdb** en **fd** : 
 + 
 +<code> 
 +[root@redhat9 ~]# fdisk -l 
 +Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors 
 +Disk model: QEMU HARDDISK    
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 +Disklabel type: dos 
 +Disk identifier: 0xd00dfc8a 
 + 
 +Device     Boot   Start       End   Sectors Size Id Type 
 +/dev/sda1  *       2048   2099199   2097152   1G 83 Linux 
 +/dev/sda2       2099200 104857599 102758400  49G 8e Linux LVM 
 + 
 + 
 +Disk /dev/sdb: 32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK    
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 +Disklabel type: dos 
 +Disk identifier: 0x23a56c2e 
 + 
 +Device     Boot   Start      End  Sectors  Size Id Type 
 +/dev/sdb1          2048   206847   204800  100M 83 Linux 
 +/dev/sdb2        206848   411647   204800  100M 83 Linux 
 +/dev/sdb3        411648   616447   204800  100M 83 Linux 
 +/dev/sdb4        616448 67108863 66492416 31.7G  5 Extended 
 +/dev/sdb5        618496  1642495  1024000  500M fd Linux raid autodetect 
 +/dev/sdb6       1644544  2054143   409600  200M 8e Linux LVM 
 +/dev/sdb7       2056192  2670591   614400  300M 8e Linux LVM 
 +/dev/sdb8       2672640  3696639  1024000  500M fd Linux raid autodetect 
 +/dev/sdb9       3698688  4517887   819200  400M 8e Linux LVM 
 +/dev/sdb10      4519936  5543935  1024000  500M fd Linux raid autodetect 
 +/dev/sdb11      5545984  6569983  1024000  500M fd Linux raid autodetect 
 +/dev/sdb12      6572032  6981631   409600  200M 83 Linux 
 + 
 +Disk /dev/sdc: 6 GiB, 6442450944 bytes, 12582912 sectors 
 +Disk model: QEMU HARDDISK    
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 + 
 + 
 +Disk /dev/sdd: 6 GiB, 6442450944 bytes, 12582912 sectors 
 +Disk model: QEMU HARDDISK    
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 + 
 + 
 +Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK    
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 + 
 + 
 +Disk /dev/mapper/rhel-root: 44 GiB, 47240445952 bytes, 92266496 sectors 
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 + 
 + 
 +Disk /dev/mapper/rhel-swap: 5 GiB, 5368709120 bytes, 10485760 sectors 
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 + 
 + 
 +Disk /dev/mapper/vg0-lv1: 104 MiB, 109051904 bytes, 212992 sectors 
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 512 bytes / 512 bytes 
 + 
 + 
 +Disk /dev/mapper/vg0-lv2: 112 MiB, 117440512 bytes, 229376 sectors 
 +Units: sectors of 1 * 512 = 512 bytes 
 +Sector size (logical/physical): 512 bytes / 512 bytes 
 +I/O size (minimum/optimal): 65536 bytes / 131072 bytes 
 +</code> 
 + 
 +Dans le cas de cet exemple les quatre partitions concernées par la mise en place d'un RAID 5 sont : 
 + 
 +<file> 
 +/dev/sdb5        618496  1642495  1024000  500M fd Linux raid autodetect 
 +/dev/sdb8       2672640  3696639  1024000  500M fd Linux raid autodetect 
 +/dev/sdb10      4519936  5543935  1024000  500M fd Linux raid autodetect 
 +/dev/sdb11      5545984  6569983  1024000  500M fd Linux raid autodetect 
 +</file> 
 + 
 +===11.2 - Créer une Unité RAID=== 
 + 
 +La création d'une unité RAID avec la commande **mdadm** se fait grâce aux options passées en arguments à la commande : 
 + 
 +<code> 
 +mdadm --create <unité RAID> [options] <unités physiques> 
 +</code> 
 + 
 +Saisissez maintenant la commande suivante : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --create /dev/md1 --level=5 --raid-devices=3 /dev/sdb5 /dev/sdb8 /dev/sdb10 
 +mdadm: Defaulting to version 1.2 metadata 
 +mdadm: array /dev/md1 started. 
 +</code> 
 + 
 +Les options dans la ligne de commande sont : 
 + 
 +^ Option Courte ^ Option Longue ^ Description ^ 
 +| -l | - -level | Le niveau RAID - **linear, 0,1,2,4 ou 5** | 
 +| -n | - -raid-devices=<nombre> | Le nombre de périphériques actifs dans le RAID | 
 + 
 +Les options de la commande **mdadm** sont : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --help-options 
 +Any parameter that does not start with '-' is treated as a device name 
 +or, for --examine-bitmap, a file name. 
 +The first such name is often the name of an md device.  Subsequent 
 +names are often names of component devices. 
 + 
 +Some common options are: 
 +  --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 
 +  --build       -B   : Build an array without metadata 
 +  --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 (follow) some 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> 
 + 
 +La commande **mdadm** utilise des sous-commandes ou //mode majeurs// : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --help 
 +mdadm is used for building, managing, and monitoring 
 +Linux md devices (aka RAID arrays) 
 +Usage: mdadm --create device options... 
 +            Create a new array from unused devices. 
 +       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 a 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 
 +or, for --examine-bitmap, a 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 
 + e.g. 
 +         mdadm --assemble --help 
 + For general help on options use 
 +         mdadm --help-options 
 +</code> 
 + 
 +Chaque sous-commande bénéficie d'un aide spécifique, par exemple : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --create --help 
 +Usage:  mdadm --create device --chunk=X --level=Y --raid-devices=Z devices 
 + 
 + This usage will initialise a new md array, associate some 
 + devices with it, and activate the array.   In order to create an 
 + array with some devices missing, use the special word 'missing' in 
 + place of the relevant device name. 
 + 
 + Before devices are added, they are checked to see if they already contain 
 + raid superblocks or filesystems.  They are also checked to see if 
 + the variance in device size exceeds 1%. 
 + If any discrepancy is found, the user will be prompted for confirmation 
 + before the array is created.  The presence of a '--run' can override this 
 + caution. 
 + 
 + If the --size option is given then only that many kilobytes of each 
 + device is used, no matter how big each device is. 
 + If no --size is given, the apparent size of the smallest drive given 
 + is used for raid level 1 and greater, and the full device is used for 
 + other levels. 
 + 
 + Options that are valid with --create (-C) are: 
 +  --bitmap=          -b : Create a bitmap for the array with the given filename 
 +                        : or an internal bitmap if 'internal' is given 
 +  --chunk=           -c : chunk size in kibibytes 
 +  --rounding=           : rounding factor for linear array (==chunk size) 
 +  --level=           -l : raid level: 0,1,4,5,6,10,linear,multipath and synonyms 
 +  --parity=          -p : raid5/6 parity algorithm: {left,right}-{,a}symmetric 
 +  --layout=             : same as --parity, for RAID10: [fno]NN  
 +  --raid-devices=    -n : number of active devices in array 
 +  --spare-devices=   -x : number of spare (eXtra) devices in initial array 
 +  --size=            -z : Size (in K) of each drive in RAID1/4/5/6/10 - optional 
 +  --data-offset=        : Space to leave between start of device and start 
 +                        : of array data. 
 +  --force            -f : Honour devices as listed on command line.  Don'
 +                        : insert a missing drive for RAID5. 
 +  --run              -R : insist of running the array even if not all 
 +                        : devices are present or some look odd. 
 +  --readonly         -o : start the array readonly - not supported yet. 
 +  --name=            -N : Textual name for array - max 32 characters 
 +  --bitmap-chunk=       : bitmap chunksize in Kilobytes. 
 +  --delay=           -d : bitmap update delay in seconds. 
 +  --write-journal=      : Specify journal device for RAID-4/5/6 array 
 +  --consistency-policy= : Specify the policy that determines how the array 
 +                     -k : maintains consistency in case of unexpected shutdown. 
 +  --write-zeroes        : Write zeroes to the disks before creating. This will bypass initial sync. 
 +</code> 
 + 
 +Les //modes majeurs// de la commande **mdadm** peuvent être visualisés grâce à la commande suivante : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --help 
 +mdadm is used for building, managing, and monitoring 
 +Linux md devices (aka RAID arrays) 
 +Usage: mdadm --create device options... 
 +            Create a new array from unused devices. 
 +       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 a 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 
 +or, for --examine-bitmap, a 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 
 + e.g. 
 +         mdadm --assemble --help 
 + For general help on options use 
 +         mdadm --help-options 
 +</code> 
 + 
 +Constatez maintenant les informations concernant le RAID 5 créé : 
 + 
 +<code> 
 +[root@redhat9 ~]# cat /proc/mdstat 
 +Personalities : [raid6] [raid5] [raid4] [raid1]  
 +md1 : active raid5 sdb10[3] sdb8[1] sdb5[0] 
 +      1019904 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU] 
 +       
 +unused devices: <none> 
 +</code> 
 + 
 +Grâce à la commande mdadm, il est possible d'obtenir d'avantage d'informations : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --query /dev/md1 
 +/dev/md1: 996.00MiB raid5 3 devices, 0 spares. Use mdadm --detail for more detail. 
 +</code> 
 + 
 +L'option **- -detail** produit le résultat suivant : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --detail /dev/md1 
 +/dev/md1: 
 +           Version : 1.2 
 +     Creation Time : Wed Oct 23 16:14:41 2024 
 +        Raid Level : raid5 
 +        Array Size : 1019904 (996.00 MiB 1044.38 MB) 
 +     Used Dev Size : 509952 (498.00 MiB 522.19 MB) 
 +      Raid Devices : 3 
 +     Total Devices : 3 
 +       Persistence : Superblock is persistent 
 + 
 +       Update Time : Wed Oct 23 16:14:55 2024 
 +             State : clean  
 +    Active Devices : 3 
 +   Working Devices : 3 
 +    Failed Devices : 0 
 +     Spare Devices : 0 
 + 
 +            Layout : left-symmetric 
 +        Chunk Size : 512K 
 + 
 +Consistency Policy : resync 
 + 
 +              Name : redhat9.ittraining.loc: (local to host redhat9.ittraining.loc) 
 +              UUID : 3645cd8c:03ae466e:b42c4849:03d1eae5 
 +            Events : 18 
 + 
 +    Number   Major   Minor   RaidDevice State 
 +                   21        0      active sync   /dev/sdb5 
 +                   24        1      active sync   /dev/sdb8 
 +                   26        2      active sync   /dev/sdb10 
 +</code> 
 + 
 +Le nom **redhat9.ittraining.loc:1** n'est pas compatible avec la norme POSIX. Pour rectifier ceci, renommez l'array : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --stop /dev/md1 
 +mdadm: stopped /dev/md1 
 + 
 +[root@redhat9 ~]# mdadm --assemble /dev/md1 --name=redhat.ittraining.loc --update=name /dev/sdb5 /dev/sdb8 /dev/sdb10 
 +mdadm: /dev/md1 has been started with 3 drives. 
 + 
 +[root@redhat9 ~]# mdadm --query /dev/md1 
 +/dev/md1: 996.00MiB raid5 3 devices, 0 spares. Use mdadm --detail for more detail. 
 + 
 +[root@redhat9 ~]# mdadm --detail /dev/md1 
 +/dev/md1: 
 +           Version : 1.2 
 +     Creation Time : Wed Oct 23 16:14:41 2024 
 +        Raid Level : raid5 
 +        Array Size : 1019904 (996.00 MiB 1044.38 MB) 
 +     Used Dev Size : 509952 (498.00 MiB 522.19 MB) 
 +      Raid Devices : 3 
 +     Total Devices : 3 
 +       Persistence : Superblock is persistent 
 + 
 +       Update Time : Wed Oct 23 16:14:55 2024 
 +             State : clean  
 +    Active Devices : 3 
 +   Working Devices : 3 
 +    Failed Devices : 0 
 +     Spare Devices : 0 
 + 
 +            Layout : left-symmetric 
 +        Chunk Size : 512K 
 + 
 +Consistency Policy : resync 
 + 
 +              Name : redhat.ittraining.loc 
 +              UUID : 3645cd8c:03ae466e:b42c4849:03d1eae5 
 +            Events : 18 
 + 
 +    Number   Major   Minor   RaidDevice State 
 +                   21        0      active sync   /dev/sdb5 
 +                   24        1      active sync   /dev/sdb8 
 +                   26        2      active sync   /dev/sdb10 
 +</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. 
 + 
 +Cependant, il necéssaire de renseigner le fichier **/etc/mdadm/mdadm.conf** afin que le RAID soit contruit à chaque démarrage : 
 + 
 +<code> 
 +[root@redhat9 ~]# echo 'DEVICE /dev/sdb5 /dev/sdb8 /dev/sdb10' > /etc/mdadm.conf 
 + 
 +[root@redhat9 ~]# mdadm --detail --scan >> /etc/mdadm.conf 
 + 
 +[root@redhat9 ~]# cat /etc/mdadm.conf  
 +DEVICE /dev/sdb5 /dev/sdb8 /dev/sdb10 
 +ARRAY /dev/md1 metadata=1.2 name=redhat.ittraining.loc UUID=3645cd8c:03ae466e:b42c4849:03d1eae5 
 +</code> 
 + 
 +Mettez à jour l'initramfs : 
 + 
 +<code> 
 +[root@redhat9 ~]# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).bak.$(date +%m-%d-%H%M%S).img 
 + 
 +[root@redhat9 ~]# dracut -f -v 
 +... 
 +dracut: *** Creating initramfs image file '/boot/initramfs-5.14.0-427.37.1.el9_4.x86_64.img' done *** 
 + 
 +[root@redhat9 ~]# grep initrd /boot/loader/entries/
 +/boot/loader/entries/5a35a3eb625c45cea1d33535723e791f-0-rescue.conf:initrd /initramfs-0-rescue-5a35a3eb625c45cea1d33535723e791f.img 
 +/boot/loader/entries/5a35a3eb625c45cea1d33535723e791f-5.14.0-284.11.1.el9_2.x86_64.conf:initrd /initramfs-5.14.0-284.11.1.el9_2.x86_64.img $tuned_initrd 
 +/boot/loader/entries/5a35a3eb625c45cea1d33535723e791f-5.14.0-427.37.1.el9_4.x86_64.conf:initrd /initramfs-5.14.0-427.37.1.el9_4.x86_64.img $tuned_initrd 
 +</code> 
 + 
 +Chaque unité peut être examinée individuellement : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --examine /dev/sdb5 
 +/dev/sdb5: 
 +          Magic : a92b4efc 
 +        Version : 1.2 
 +    Feature Map : 0x0 
 +     Array UUID : 3645cd8c:03ae466e:b42c4849:03d1eae5 
 +           Name : redhat.ittraining.loc 
 +  Creation Time : Wed Oct 23 16:14:41 2024 
 +     Raid Level : raid5 
 +   Raid Devices : 3 
 + 
 + Avail Dev Size : 1019904 sectors (498.00 MiB 522.19 MB) 
 +     Array Size : 1019904 KiB (996.00 MiB 1044.38 MB) 
 +    Data Offset : 4096 sectors 
 +   Super Offset : 8 sectors 
 +   Unused Space : before=4016 sectors, after=0 sectors 
 +          State : clean 
 +    Device UUID : 1ef50b0e:fce4333e:95e4f392:e9470824 
 + 
 +    Update Time : Wed Oct 23 16:14:55 2024 
 +  Bad Block Log : 512 entries available at offset 16 sectors 
 +       Checksum : b5e67068 - correct 
 +         Events : 18 
 + 
 +         Layout : left-symmetric 
 +     Chunk Size : 512K 
 + 
 +   Device Role : Active device 0 
 +   Array State : AAA ('A' == active, '.' == missing, 'R' == replacing) 
 +</code> 
 + 
 +===11.3 - Remplacer une Unité Défaillante=== 
 + 
 +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/sdb5 est devenue défaillante : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --manage --set-faulty /dev/md1 /dev/sdb5 
 +mdadm: set /dev/sdb5 faulty in /dev/md1 
 +</code> 
 + 
 +L'utilisation de la ligne de commande suivante nous confirme le statut de /dev/sdb5 : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --detail /dev/md1 
 +/dev/md1: 
 +           Version : 1.2 
 +     Creation Time : Wed Oct 23 16:14:41 2024 
 +        Raid Level : raid5 
 +        Array Size : 1019904 (996.00 MiB 1044.38 MB) 
 +     Used Dev Size : 509952 (498.00 MiB 522.19 MB) 
 +      Raid Devices : 3 
 +     Total Devices : 3 
 +       Persistence : Superblock is persistent 
 + 
 +       Update Time : Wed Oct 23 16:59:59 2024 
 +             State : clean, degraded  
 +    Active Devices : 2 
 +   Working Devices : 2 
 +    Failed Devices : 1 
 +     Spare Devices : 0 
 + 
 +            Layout : left-symmetric 
 +        Chunk Size : 512K 
 + 
 +Consistency Policy : resync 
 + 
 +              Name : redhat.ittraining.loc 
 +              UUID : 3645cd8c:03ae466e:b42c4849:03d1eae5 
 +            Events : 20 
 + 
 +    Number   Major   Minor   RaidDevice State 
 +                    0        0      removed 
 +                   24        1      active sync   /dev/sdb8 
 +                   26        2      active sync   /dev/sdb10 
 + 
 +                   21        -      faulty   /dev/sdb5 
 +</code> 
 + 
 +Il est maintenant nécessaire de supprimer /dev/sdb5 de notre RAID 5 : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --manage --remove /dev/md1 /dev/sdb5 
 +mdadm: hot removed /dev/sdb5 from /dev/md1 
 +</code> 
 + 
 +A l'examen de notre RAID, on constate que /dev/sdb5 a été supprimé : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --detail /dev/md1 
 +/dev/md1: 
 +           Version : 1.2 
 +     Creation Time : Wed Oct 23 16:14:41 2024 
 +        Raid Level : raid5 
 +        Array Size : 1019904 (996.00 MiB 1044.38 MB) 
 +     Used Dev Size : 509952 (498.00 MiB 522.19 MB) 
 +      Raid Devices : 3 
 +     Total Devices : 2 
 +       Persistence : Superblock is persistent 
 + 
 +       Update Time : Wed Oct 23 17:01:05 2024 
 +             State : clean, degraded  
 +    Active Devices : 2 
 +   Working Devices : 2 
 +    Failed Devices : 0 
 +     Spare Devices : 0 
 + 
 +            Layout : left-symmetric 
 +        Chunk Size : 512K 
 + 
 +Consistency Policy : resync 
 + 
 +              Name : redhat.ittraining.loc 
 +              UUID : 3645cd8c:03ae466e:b42c4849:03d1eae5 
 +            Events : 21 
 + 
 +    Number   Major   Minor   RaidDevice State 
 +                    0        0      removed 
 +                   24        1      active sync   /dev/sdb8 
 +                   26        2      active sync   /dev/sdb10 
 +</code> 
 + 
 +Constatez maintenant l'existance de votre RAID : 
 + 
 +<code> 
 +[root@redhat9 ~]# cat /proc/mdstat 
 +Personalities : [raid6] [raid5] [raid4] [raid1]  
 +md1 : active raid5 sdb10[3] sdb8[1] 
 +      1019904 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU] 
 +       
 +unused devices: <none> 
 +</code> 
 + 
 +<WRAP center round important> 
 +**iMPORTANT** - Notez que le RAID a 2 unités au lieu de trois. 
 +</WRAP> 
 + 
 +Pour ajouter un autre disque à notre RAID afin de remplacer /dev/sdb5 il convient d'utiliser l'option **--add** : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --manage --add /dev/md1 /dev/sdb11 
 +mdadm: added /dev/sdb11 
 +</code> 
 + 
 +L'exemen du RAID indique que /dev/sdb11 a été ajouté en tant que //spare// : 
 + 
 +<code> 
 +[root@redhat9 ~]# mdadm --detail /dev/md1 
 +/dev/md1: 
 +           Version : 1.2 
 +     Creation Time : Wed Oct 23 16:14:41 2024 
 +        Raid Level : raid5 
 +        Array Size : 1019904 (996.00 MiB 1044.38 MB) 
 +     Used Dev Size : 509952 (498.00 MiB 522.19 MB) 
 +      Raid Devices : 3 
 +     Total Devices : 3 
 +       Persistence : Superblock is persistent 
 + 
 +       Update Time : Wed Oct 23 17:03:30 2024 
 +             State : clean, degraded, recovering  
 +    Active Devices : 2 
 +   Working Devices : 3 
 +    Failed Devices : 0 
 +     Spare Devices : 1 
 + 
 +            Layout : left-symmetric 
 +        Chunk Size : 512K 
 + 
 +Consistency Policy : resync 
 + 
 +    Rebuild Status : 1% complete 
 + 
 +              Name : redhat.ittraining.loc 
 +              UUID : 3645cd8c:03ae466e:b42c4849:03d1eae5 
 +            Events : 23 
 + 
 +    Number   Major   Minor   RaidDevice State 
 +                   27        0      spare rebuilding   /dev/sdb11 
 +                   24        1      active sync   /dev/sdb8 
 +                   26        2      active sync   /dev/sdb10 
 +</code> 
 + 
 +Vérifiez la prise en compte de la configuration : 
 + 
 +<code> 
 +[root@redhat9 ~]# lsblk 
 +NAME          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINTS 
 +sda             8:   0   50G  0 disk   
 +├─sda1          8:1    0    1G  0 part  /boot 
 +└─sda2          8:2    0   49G  0 part   
 +  ├─rhel-root 253:0    0   44G  0 lvm   / 
 +  └─rhel-swap 253:1    0    5G  0 lvm   [SWAP] 
 +sdb             8:16     32G  0 disk   
 +├─sdb1          8:17    100M  0 part   
 +├─sdb2          8:18    100M  0 part   
 +├─sdb3          8:19    100M  0 part   
 +├─sdb4          8:20      1K  0 part   
 +├─sdb5          8:21    500M  0 part   
 +├─sdb6          8:22    200M  0 part   
 +│ └─vg0-lv1   253:   0  104M  0 lvm    
 +├─sdb7          8:23    300M  0 part   
 +│ └─vg0-lv2   253:   0  112M  0 lvm    
 +├─sdb8          8:24    500M  0 part   
 +│ └─md1         9:   0  996M  0 raid5  
 +├─sdb9          8:25    400M  0 part   
 +│ └─vg0-lv2   253:   0  112M  0 lvm    
 +├─sdb10         8:26    500M  0 part   
 +│ └─md1         9:   0  996M  0 raid5  
 +├─sdb11         8:27    500M  0 part   
 +│ └─md1         9:   0  996M  0 raid5  
 +└─sdb12         8:28    200M  0 part   
 +sdc         8:32      6G  0 disk   
 +sdd         8:48      6G  0 disk   
 +sde         8:64     32G  0 disk   
 +sr0            11:0    1 1024M  0 rom  
 + 
 +[root@redhat9 ~]# cat /proc/mdstat 
 +Personalities : [raid6] [raid5] [raid4] [raid1]  
 +md1 : active raid5 sdb11[4] sdb10[3] sdb8[1] 
 +      1019904 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU] 
 +      [======>..............]  recovery = 31.1% (159380/509952) finish=3.8min speed=1517K/sec 
 +       
 +unused devices: <none> 
 + 
 +[root@redhat9 ~]# cat /proc/mdstat 
 +Personalities : [raid6] [raid5] [raid4] [raid1]  
 +md1 : active raid5 sdb11[4] sdb10[3] sdb8[1] 
 +      1019904 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU] 
 +      [==========>..........]  recovery = 50.4% (257956/509952) finish=2.6min speed=1560K/sec 
 +       
 +unused devices: <none> 
 + 
 +[root@redhat9 ~]# cat /proc/mdstat 
 +Personalities : [raid6] [raid5] [raid4] [raid1]  
 +md1 : active raid5 sdb11[4] sdb10[3] sdb8[1] 
 +      1019904 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [_UU] 
 +      [==================>..]  recovery = 92.4% (472552/509952) finish=0.3min speed=1605K/sec 
 +       
 +unused devices: <none> 
 + 
 +[root@redhat9 ~]# cat /proc/mdstat 
 +Personalities : [raid6] [raid5] [raid4] [raid1]  
 +md1 : active raid5 sdb11[4] sdb10[3] sdb8[1] 
 +      1019904 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU] 
 +       
 +unused devices: <none> 
 +</code> 
 + 
 +Dernièrement, il nécessaire de renseigner le fichier **/etc/mdadm/mdadm.conf** du changement afin que le RAID soit construit à chaque démarrage : 
 + 
 +<<code> 
 +[root@redhat9 ~]# echo 'DEVICE /dev/sdb8 /dev/sdb10 /dev/sdb11' > /etc/mdadm.conf 
 + 
 +[root@redhat9 ~]# mdadm --detail --scan >> /etc/mdadm.conf 
 + 
 +[root@redhat9 ~]# cat /etc/mdadm.conf  
 +DEVICE /dev/sdb8 /dev/sdb10 /dev/sdb11 
 +ARRAY /dev/md1 metadata=1.2 name=redhat.ittraining.loc UUID=3645cd8c:03ae466e:b42c4849:03d1eae5 
 +</code> 
 + 
 +Mettez à jour l'initramfs : 
 + 
 +<code> 
 +[root@redhat9 ~]# dracut -f -v 
 +... 
 +dracut: *** Creating initramfs image file '/boot/initramfs-5.14.0-427.37.1.el9_4.x86_64.img' done *** 
 +</code> 
 + 
 +=====LAB #12 - Stratis===== 
 + 
 +====12.1 - Présentation==== 
 + 
 +**Stratis** est une solution de gestion de volumes et de stockage pour Linux, développée par Red Hat, qui combine des technologies comme **LVM (Logical Volume Manager)** et **XFS** pour fournir une gestion simplifiée des volumes de stockage. Il est conçu pour offrir une solution robuste et facile à utiliser, tout en offrant une gestion avancée du stockage comme la gestion des snapshots, le thin provisioning, et la gestion des volumes logiques. 
 + 
 +Voici un aperçu de la gestion du stockage avec Stratis : 
 + 
 +===Concepts clés de Stratis=== 
 + 
 +  * **Pool de stockage** : Un pool est une collection de disques physiques (ou d'autres types de périphériques de stockage) qui forment une base pour la création de volumes logiques. Avec Stratis, les disques physiques sont regroupés dans un pool. Vous pouvez ajouter ou retirer des disques au fur et à mesure de vos besoins, 
 +  * **Volumes logiques** : Une fois que vous avez un pool, vous pouvez créer des volumes logiques (ou systèmes de fichiers). Ces volumes logiques peuvent être utilisés comme tout autre système de fichiers dans Linux. Ils peuvent être agrandis ou réduits dynamiquement, 
 +  * **Thin provisioning** : Stratis permet de créer des volumes logiques "thin provisioned", c'est-à-dire que vous pouvez créer un volume avec une taille apparente plus grande que l'espace de stockage réellement disponible. Le volume utilisera l'espace physique réel uniquement lorsque les données sont effectivement écrites, 
 +  * **Snapshots** : Stratis permet de créer des snapshots, qui sont des copies instantanées des volumes à un moment donné. Ces snapshots peuvent être utilisés pour des sauvegardes ou pour restaurer un état précédent du système de fichiers. 
 + 
 +===Gestion simplifiée=== 
 + 
 +L’un des principaux objectifs de Stratis est de simplifier la gestion des volumes. Il combine plusieurs technologies complexes (comme LVM, D-Bus, et XFS) sous une interface de gestion unique, accessible via des commandes simples. 
 + 
 +===Avantages de Stratis=== 
 + 
 +  * **Facilité d'utilisation** : L'abstraction des technologies sous-jacentes et l'interface simple réduisent la complexité pour les administrateurs systèmes, 
 +  * **Thin provisioning** et **snapshots** intégrés, 
 +  * **Gestion dynamique** des disques et des volumes, sans avoir besoin de redémarrer le système, 
 +  * **Snapshots** rapides pour des sauvegardes ou restaurations faciles. 
 + 
 +===Stratis vs ZFS/Btrfs=== 
 + 
 +Stratis est parfois comparé à d'autres systèmes de gestion de stockage comme **ZFS** ou **Btrfs**, qui offrent aussi des fonctionnalités similaires (volumes logiques, snapshots, etc.). Cependant, Stratis se distingue en s'appuyant sur des technologies bien établies de Linux, comme **LVM** et **XFS**, plutôt que de réinventer entièrement un nouveau système de fichiers. 
 + 
 +En résumé, Stratis simplifie la gestion du stockage en regroupant plusieurs fonctionnalités avancées dans un cadre simple et accessible pour les administrateurs Linux, tout en utilisant des technologies éprouvées. 
 + 
 +====12.2 - Travailler avec Stratis==== 
 + 
 +===Installation=== 
 + 
 +Le support de Stratis peut être obtenu en installant les paquets **stratisd** et **stratis-cli** : 
 + 
 +<code> 
 +[root@redhat9 ~]# dnf install stratisd stratis-cli -y 
 +</code> 
 + 
 +Activez et démarrez le service stratis : 
 + 
 +<code> 
 +[root@redhat9 ~]# systemctl enable --now stratisd 
 + 
 +[root@redhat9 ~]# systemctl status stratisd 
 +● stratisd.service - Stratis daemon 
 +     Loaded: loaded (/usr/lib/systemd/system/stratisd.service; enabled; preset: enabl> 
 +     Active: active (running) since Thu 2024-10-24 06:51:25 CEST; 10s ago 
 +       Docs: man:stratisd(8) 
 +   Main PID: 2676 (stratisd) 
 +      Tasks: 8 (limit: 48799) 
 +     Memory: 2.0M 
 +        CPU: 22ms 
 +     CGroup: /system.slice/stratisd.service 
 +             └─2676 /usr/libexec/stratisd --log-level debug 
 + 
 +Oct 24 06:51:25 redhat9.ittraining.loc systemd[1]: Starting Stratis daemon... 
 +Oct 24 06:51:25 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T04:51:25Z INFO  st> 
 +Oct 24 06:51:25 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T04:51:25Z INFO  st> 
 +Oct 24 06:51:25 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T04:51:25Z INFO  st> 
 +Oct 24 06:51:25 redhat9.ittraining.loc systemd[1]: Started Stratis daemon. 
 +Oct 24 06:51:25 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T04:51:25Z INFO  st> 
 +[root@redhat9 ~]#  
 +</code> 
 + 
 +===Création d'un Pool=== 
 + 
 +Créez le pool de stockage **pool1** sur **/dev/sdc** : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis pool create pool1 /dev/sdc 
 +</code> 
 + 
 +Consultez la taille du pool : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis pool list 
 +Name           Total / Used / Free    Properties                                   UUID   Alerts 
 +pool1   6 GiB / 526 MiB / 5.49 GiB   ~Ca,~Cr, Op   4cfd12ac-57e7-4c9d-8f48-6c33f482fc46   WS001  
 +</code> 
 + 
 +Dans la colonne **Properties**, le caractère **~** indique que la propriété indiquée n'est pas présente. Les propriétés sont : 
 + 
 +  * **Ca** - Cache, 
 +  * **Cr** - Chiffrement, 
 +  * **Op** - Surprovisionnement. 
 + 
 +L'alerte Stratis « WS001 » signifie que tous les périphériques du pool ont été entièrement alloués. Cela signifie que la capacité du pool de stockage est entièrement utilisée et qu'il n'y a plus d'espace disponible pour de nouvelles attributions. Cette alerte est critique car elle indique que le pool est effectivement plein et qu'il peut être nécessaire de le gérer ou de l'étendre pour éviter des problèmes opérationnels. 
 + 
 +Ajoutez donc **/dev/sdd** au pool : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis pool add-data pool1 /dev/sdd 
 +[root@redhat9 ~]# stratis pool list 
 +Name             Total / Used / Free    Properties                                   UUID   Alerts 
 +pool1   12 GiB / 534 MiB / 11.48 GiB   ~Ca,~Cr, Op   4cfd12ac-57e7-4c9d-8f48-6c33f482fc46  
 + 
 +[root@redhat9 ~]# stratis blockdev list pool1 
 +Pool Name   Device Node   Physical Size   Tier   UUID                                 
 +pool1       /dev/sdc              6 GiB   DATA   bdab7f32-db56-4fcf-b78f-af1cda92a72c 
 +pool1       /dev/sdd              6 GiB   DATA   bcd0f548-e4b3-45b1-b334-97d9b16e5030 
 +</code> 
 + 
 +===Création d'un Système de Fichiers=== 
 + 
 +Créez le système de fichiers en provisionnement fin **filesystem1** : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis filesystem create pool1 filesystem1 
 +</code> 
 + 
 +Consultez la liste des systèmes de fichiers : 
 + 
 +<code> 
 +root@redhat9 ~]# stratis filesystem list 
 +Pool    Filesystem    Total / Used / Free / Limit            Created             Device                           UUID                                 
 +pool1   filesystem1   1 TiB / 545 MiB / 1023.47 GiB / None   Oct 24 2024 07:12   /dev/stratis/pool1/filesystem1   e80a1eeb-95d0-413a-8641-2a07ea685b6a 
 +</code> 
 + 
 +===Montage du System de Fichiers=== 
 + 
 +Créez maintenant le point de montage **/volume** : 
 + 
 +<code> 
 +[root@redhat9 ~]# mkdir /volume 
 +</code> 
 + 
 +Montez **filesystem1** sur **/volume** : 
 + 
 +<code> 
 +[root@redhat9 ~]# mount /dev/stratis/pool1/filesystem1 /volume 
 +</code> 
 + 
 +Vérifiez que **/dev/stratis/pool1/filesystem1** a été monté : 
 + 
 +<code> 
 +[root@redhat9 ~]# mount | grep volume 
 +/dev/mapper/stratis-1-4cfd12ac57e74c9d8f486c33f482fc46-thin-fs-e80a1eeb95d0413a86412a07ea685b6a on /volume type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=128k,sunit=256,swidth=2048,noquota) 
 +</code> 
 + 
 +Obtenez l'UUID de **/dev/stratis/pool1/filesystem1** : 
 + 
 +<code> 
 +[root@redhat9 ~]# lsblk --output=UUID /dev/stratis/pool1/filesystem1 
 +UUID 
 +e80a1eeb-95d0-413a-8641-2a07ea685b6a 
 +</code> 
 + 
 +Modifiez le fichier **/etc/fstab** : 
 + 
 +<code> 
 +[root@redhat9 ~]# vi /etc/fstab 
 +[root@redhat9 ~]# cat /etc/fstab 
 + 
 +
 +# /etc/fstab 
 +# Created by anaconda on Thu Oct 19 16:05:58 2023 
 +
 +# Accessible filesystems, by reference, are maintained under '/dev/disk/'
 +# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info. 
 +
 +# After editing this file, run 'systemctl daemon-reload' to update systemd 
 +# units generated from this file. 
 +
 +/dev/mapper/rhel-root   /                       xfs     defaults        0 0 
 +UUID=6f6c5bb9-30be-4734-bc23-03fed8541616 /boot                   xfs     defaults        0 0 
 +/dev/mapper/rhel-swap   none                    swap    defaults        0 0 
 +UUID=e80a1eeb-95d0-413a-8641-2a07ea685b6a /volume xfs defaults,x-systemd.requires=stratisd.service 0 0 
 +</code> 
 + 
 +Démontez maintenant **/volume** : 
 + 
 +<code> 
 +[root@redhat9 ~]# umount /volume 
 +[root@redhat9 ~]# mount | grep volume 
 +</code> 
 + 
 +Montez **/volume** à partir de **/etc/fstab** : 
 + 
 +<code> 
 +[root@redhat9 ~]# mount -a 
 +mount: (hint) your fstab has been modified, but systemd still uses 
 +       the old version; use 'systemctl daemon-reload' to reload. 
 + 
 +[root@redhat9 ~]# mount | grep volume 
 +/dev/mapper/stratis-1-4cfd12ac57e74c9d8f486c33f482fc46-thin-fs-e80a1eeb95d0413a86412a07ea685b6a on /volume type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=128k,sunit=256,swidth=2048,noquota,x-systemd.requires=stratisd.service) 
 + 
 +[root@redhat9 ~]# systemctl daemon-reload 
 +</code> 
 + 
 +===Croissance Dynamique du Système de Fichiers=== 
 + 
 +Consultez l'utilisation de l'espace disque de **filesystem1** : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis filesystem list 
 +Pool    Filesystem    Total / Used / Free / Limit            Created             Device                           UUID                                 
 +pool1   filesystem1   1 TiB / 545 MiB / 1023.47 GiB / None   Oct 24 2024 07:12   /dev/stratis/pool1/filesystem1   e80a1eeb-95d0-413a-8641-2a07ea685b6a 
 +</code> 
 + 
 +Créez un fichier de 2GiB dans le systéme de fichiers **filesystem1** : 
 + 
 +<code> 
 +[root@redhat9 ~]# dd if=/dev/urandom of=/volume/file bs=1M count=2048 
 +2048+0 records in 
 +2048+0 records out 
 +2147483648 bytes (2.1 GB, 2.0 GiB) copied, 26.3089 s, 81.6 MB/s 
 +</code> 
 + 
 +Consultez l'utilisation de l'espace disque de **filesystem1** : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis filesystem list 
 +Pool    Filesystem    Total / Used / Free / Limit             Created             Device                           UUID                                 
 +pool1   filesystem1   1 TiB / 6.53 GiB / 1017.47 GiB / None   Oct 24 2024 07:12   /dev/stratis/pool1/filesystem1   e80a1eeb-95d0-413a-8641-2a07ea685b6a 
 +</code> 
 + 
 +<WRAP center round important 60%> 
 +**Important** : Notez que l'utilisation du disque a augmentée. 
 +</WRAP> 
 + 
 +===Création d'un Snapshot=== 
 + 
 +Créez le snapshot **filesystem1-snap** de **filesystem1** : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis filesystem snapshot pool1 filesystem1 filesystem1-snap 
 +</code> 
 + 
 +Vérifiez la présence du snapshot : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis filesystem list 
 +Pool    Filesystem         Total / Used / Free / Limit             Created             Device                                UUID                                 
 +pool1   filesystem1        1 TiB / 6.53 GiB / 1017.47 GiB / None   Oct 24 2024 07:12   /dev/stratis/pool1/filesystem1        e80a1eeb-95d0-413a-8641-2a07ea685b6a 
 +pool1   filesystem1-snap   1 TiB / 6.53 GiB / 1017.47 GiB / None   Oct 24 2024 07:44   /dev/stratis/pool1/filesystem1-snap   58604780-5686-4f92-b4dc-48ca6a35a64f 
 +</code> 
 + 
 +Supprimez le fichier **/volume/file** : 
 + 
 +<code> 
 +[root@redhat9 ~]# rm -f /volume/file 
 +</code> 
 + 
 +Vérifiez la suppression de **/volume/file**: 
 + 
 +<code> 
 +[root@redhat9 ~]# ls -l /volume 
 +total 0 
 +</code> 
 + 
 +Créez le point de montage **/filesystem1-snap** : 
 + 
 +<code> 
 +[root@redhat9 ~]# mkdir /filesystem1-snap 
 +</code> 
 + 
 +Montez **/dev/stratis/pool1/filesystem1-snap** sur **/filesystem1-snap** : 
 + 
 +<code> 
 +[root@redhat9 ~]# mount /dev/stratis/pool1/filesystem1-snap /filesystem1-snap 
 +</code> 
 + 
 +Vérifiez la présence du fichier **/filesystem1-snap/file** : 
 + 
 +<code> 
 +[root@redhat9 ~]# ls -l /filesystem1-snap 
 +total 2097152 
 +-rw-r--r--. 1 root root 2147483648 Oct 24 07:37 file 
 +</code> 
 + 
 +===Suppression des Systèmes de Fichiers=== 
 + 
 +Démontez les deux systèmes de fichiers : 
 + 
 +<code> 
 +[root@redhat9 ~]# umount /volume 
 + 
 +[root@redhat9 ~]# umount /filesystem1-snap 
 +</code> 
 + 
 +Supprimez les deux systèmes de fichiers : 
 + 
 +<code> 
 +[root@redhat9 ~]# stratis filesystem destroy pool1 filesystem1-snap 
 + 
 +[root@redhat9 ~]# stratis filesystem destroy pool1 filesystem1 
 + 
 +[root@redhat9 ~]# stratis filesystem list 
 +Pool   Filesystem   Total / Used / Free / Limit   Created   Device   UUID 
 +</code> 
 + 
 +Editez le fichier **/etc/fstab** : 
 + 
 +<code> 
 +[root@redhat9 ~]# vi /etc/fstab 
 +[root@redhat9 ~]# cat /etc/fstab 
 + 
 +
 +# /etc/fstab 
 +# Created by anaconda on Thu Oct 19 16:05:58 2023 
 +
 +# Accessible filesystems, by reference, are maintained under '/dev/disk/'
 +# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info. 
 +
 +# After editing this file, run 'systemctl daemon-reload' to update systemd 
 +# units generated from this file. 
 +
 +/dev/mapper/rhel-root   /                       xfs     defaults        0 0 
 +UUID=6f6c5bb9-30be-4734-bc23-03fed8541616 /boot                   xfs     defaults        0 0 
 +/dev/mapper/rhel-swap   none                    swap    defaults        0 0 
 +</code> 
 + 
 +Supprimez les deux points de montage : 
 + 
 +<code> 
 +[root@redhat9 ~]# rm -rf /volume /filesystem1-snap 
 +</code> 
 + 
 +Désactiver et arrêtez le service **stratisd** : 
 + 
 +<code> 
 +[root@redhat9 ~]# systemctl disable --now stratisd 
 +Removed "/etc/systemd/system/multi-user.target.wants/stratisd.service"
 + 
 +[root@redhat9 ~]# systemctl status stratisd 
 +○ stratisd.service - Stratis daemon 
 +     Loaded: loaded (/usr/lib/systemd/system/stratisd.service; disabled; preset: enabled) 
 +     Active: inactive (dead) 
 +       Docs: man:stratisd(8) 
 + 
 +Oct 24 07:58:07 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T05:58:07Z INFO  stratisd::dbus_api::pool::pool_3_0::methods] Filesystems with UUIDs 58604780-5686-4f92-b4dc-48ca6a35a64f were successfully del> 
 +Oct 24 07:58:14 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T05:58:14Z INFO  stratisd::dbus_api::pool::pool_3_0::methods] Filesystems with UUIDs e80a1eeb-95d0-413a-8641-2a07ea685b6a were successfully del> 
 +Oct 24 08:02:37 redhat9.ittraining.loc systemd[1]: Stopping Stratis daemon... 
 +Oct 24 08:02:37 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T06:02:37Z INFO  stratisd::stratis::run] Caught SIGINT; exiting... 
 +Oct 24 08:02:37 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T06:02:37Z INFO  stratisd::dbus_api::util] D-Bus tree handler was notified to exit 
 +Oct 24 08:02:37 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T06:02:37Z INFO  stratisd::stratis::udev_monitor] udev thread was notified to exit 
 +Oct 24 08:02:37 redhat9.ittraining.loc stratisd[2676]: [2024-10-24T06:02:37Z INFO  stratisd::dbus_api::connection] D-Bus connection handler thread notified to exit 
 +Oct 24 08:02:37 redhat9.ittraining.loc systemd[1]: stratisd.service: Deactivated successfully. 
 +Oct 24 08:02:37 redhat9.ittraining.loc systemd[1]: Stopped Stratis daemon. 
 +Oct 24 08:02:37 redhat9.ittraining.loc systemd[1]: stratisd.serviceConsumed 3.273s CPU time.
 </code> </code>
  
Ligne 2693: Ligne 3984:
 </WRAP> </WRAP>
  
-====Ext3====+====LAB #13 - Ext3====
  
 Ext3 est une évolution de Ext2 et a pour principale différence d'utiliser un fichier journal. Il peut : Ext3 est une évolution de Ext2 et a pour principale différence d'utiliser un fichier journal. Il peut :
Ligne 2703: Ligne 3994:
 Pour plus d'information concernant Ext3, consultez **[[http://en.wikipedia.org/wiki/Ext3|cette page]]** Pour plus d'information concernant Ext3, consultez **[[http://en.wikipedia.org/wiki/Ext3|cette page]]**
  
-===Gestion d'Ext3===+===13.1 - Gestion d'Ext3===
  
 Notez maintenant le numéro de la dernière partition que vous avez précédemment créée : Notez maintenant le numéro de la dernière partition que vous avez précédemment créée :
  
 <code> <code>
-[root@centos8 ~]# fdisk -l +[root@redhat9 ~]# fdisk -l 
-Disk /dev/sdbGiB, 4294967296 bytes, 8388608 sectors+Disk /dev/sda50 GiB, 53687091200 bytes, 104857600 sectors 
 +Disk model: QEMU HARDDISK   
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos Disklabel type: dos
-Disk identifier: 0xb0dacb39+Disk identifier: 0xd00dfc8a
  
-Device     Boot   Start     End Sectors  Size Id Type +Device     Boot   Start       End   Sectors Size Id Type 
-/dev/sdb1          2048  206847  204800  100M 83 Linux +/dev/sda1  *       2048   2099199   2097152   1G 83 Linux 
-/dev/sdb2        206848  411647  204800  100M 83 Linux +/dev/sda2       2099200 104857599 102758400  49G 8e Linux LVM
-/dev/sdb3        411648  616447  204800  100M 83 Linux +
-/dev/sdb4        616448 8388607 7772160  3.7G  5 Extended +
-/dev/sdb5        618496 1642495 1024000  500M fd Linux raid autodetect +
-/dev/sdb6       1644544 2054143  409600  200M 8e Linux LVM +
-/dev/sdb7       2056192 2670591  614400  300M 8e Linux LVM +
-/dev/sdb8       2672640 3696639 1024000  500M fd Linux raid autodetect +
-/dev/sdb9       3698688 4517887  819200  400M 8e Linux LVM +
-/dev/sdb10      4519936 5543935 1024000  500M fd Linux raid autodetect +
-/dev/sdb11      5545984 6569983 1024000  500M fd Linux raid autodetect +
-/dev/sdb12      6572032 6981631  409600  200M 83 Linux+
  
  
-Disk /dev/sda20 GiB, 21474836480 bytes, 41943040 sectors+Disk /dev/sdb32 GiB, 34359738368 bytes, 67108864 sectors 
 +Disk model: QEMU HARDDISK   
 Units: sectors of 1 * 512 = 512 bytes Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos Disklabel type: dos
-Disk identifier: 0x70b17285+Disk identifier: 0x23a56c2e
  
 Device     Boot   Start      End  Sectors  Size Id Type Device     Boot   Start      End  Sectors  Size Id Type
-/dev/sda1  *       2048   616447   614400  300M 83 Linux +/dev/sdb1          2048   206847   204800  100M 83 Linux 
-/dev/sda2        616448  4712447  4096000    2G 82 Linux swap Solaris +/dev/sdb2        206848   411647   204800  100M 83 Linux 
-/dev/sda3       4712448 35432447 30720000 14.7G 83 Linux+/dev/sdb3        411648   616447   204800  100M 83 Linux 
 +/dev/sdb4        616448 67108863 66492416 31.7G  5 Extended 
 +/dev/sdb5        618496  1642495  1024000  500M fd Linux raid autodetect 
 +/dev/sdb6       1644544  2054143   409600  200M 8e Linux LVM 
 +/dev/sdb7       2056192  2670591   614400  300M 8e Linux LVM 
 +/dev/sdb8       2672640  3696639  1024000  500M fd Linux raid autodetect 
 +/dev/sdb9       3698688  4517887   819200  400M 8e Linux LVM 
 +/dev/sdb10      4519936  5543935  1024000  500M fd Linux raid autodetect 
 +/dev/sdb11      5545984  6569983  1024000  500M fd Linux raid autodetect 
 +/dev/sdb12      6572032  6981631   409600  200M 83 Linux
  
  
 +Disk /dev/sdc: 6 GiB, 6442450944 bytes, 12582912 sectors
 +Disk model: QEMU HARDDISK   
 +Units: sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 512 bytes
 +I/O size (minimum/optimal): 512 bytes / 512 bytes
 +
 +
 +Disk /dev/sdd: 6 GiB, 6442450944 bytes, 12582912 sectors
 +Disk model: QEMU HARDDISK   
 +Units: sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 512 bytes
 +I/O size (minimum/optimal): 512 bytes / 512 bytes
 +
 +
 +Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors
 +Disk model: QEMU HARDDISK   
 +Units: sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 512 bytes
 +I/O size (minimum/optimal): 512 bytes / 512 bytes
 +
 +
 +Disk /dev/mapper/rhel-root: 44 GiB, 47240445952 bytes, 92266496 sectors
 +Units: sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 512 bytes
 +I/O size (minimum/optimal): 512 bytes / 512 bytes
 +
 +
 +Disk /dev/mapper/rhel-swap: 5 GiB, 5368709120 bytes, 10485760 sectors
 +Units: sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 512 bytes
 +I/O size (minimum/optimal): 512 bytes / 512 bytes
 +
 +
 +Disk /dev/md1: 996 MiB, 1044381696 bytes, 2039808 sectors
 +Units: sectors of 1 * 512 = 512 bytes
 +Sector size (logical/physical): 512 bytes / 512 bytes
 +I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
  
  
Ligne 2761: Ligne 4090:
  
 <code> <code>
-[root@centos8 ~]# mke2fs -j /dev/sdb12 +[root@redhat9 ~]# mke2fs -j /dev/sdb12 
-mke2fs 1.45.(20-Mar-2020)+mke2fs 1.46.(30-Dec-2021) 
 +Discarding device blocks: done                            
 Creating filesystem with 204800 1k blocks and 51200 inodes Creating filesystem with 204800 1k blocks and 51200 inodes
-Filesystem UUID: a2515f45-a32a-4e87-b7e6-170448f3f803+Filesystem UUID: f489fe51-2f8b-444a-af89-9bb5b6301214
 Superblock backups stored on blocks:  Superblock backups stored on blocks: 
- 8193, 24577, 40961, 57345, 73729+        8193, 24577, 40961, 57345, 73729
  
 Allocating group tables: done                             Allocating group tables: done                            
Ligne 2772: Ligne 4102:
 Creating journal (4096 blocks): done Creating journal (4096 blocks): done
 Writing superblocks and filesystem accounting information: done  Writing superblocks and filesystem accounting information: done 
-</code> 
- 
-Les options de la commande **mke2fs** sont : 
- 
-<code> 
-[root@centos8 ~]# mke2fs --help 
-mke2fs: invalid option -- '-' 
-Usage: mke2fs [-c|-l filename] [-b block-size] [-C cluster-size] 
- [-i bytes-per-inode] [-I inode-size] [-J journal-options] 
- [-G flex-group-size] [-N number-of-inodes] [-d root-directory] 
- [-m reserved-blocks-percentage] [-o creator-os] 
- [-g blocks-per-group] [-L volume-label] [-M last-mounted-directory] 
- [-O feature[,...]] [-r fs-revision] [-E extended-option[,...]] 
- [-t fs-type] [-T usage-type ] [-U UUID] [-e errors_behavior][-z undo_file] 
- [-jnqvDFSV] device [blocks-count] 
 </code> </code>
  
Ligne 2793: Ligne 4108:
 </WRAP> </WRAP>
  
-===LAB #11 - Convertir un Système de Fichiers Ext3 en Ext2===+===13.2 - Convertir un Système de Fichiers Ext3 en Ext2===
  
 Pour vérifier si un système de fichiers Ext2 est journalisé, utilisez la commande **dumpe2fs** : Pour vérifier si un système de fichiers Ext2 est journalisé, utilisez la commande **dumpe2fs** :
  
 <code> <code>
-[root@centos8 ~]# dumpe2fs -h /dev/sdb12 +[root@redhat9 ~]# dumpe2fs -h /dev/sdb12 
-dumpe2fs 1.45.(20-Mar-2020)+dumpe2fs 1.46.(30-Dec-2021)
 Filesystem volume name:   <none> Filesystem volume name:   <none>
 Last mounted on:          <not available> Last mounted on:          <not available>
-Filesystem UUID:          a2515f45-a32a-4e87-b7e6-170448f3f803+Filesystem UUID:          f489fe51-2f8b-444a-af89-9bb5b6301214
 Filesystem magic number:  0xEF53 Filesystem magic number:  0xEF53
 Filesystem revision #:    1 (dynamic) Filesystem revision #:    1 (dynamic)
Ligne 2814: Ligne 4129:
 Block count:              204800 Block count:              204800
 Reserved block count:     10240 Reserved block count:     10240
-Free blocks:              192674+Overhead clusters:        18495 
 +Free blocks:              186274
 Free inodes:              51189 Free inodes:              51189
 First block:              1 First block:              1
Ligne 2823: Ligne 4139:
 Fragments per group:      8192 Fragments per group:      8192
 Inodes per group:         2048 Inodes per group:         2048
-Inode blocks per group:   256 +Inode blocks per group:   512 
-Filesystem created:       Wed Jun  2 07:55:24 2021+Filesystem created:       Thu Oct 24 08:25:48 2024
 Last mount time:          n/a Last mount time:          n/a
-Last write time:          Wed Jun  2 07:55:24 2021+Last write time:          Thu Oct 24 08:26:00 2024
 Mount count:              0 Mount count:              0
 Maximum mount count:      -1 Maximum mount count:      -1
-Last checked:             Wed Jun  2 07:55:24 2021+Last checked:             Thu Oct 24 08:25:48 2024
 Check interval:           0 (<none>) Check interval:           0 (<none>)
 Reserved blocks uid:      0 (user root) Reserved blocks uid:      0 (user root)
 Reserved blocks gid:      0 (group root) Reserved blocks gid:      0 (group root)
 First inode:              11 First inode:              11
-Inode size:           128+Inode size:               256 
 +Required extra isize:     32 
 +Desired extra isize:      32
 Journal inode:            8 Journal inode:            8
 Default directory hash:   half_md4 Default directory hash:   half_md4
-Directory Hash Seed:      faee0b81-0538-4c06-8d86-468bc0c760ac+Directory Hash Seed:      e7f0145e-3007-4ee4-b433-4ac7d3480c57
 Journal backup:           inode blocks Journal backup:           inode blocks
 Journal features:         (none) Journal features:         (none)
-Journal size:             4096k +Total journal size:       4096k 
-Journal length:           4096+Total journal blocks:     4096 
 +Max transaction length:   4096 
 +Fast commit length:       0
 Journal sequence:         0x00000001 Journal sequence:         0x00000001
 Journal start:            0 Journal start:            0
Ligne 2849: Ligne 4169:
 **Important** : Le drapeau **Filesystem features:      has_journal ...** démontre que Ext3 est utilisé sur cette partition. **Important** : Le drapeau **Filesystem features:      has_journal ...** démontre que Ext3 est utilisé sur cette partition.
 </WRAP> </WRAP>
- 
-Les options de cette commande sont : 
- 
-<code> 
-[root@centos8 ~]# dumpe2fs --help 
-dumpe2fs 1.45.6 (20-Mar-2020) 
-dumpe2fs: invalid option -- '-' 
-Usage: dumpe2fs [-bfghimxV] [-o superblock=<num>] [-o blocksize=<num>] device 
-</code> 
  
 Pour supprimer le journal du système de fichier Ext3 sur cette partition, il convient d'utiliser la commande **tune2fs** Pour supprimer le journal du système de fichier Ext3 sur cette partition, il convient d'utiliser la commande **tune2fs**
  
 <code> <code>
-[root@centos8 ~]# tune2fs -O ^has_journal /dev/sdb12 +[root@redhat9 ~]# tune2fs -O ^has_journal /dev/sdb12 
-tune2fs 1.45.(20-Mar-2020) +tune2fs 1.46.(30-Dec-2021)
-</code> +
- +
-Les options de cette commande sont : +
- +
-<code> +
-[root@centos8 ~]# tune2fs --help +
-tune2fs 1.45.6 (20-Mar-2020) +
-tune2fs: invalid option -- '-' +
-Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-f] [-g group] +
- [-i interval[d|m|w]] [-j] [-J journal_options] [-l] +
- [-m reserved_blocks_percent] [-o [^]mount_options[,...]] +
- [-r reserved_blocks_count] [-u user] [-C mount_count] +
- [-L volume_label] [-M last_mounted_dir] +
- [-O [^]feature[,...]] [-Q quota_options] +
- [-E extended-option[,...]] [-T last_check_time] [-U UUID] +
- [-I new_inode_size] [-z undo_file] device+
 </code> </code>
  
Ligne 2885: Ligne 4180:
  
 <code> <code>
-[root@centos8 ~]# dumpe2fs -h /dev/sdb12 +[root@redhat9 ~]# dumpe2fs -h /dev/sdb12 
-dumpe2fs 1.45.(20-Mar-2020)+dumpe2fs 1.46.(30-Dec-2021)
 Filesystem volume name:   <none> Filesystem volume name:   <none>
 Last mounted on:          <not available> Last mounted on:          <not available>
-Filesystem UUID:          a2515f45-a32a-4e87-b7e6-170448f3f803+Filesystem UUID:          f489fe51-2f8b-444a-af89-9bb5b6301214
 Filesystem magic number:  0xEF53 Filesystem magic number:  0xEF53
 Filesystem revision #:    1 (dynamic) Filesystem revision #:    1 (dynamic)
Ligne 2901: Ligne 4196:
 Block count:              204800 Block count:              204800
 Reserved block count:     10240 Reserved block count:     10240
-Free blocks:              196787+Overhead clusters:        14399 
 +Free blocks:              190387
 Free inodes:              51189 Free inodes:              51189
 First block:              1 First block:              1
Ligne 2910: Ligne 4206:
 Fragments per group:      8192 Fragments per group:      8192
 Inodes per group:         2048 Inodes per group:         2048
-Inode blocks per group:   256 +Inode blocks per group:   512 
-Filesystem created:       Wed Jun  2 07:55:24 2021+Filesystem created:       Thu Oct 24 08:25:48 2024
 Last mount time:          n/a Last mount time:          n/a
-Last write time:          Wed Jun  2 07:59:01 2021+Last write time:          Thu Oct 24 08:27:14 2024
 Mount count:              0 Mount count:              0
 Maximum mount count:      -1 Maximum mount count:      -1
-Last checked:             Wed Jun  2 07:55:24 2021+Last checked:             Thu Oct 24 08:25:48 2024
 Check interval:           0 (<none>) Check interval:           0 (<none>)
 Reserved blocks uid:      0 (user root) Reserved blocks uid:      0 (user root)
 Reserved blocks gid:      0 (group root) Reserved blocks gid:      0 (group root)
 First inode:              11 First inode:              11
-Inode size:           128+Inode size:               256 
 +Required extra isize:     32 
 +Desired extra isize:      32
 Default directory hash:   half_md4 Default directory hash:   half_md4
-Directory Hash Seed:      faee0b81-0538-4c06-8d86-468bc0c760ac+Directory Hash Seed:      e7f0145e-3007-4ee4-b433-4ac7d3480c57
 Journal backup:           inode blocks Journal backup:           inode blocks
 </code> </code>
Ligne 2934: Ligne 4232:
  
 <code> <code>
-[root@centos8 ~]# fsck /dev/sdb12 +[root@redhat9 ~]# fsck /dev/sdb12 
-fsck from util-linux 2.32.1 +fsck from util-linux 2.37.4 
-e2fsck 1.45.(20-Mar-2020+e2fsck 1.46.(30-Dec-2021
-/dev/sdb12: clean, 11/51200 files, 8013/204800 blocks+/dev/sdb12: clean, 11/51200 files, 14413/204800 blocks
 </code> </code>
  
Ligne 2943: Ligne 4241:
  
 <code> <code>
-[root@centos8 ~]# mkdir /mnt/sdb12+[root@redhat9 ~]# mkdir /mnt/sdb12
 </code> </code>
  
Ligne 2949: Ligne 4247:
  
 <code> <code>
-[root@centos8 ~]# mount -t ext3 /dev/sdb12 /mnt/sdb12+[root@redhat9 ~]# mount -t ext3 /dev/sdb12 /mnt/sdb12
 mount: /mnt/sdb12: wrong fs type, bad option, bad superblock on /dev/sdb12, missing codepage or helper program, or other error. mount: /mnt/sdb12: wrong fs type, bad option, bad superblock on /dev/sdb12, missing codepage or helper program, or other error.
 </code> </code>
Ligne 2960: Ligne 4258:
  
 <code> <code>
-[root@centos8 ~]# mount -t ext2 /dev/sdb12 /mnt/sdb12+[root@redhat9 ~]# mount -t ext2 /dev/sdb12 /mnt/sdb12
 </code> </code>
  
-===LAB #12 - Convertir un Système de Fichiers Ext2 en Ext3===+===13.3 - Convertir un Système de Fichiers Ext2 en Ext3===
  
 Pour replacer le journal sur /dev/sdb12, il convient d'utiliser la commande **tune2fs** : Pour replacer le journal sur /dev/sdb12, il convient d'utiliser la commande **tune2fs** :
  
 <code> <code>
-[root@centos8 ~]# umount /mnt/sdb12+[root@redhat9 ~]# umount /mnt/sdb12
  
-[root@centos8 ~]# tune2fs -j /dev/sdb12 +[root@redhat9 ~]# tune2fs -j /dev/sdb12 
-tune2fs 1.45.(20-Mar-2020)+tune2fs 1.46.(30-Dec-2021)
 Creating journal inode: done Creating journal inode: done
 </code> </code>
Ligne 2979: Ligne 4277:
 </WRAP> </WRAP>
  
-===LAB #13 - Placer le Journal sur un autre Partition===+===13.4 - Placer le Journal sur un autre Partition===
  
 Le journal d'un système de fichiers peut être placé sur un autre périphérique bloc. Le journal d'un système de fichiers peut être placé sur un autre périphérique bloc.
Ligne 2986: Ligne 4284:
  
 <code> <code>
-[root@centos8 ~]# mke2fs -O journal_dev /dev/sdb11 +[root@redhat9 ~]# mdadm --stop /dev/md1 
-mke2fs 1.45.(20-Mar-2020)+mdadm: stopped /dev/md1 
 + 
 +[root@redhat9 ~]# mke2fs -O journal_dev /dev/sdb11 
 +mke2fs 1.46.(30-Dec-2021) 
 +/dev/sdb11 contains a linux_raid_member file system labelled 'redhat.ittraining.loc' 
 +Proceed anyway? (y,N) y 
 +Discarding device blocks: done                            
 Creating filesystem with 512000 1k blocks and 0 inodes Creating filesystem with 512000 1k blocks and 0 inodes
-Filesystem UUID: 23327281-e88a-4da0-bafa-50ee10c52937+Filesystem UUID: 5ab9820b-f652-4e79-99a9-07f5581cb312
 Superblock backups stored on blocks:  Superblock backups stored on blocks: 
  
Ligne 3002: Ligne 4306:
  
 <code> <code>
-[root@centos8 ~]# mke2fs -j -J device=/dev/sdb11 /dev/sdb12 +[root@redhat9 ~]# mke2fs -j -J device=/dev/sdb11 /dev/sdb12 
-mke2fs 1.45.(20-Mar-2020)+mke2fs 1.46.(30-Dec-2021)
 Using journal device's blocksize: 1024 Using journal device's blocksize: 1024
 /dev/sdb12 contains a ext3 file system /dev/sdb12 contains a ext3 file system
- last mounted on Wed Jun  2 08:03:11 2021+        last mounted on Thu Oct 24 08:29:20 2024
 Proceed anyway? (y,N) y Proceed anyway? (y,N) y
 +Discarding device blocks: done                            
 Creating filesystem with 204800 1k blocks and 51200 inodes Creating filesystem with 204800 1k blocks and 51200 inodes
-Filesystem UUID: 0e783411-6407-4cba-8db5-0e2729000c9e+Filesystem UUID: ac7c133a-3f15-4fa4-81df-b1a0c808a4d0
 Superblock backups stored on blocks:  Superblock backups stored on blocks: 
- 8193, 24577, 40961, 57345, 73729+        8193, 24577, 40961, 57345, 73729
  
 Allocating group tables: done                             Allocating group tables: done                            
Ligne 3023: Ligne 4328:
 </WRAP> </WRAP>
  
-===LAB #14 - Modifier la Fréquence de Vérification du Système de Fichiers Ext3===+===13.5 - Modifier la Fréquence de Vérification du Système de Fichiers Ext3===
  
 Pour modifier la fréquence de vérification du système de fichiers sur /dev/sdb12, il convient d'utiliser soit l'option **-c**, soit l'option **-i** : Pour modifier la fréquence de vérification du système de fichiers sur /dev/sdb12, il convient d'utiliser soit l'option **-c**, soit l'option **-i** :
  
 <code> <code>
-[root@centos8 ~]# tune2fs -i 100d /dev/sdb12 +[root@redhat9 ~]# tune2fs -i 100d /dev/sdb12 
-tune2fs 1.45.(20-Mar-2020)+tune2fs 1.46.(30-Dec-2021)
 Setting interval between checks to 8640000 seconds Setting interval between checks to 8640000 seconds
 </code> </code>
Ligne 3036: Ligne 4341:
  
 <code> <code>
-[root@centos8 ~]# dumpe2fs /dev/sdb12 | grep UUID +[root@redhat9 ~]# dumpe2fs /dev/sdb12 | grep UUID 
-dumpe2fs 1.45.(20-Mar-2020+dumpe2fs 1.46.(30-Dec-2021
-Filesystem UUID:          0e783411-6407-4cba-8db5-0e2729000c9e +Filesystem UUID:          ac7c133a-3f15-4fa4-81df-b1a0c808a4d0 
-Journal UUID:             23327281-e88a-4da0-bafa-50ee10c52937+Journal UUID:             5ab9820b-f652-4e79-99a9-07f5581cb312
 </code> </code>
  
-====Ext4====+====LAB #14 - Ext4====
  
 Le système de fichiers **Ext4** a été introduit dans le noyau **2.6.19** en mode expérimental et est devenu stable dans le noyau **2.6.28**. Le système de fichiers **Ext4** a été introduit dans le noyau **2.6.19** en mode expérimental et est devenu stable dans le noyau **2.6.28**.
Ligne 3062: Ligne 4367:
 Pour plus d'informations concernant %%Ext4%%, consultez **[[http://fr.wikipedia.org/wiki/Ext4|cette page]]**. Pour plus d'informations concernant %%Ext4%%, consultez **[[http://fr.wikipedia.org/wiki/Ext4|cette page]]**.
  
-===LAB #15 - Créer un Système de Fichiers Ext4===+===14.1 - Créer un Système de Fichiers Ext4===
  
 Créez un système de fichiers Ext4 sur **/dev/sdb11** : Créez un système de fichiers Ext4 sur **/dev/sdb11** :
  
 <code> <code>
-[root@centos8 ~]# mkfs.ext4 /dev/sdb11 +[root@redhat9 ~]# mkfs.ext4 /dev/sdb11 
-mke2fs 1.45.(20-Mar-2020)+mke2fs 1.46.(30-Dec-2021)
 /dev/sdb11 contains a jbd file system /dev/sdb11 contains a jbd file system
 Proceed anyway? (y,N) y Proceed anyway? (y,N) y
 +Discarding device blocks: done                            
 Creating filesystem with 512000 1k blocks and 128016 inodes Creating filesystem with 512000 1k blocks and 128016 inodes
-Filesystem UUID: 72a6ad08-7023-4561-adcb-d434e00afed1+Filesystem UUID: 52c3fea6-d28b-40db-b7e5-d3c289b51043
 Superblock backups stored on blocks:  Superblock backups stored on blocks: 
- 8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409+        8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
  
 Allocating group tables: done                             Allocating group tables: done                            
Ligne 3080: Ligne 4386:
 Creating journal (8192 blocks): done Creating journal (8192 blocks): done
 Writing superblocks and filesystem accounting information: done  Writing superblocks and filesystem accounting information: done 
-</code> 
- 
-Les options de cette commande sont : 
- 
-<code> 
-[root@centos8 ~]# mkfs.ext4 --help 
-mkfs.ext4: invalid option -- '-' 
-Usage: mkfs.ext4 [-c|-l filename] [-b block-size] [-C cluster-size] 
- [-i bytes-per-inode] [-I inode-size] [-J journal-options] 
- [-G flex-group-size] [-N number-of-inodes] [-d root-directory] 
- [-m reserved-blocks-percentage] [-o creator-os] 
- [-g blocks-per-group] [-L volume-label] [-M last-mounted-directory] 
- [-O feature[,...]] [-r fs-revision] [-E extended-option[,...]] 
- [-t fs-type] [-T usage-type ] [-U UUID] [-e errors_behavior][-z undo_file] 
- [-jnqvDFSV] device [blocks-count] 
 </code> </code>
  
Ligne 3100: Ligne 4391:
  
 <code> <code>
-[root@centos8 ~]# dumpe2fs /dev/sdb11 | more +[root@redhat9 ~]# dumpe2fs /dev/sdb11 | more 
-dumpe2fs 1.45.(20-Mar-2020)+dumpe2fs 1.46.(30-Dec-2021)
 Filesystem volume name:   <none> Filesystem volume name:   <none>
 Last mounted on:          <not available> Last mounted on:          <not available>
-Filesystem UUID:          72a6ad08-7023-4561-adcb-d434e00afed1+Filesystem UUID:          52c3fea6-d28b-40db-b7e5-d3c289b51043
 Filesystem magic number:  0xEF53 Filesystem magic number:  0xEF53
 Filesystem revision #:    1 (dynamic) Filesystem revision #:    1 (dynamic)
-Filesystem features:      has_journal ext_attr resize_inode dir_index filetype +Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
-xtent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize meta +
-data_csum+
 Filesystem flags:         signed_directory_hash  Filesystem flags:         signed_directory_hash 
 Default mount options:    user_xattr acl Default mount options:    user_xattr acl
Ligne 3118: Ligne 4407:
 Block count:              512000 Block count:              512000
 Reserved block count:     25600 Reserved block count:     25600
-Free blocks:              485316+Overhead clusters:        42672 
 +Free blocks:              469314
 Free inodes:              128005 Free inodes:              128005
 First block:              1 First block:              1
Ligne 3125: Ligne 4415:
 Group descriptor size:    64 Group descriptor size:    64
 Reserved GDT blocks:      256 Reserved GDT blocks:      256
 +Blocks per group:         8192
 +Fragments per group:      8192
 +Inodes per group:         2032
 +Inode blocks per group:   508
 +Flex block group size:    16
 +Filesystem created:       Thu Oct 24 08:35:02 2024
 +Last mount time:          n/a
 +Last write time:          Thu Oct 24 08:35:02 2024
 +Mount count:              0
 +Maximum mount count:      -1
 +Last checked:             Thu Oct 24 08:35:02 2024
 +Check interval:           0 (<none>)
 +Lifetime writes:          286 kB
 +Reserved blocks uid:      0 (user root)
 +Reserved blocks gid:      0 (group root)
 +First inode:              11
 +Inode size:               256
 +Required extra isize:     32
 +Desired extra isize:      32
 +Journal inode:            8
 +Default directory hash:   half_md4
 +Directory Hash Seed:      6bf0e2d7-9fb0-4c7b-8d32-b0ca3113c0cd
 +Journal backup:           inode blocks
 +Checksum type:            crc32c
 +Checksum:                 0xed59106b
 +Journal features:         (none)
 +Total journal size:       8M
 +Total journal blocks:     8192
 +Max transaction length:   8192
 +Fast commit length:       0
 +Journal sequence:         0x00000001
 +Journal start:            0
 +
 --More-- --More--
 </code> </code>
  
-===LAB #16 - Ajouter une Etiquette au Système de Fichiers Ext4===+===14.2 - Ajouter une Etiquette au Système de Fichiers Ext4===
  
 Utilisez la commande **e2label** pour associer une étiquette au système de fichiers : Utilisez la commande **e2label** pour associer une étiquette au système de fichiers :
  
 <code> <code>
-[root@centos8 ~]# e2label /dev/sdb11 my_ext4 +[root@redhat9 ~]# e2label /dev/sdb11 my_ext4 
-[root@centos8 ~]# dumpe2fs /dev/sdb11 | more + 
-dumpe2fs 1.45.(20-Mar-2020)+[root@redhat9 ~]# dumpe2fs /dev/sdb11 | more 
 +dumpe2fs 1.46.(30-Dec-2021)
 Filesystem volume name:   my_ext4 Filesystem volume name:   my_ext4
 Last mounted on:          <not available> Last mounted on:          <not available>
-Filesystem UUID:          72a6ad08-7023-4561-adcb-d434e00afed1+Filesystem UUID:          52c3fea6-d28b-40db-b7e5-d3c289b51043
 Filesystem magic number:  0xEF53 Filesystem magic number:  0xEF53
 Filesystem revision #:    1 (dynamic) Filesystem revision #:    1 (dynamic)
-Filesystem features:      has_journal ext_attr resize_inode dir_index filetype +Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
-xtent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize meta +
-data_csum+
 Filesystem flags:         signed_directory_hash  Filesystem flags:         signed_directory_hash 
 Default mount options:    user_xattr acl Default mount options:    user_xattr acl
Ligne 3152: Ligne 4474:
 Block count:              512000 Block count:              512000
 Reserved block count:     25600 Reserved block count:     25600
-Free blocks:              485316+Overhead clusters:        42672 
 +Free blocks:              469314
 Free inodes:              128005 Free inodes:              128005
 First block:              1 First block:              1
Ligne 3159: Ligne 4482:
 Group descriptor size:    64 Group descriptor size:    64
 Reserved GDT blocks:      256 Reserved GDT blocks:      256
 +Blocks per group:         8192
 +Fragments per group:      8192
 +Inodes per group:         2032
 +Inode blocks per group:   508
 +Flex block group size:    16
 +Filesystem created:       Thu Oct 24 08:35:02 2024
 +Last mount time:          n/a
 +Last write time:          Thu Oct 24 08:36:06 2024
 +Mount count:              0
 +Maximum mount count:      -1
 +Last checked:             Thu Oct 24 08:35:02 2024
 +Check interval:           0 (<none>)
 +Lifetime writes:          286 kB
 +Reserved blocks uid:      0 (user root)
 +Reserved blocks gid:      0 (group root)
 +First inode:              11
 +Inode size:               256
 +Required extra isize:     32
 +Desired extra isize:      32
 +Journal inode:            8
 +Default directory hash:   half_md4
 +Directory Hash Seed:      6bf0e2d7-9fb0-4c7b-8d32-b0ca3113c0cd
 +Journal backup:           inode blocks
 +Checksum type:            crc32c
 +Checksum:                 0x22e9a63d
 +Journal features:         (none)
 +Total journal size:       8M
 +Total journal blocks:     8192
 +Max transaction length:   8192
 +Fast commit length:       0
 +Journal sequence:         0x00000001
 +Journal start:            0
 +
 --More-- --More--
 </code> </code>
Ligne 3169: Ligne 4525:
  
 <code> <code>
-[root@centos8 ~]# mkdir /mnt/sdb11+[root@redhat9 ~]# mkdir /mnt/sdb11
  
-[root@centos8 ~]# mount -t ext3 /dev/sdb11 /mnt/sdb11 +[root@redhat9 ~]# mount -t ext3 /dev/sdb11 /mnt/sdb11 
-mount: /mnt/sdb11: wrong fs type, bad option, bad superblock on /dev/sdb11, missing codepage or helper program, or other error..+mount: /mnt/sdb11: wrong fs type, bad option, bad superblock on /dev/sdb11, missing codepage or helper program, or other error.
 </code> </code>
  
Ligne 3182: Ligne 4538:
  
 <code> <code>
-[root@centos8 ~]# mount /dev/sdb11 /mnt/sdb11+[root@redhat9 ~]# mount /dev/sdb11 /mnt/sdb11
  
-[root@centos8 ~]# mount | grep sdb11+[root@redhat9 ~]# mount | grep sdb11
 /dev/sdb11 on /mnt/sdb11 type ext4 (rw,relatime,seclabel) /dev/sdb11 on /mnt/sdb11 type ext4 (rw,relatime,seclabel)
 </code> </code>
Ligne 3192: Ligne 4548:
 </WRAP> </WRAP>
  
-===LAB #17 - Convertir un Système de Fichiers Ext3 en Ext4===+===14.3 - Convertir un Système de Fichiers Ext3 en Ext4===
  
 Créez un système de fichiers ext3 sur /dev/sdb12 : Créez un système de fichiers ext3 sur /dev/sdb12 :
  
 <code> <code>
-[root@centos8 ~]# mkfs.ext3 /dev/sdb12 +[root@redhat9 ~]# mkfs.ext3 /dev/sdb12 
-mke2fs 1.45.(20-Mar-2020)+mke2fs 1.46.(30-Dec-2021)
 /dev/sdb12 contains a ext3 file system /dev/sdb12 contains a ext3 file system
- created on Wed Jun  2 08:10:40 2021+        created on Thu Oct 24 08:33:41 2024
 Proceed anyway? (y,N) y Proceed anyway? (y,N) y
 +Discarding device blocks: done                            
 Creating filesystem with 204800 1k blocks and 51200 inodes Creating filesystem with 204800 1k blocks and 51200 inodes
-Filesystem UUID: b73322d4-f2e4-43bc-96ae-422d4584f3de+Filesystem UUID: aed27e98-82d1-4a9d-a072-5f73162e8f4c
 Superblock backups stored on blocks:  Superblock backups stored on blocks: 
- 8193, 24577, 40961, 57345, 73729+        8193, 24577, 40961, 57345, 73729
  
 Allocating group tables: done                             Allocating group tables: done                            
Ligne 3216: Ligne 4573:
  
 <code> <code>
-[root@centos8 ~]# mount /dev/sdb12 /mnt/sdb12+[root@redhat9 ~]# mount /dev/sdb12 /mnt/sdb12
  
-[root@centos8 ~]# ls -l /mnt/sdb12+[root@redhat9 ~]# ls -l /mnt/sdb12
 total 12 total 12
-drwx------. 2 root root 12288 Jun  2 08:42 lost+found+drwx------. 2 root root 12288 Oct 24 08:38 lost+found
 </code> </code>
  
Ligne 3226: Ligne 4583:
  
 <code> <code>
-[root@centos8 ~]# touch /mnt/sdb12/check_file+[root@redhat9 ~]# touch /mnt/sdb12/check_file
 </code> </code>
  
Ligne 3232: Ligne 4589:
  
 <code> <code>
-[root@centos8 ~]# echo "check file" > /mnt/sdb12/check_file+[root@redhat9 ~]# echo "check file" > /mnt/sdb12/check_file
  
-[root@centos8 ~]# umount /dev/sdb12+[root@redhat9 ~]# umount /dev/sdb12
 </code> </code>
  
Ligne 3240: Ligne 4597:
  
 <code> <code>
-[root@centos8 ~]# e2fsck /dev/sdb12 +[root@redhat9 ~]# e2fsck /dev/sdb12 
-e2fsck 1.45.(20-Mar-2020+e2fsck 1.46.(30-Dec-2021
-/dev/sdb12: clean, 12/51200 files, 12128/204800 blocks+/dev/sdb12: clean, 12/51200 files, 18527/204800 blocks
 </code> </code>
  
Ligne 3248: Ligne 4605:
  
 <code> <code>
-[root@centos8 ~]# tune2fs -O extents,uninit_bg,dir_index /dev/sdb12 +[root@redhat9 ~]# tune2fs -O extents,uninit_bg,dir_index /dev/sdb12 
-tune2fs 1.45.(20-Mar-2020)+tune2fs 1.46.(30-Dec-2021)
 </code> </code>
  
Ligne 3255: Ligne 4612:
  
 <code> <code>
-[root@centos8 ~]# e2fsck -fDC0 /dev/sdb12 +[root@redhat9 ~]# e2fsck -fDC0 /dev/sdb12 
-e2fsck 1.45.(20-Mar-2020)+e2fsck 1.46.(30-Dec-2021)
 Pass 1: Checking inodes, blocks, and sizes Pass 1: Checking inodes, blocks, and sizes
 Pass 2: Checking directory structure                                            Pass 2: Checking directory structure                                           
Ligne 3265: Ligne 4622:
                                                                                                                                                                  
 /dev/sdb12: ***** FILE SYSTEM WAS MODIFIED ***** /dev/sdb12: ***** FILE SYSTEM WAS MODIFIED *****
-/dev/sdb12: 12/51200 files (0.0% non-contiguous), 12128/204800 blocks+/dev/sdb12: 12/51200 files (0.0% non-contiguous), 18527/204800 blocks
 </code> </code>
  
Ligne 3271: Ligne 4628:
  
 <code> <code>
-[root@centos8 ~]# mount -t ext3 /dev/sdb12 /mnt/sdb12+[root@redhat9 ~]# mount -t ext3 /dev/sdb12 /mnt/sdb12
 mount: /mnt/sdb12: wrong fs type, bad option, bad superblock on /dev/sdb12, missing codepage or helper program, or other error. mount: /mnt/sdb12: wrong fs type, bad option, bad superblock on /dev/sdb12, missing codepage or helper program, or other error.
 </code> </code>
Ligne 3278: Ligne 4635:
  
 <code> <code>
-[root@centos8 ~]# mount /dev/sdb12 /mnt/sdb12+[root@redhat9 ~]# mount /dev/sdb12 /mnt/sdb12
  
-[root@centos8 ~]# ls -l /mnt/sdb12 +[root@redhat9 ~]# ls -l /mnt/sdb12 
-total 14 +total 13 
--rw-r--r--. 1 root root    11 Jun  2 08:45 check_file +-rw-r--r--. 1 root root    11 Oct 24 08:39 check_file 
-drwx------. 2 root root 12288 Jun  2 08:42 lost+found+drwx------. 2 root root 12288 Oct 24 08:38 lost+found
  
-[root@centos8 ~]# cat /mnt/sdb12/check_file+[root@redhat9 ~]# cat /mnt/sdb12/check_file
 check file check file
 </code> </code>
Ligne 3292: Ligne 4649:
  
 <code> <code>
-[root@centos8 ~]# dumpe2fs /dev/sdb11 | grep UUID +[root@redhat9 ~]# dumpe2fs /dev/sdb11 | grep UUID 
-dumpe2fs 1.45.(20-Mar-2020+dumpe2fs 1.46.(30-Dec-2021
-Filesystem UUID:          72a6ad08-7023-4561-adcb-d434e00afed1+Filesystem UUID:          52c3fea6-d28b-40db-b7e5-d3c289b51043
  
-[root@centos8 ~]# dumpe2fs /dev/sdb12 | grep UUID +[root@redhat9 ~]# dumpe2fs /dev/sdb12 | grep UUID 
-dumpe2fs 1.45.(20-Mar-2020+dumpe2fs 1.46.(30-Dec-2021
-Filesystem UUID:          b73322d4-f2e4-43bc-96ae-422d4584f3de+Filesystem UUID:          aed27e98-82d1-4a9d-a072-5f73162e8f4c
 </code> </code>
  
-====XFS====+====LAB #15 - XFS====
  
-XFS est un système de fichiers 64-bit journalisé de haute performance crée par SGI pour son système d'exploitation IRIX. XFS est inclus par défaut avec les versions du noyau Linux 2.5.xx et 2.6.xx. XFS est le système de fichiers par défaut de RHEL/CentOS 8.+XFS est un système de fichiers 64-bit journalisé de haute performance crée par SGI pour son système d'exploitation IRIX. XFS est inclus par défaut avec les versions du noyau Linux 2.5.xx et 2.6.xx. XFS est le système de fichiers par défaut de RedHat 9.
  
 <WRAP center round important 60%> <WRAP center round important 60%>
Ligne 3311: Ligne 4668:
 Pour plus d'informations concernant XFS, consultez **[[http://en.wikipedia.org/wiki/XFS|cette page]]**. Pour plus d'informations concernant XFS, consultez **[[http://en.wikipedia.org/wiki/XFS|cette page]]**.
  
-===LAB #18 - Créer un Système de Fichiers XFS===+===15.1 - Créer un Système de Fichiers XFS===
  
 Démontez **/dev/sdb12** : Démontez **/dev/sdb12** :
  
 <code> <code>
-[root@centos8 ~]# umount /dev/sdb12+[root@redhat9 ~]# umount /dev/sdb12
 </code> </code>
  
Ligne 3322: Ligne 4679:
  
 <code> <code>
-[root@centos8 ~]# mkfs.xfs -f /dev/sdb12+[root@redhat9 ~]# mkfs.xfs -f /dev/sdb12 
 +Filesystem should be larger than 300MB. 
 +Log size should be at least 64MB. 
 +Support for filesystems like this one is deprecated and they will not be supported in future releases.
 meta-data=/dev/sdb12             isize=512    agcount=4, agsize=12800 blks meta-data=/dev/sdb12             isize=512    agcount=4, agsize=12800 blks
                                sectsz=512   attr=2, projid32bit=1                                sectsz=512   attr=2, projid32bit=1
                                crc=1        finobt=1, sparse=1, rmapbt=0                                crc=1        finobt=1, sparse=1, rmapbt=0
-                               reflink=1+                               reflink=1    bigtime=1 inobtcount=1 nrext64=0
 data                           bsize=4096   blocks=51200, imaxpct=25 data                           bsize=4096   blocks=51200, imaxpct=25
                                sunit=0      swidth=0 blks                                sunit=0      swidth=0 blks
Ligne 3333: Ligne 4693:
                                sectsz=512   sunit=0 blks, lazy-count=1                                sectsz=512   sunit=0 blks, lazy-count=1
 realtime =none                   extsz=4096   blocks=0, rtextents=0 realtime =none                   extsz=4096   blocks=0, rtextents=0
 +Discarding blocks...Done.
 </code> </code>
  
Ligne 3338: Ligne 4699:
 **Important** - Notez l'utilisation de l'option **-f** afin d'écraser le système de fichiers Ext4 existant. **Important** - Notez l'utilisation de l'option **-f** afin d'écraser le système de fichiers Ext4 existant.
 </WRAP> </WRAP>
- 
-Les options de cette commande sont : 
- 
-<code> 
-[root@centos8 ~]# mkfs.xfs --help 
-mkfs.xfs: invalid option -- '-' 
-unknown option --  
-Usage: mkfs.xfs 
-/* blocksize */ [-b size=num] 
-/* metadata */ [-m crc=0|1,finobt=0|1,uuid=xxx,rmapbt=0|1,reflink=0|1] 
-/* data subvol */ [-d agcount=n,agsize=n,file,name=xxx,size=num, 
-     (sunit=value,swidth=value|su=num,sw=num|noalign), 
-     sectsize=num 
-/* force overwrite */ [-f] 
-/* inode size */ [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2, 
-     projid32bit=0|1,sparse=0|1] 
-/* no discard */ [-K] 
-/* log subvol */ [-l agnum=n,internal,size=num,logdev=xxx,version=n 
-     sunit=value|su=num,sectsize=num,lazy-count=0|1] 
-/* label */ [-L label (maximum 12 characters)] 
-/* naming */ [-n size=num,version=2|ci,ftype=0|1] 
-/* no-op info only */ [-N] 
-/* prototype file */ [-p fname] 
-/* quiet */ [-q] 
-/* realtime subvol */ [-r extsize=num,size=num,rtdev=xxx] 
-/* sectorsize */ [-s size=num] 
-/* version */ [-V] 
- devicename 
-<devicename> is required unless -d name=xxx is given. 
-<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB), 
-      xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB). 
-<value> is xxx (512 byte blocks). 
-</code> 
  
 Consultez maintenant les caractéristiques du système de fichier : Consultez maintenant les caractéristiques du système de fichier :
  
 <code> <code>
-[root@centos8 ~]# xfs_info /dev/sdb12+[root@redhat9 ~]# xfs_info /dev/sdb12
 meta-data=/dev/sdb12             isize=512    agcount=4, agsize=12800 blks meta-data=/dev/sdb12             isize=512    agcount=4, agsize=12800 blks
                                sectsz=512   attr=2, projid32bit=1                                sectsz=512   attr=2, projid32bit=1
                                crc=1        finobt=1, sparse=1, rmapbt=0                                crc=1        finobt=1, sparse=1, rmapbt=0
-                               reflink=1+                               reflink=1    bigtime=1 inobtcount=1 nrext64=0
 data                           bsize=4096   blocks=51200, imaxpct=25 data                           bsize=4096   blocks=51200, imaxpct=25
                                sunit=0      swidth=0 blks                                sunit=0      swidth=0 blks
Ligne 3388: Ligne 4716:
 </code> </code>
  
-Les options de cette commande sont : +===15.2 - Ajouter une Etiquette au Système de Fichiers XFS===
- +
-<code> +
-[root@centos8 ~]# xfs_info --help +
-/usr/sbin/xfs_info: illegal option -- - +
-Usage: xfs_info [-V] [-t mtab] [mountpoint|device|file] +
-</code> +
- +
-===LAB #19 - Ajouter une Etiquette au Système de Fichiers XFS===+
  
 Utilisez la commande **xfs_admin** pour associer une étiquette au système de fichiers : Utilisez la commande **xfs_admin** pour associer une étiquette au système de fichiers :
  
 <code> <code>
-[root@centos8 ~]# xfs_admin -L my_xfs /dev/sdb12 +[root@redhat9 ~]# xfs_admin -L my_xfs /dev/sdb12
-xfs_admin: /dev/sdb12 contains a mounted filesystem +
- +
-fatal error -- couldn't initialize XFS library +
- +
-[root@centos8 ~]# umount /dev/sdb12 +
- +
-[root@centos8 ~]# xfs_admin -L my_xfs /dev/sdb12+
 writing all SBs writing all SBs
 new label = "my_xfs" new label = "my_xfs"
 </code> </code>
- 
-<WRAP center round important 60%> 
-**Important** - Notez que la partition XFS doit être démonté pour pouvoir utiliser la commande **xfs_admin**. 
-</WRAP> 
  
 Pour voir l'étiquette, utilisez la commande suivante : Pour voir l'étiquette, utilisez la commande suivante :
  
 <code> <code>
-[root@centos8 ~]# xfs_admin -l /dev/sdb12+root@redhat9 ~]# xfs_admin -l /dev/sdb12
 label = "my_xfs" label = "my_xfs"
 </code> </code>
Ligne 3427: Ligne 4736:
 **Important** - Notez que l'étiquette doit être de 12 caractères maximum. **Important** - Notez que l'étiquette doit être de 12 caractères maximum.
 </WRAP> </WRAP>
- 
-Les options de cette commande sont : 
- 
-<code> 
-[root@centos8 ~]# xfs_admin --help 
-/usr/sbin/xfs_admin: illegal option -- - 
-Usage: xfs_admin [-efjlpuV] [-c 0|1] [-L label] [-U uuid] device 
-</code> 
  
 Dernièrement, pour obtenir seul l'UUID du système de fichiers, utilisez la commande **xfs-admin** et l'option **-u** : Dernièrement, pour obtenir seul l'UUID du système de fichiers, utilisez la commande **xfs-admin** et l'option **-u** :
  
 <code> <code>
-[root@centos8 ~]# xfs_admin -u /dev/sdb12 +[root@redhat9 ~]# xfs_admin -u /dev/sdb12 
-UUID = 15db1b62-0866-4aa4-9ac1-3ac325a4e20f+UUID = 0b61a609-6997-4c63-9de9-d3d316c4d5d7
 </code> </code>
  
Ligne 3493: Ligne 4794:
 | Change the label on a filesystem | e2label | e2label | xfs_admin | reiserfstune | jfs_tune | btrfs filesystem label | | Change the label on a filesystem | e2label | e2label | xfs_admin | reiserfstune | jfs_tune | btrfs filesystem label |
  
-=====LAB #20 - Créer un Système de Fichiers ISO=====+=====LAB #16 - Créer un Système de Fichiers ISO=====
  
-====La Commande mkisofs====+====16.1 - La Commande mkisofs====
  
 Pour créer un fichier ISO à partir d'une arborescence de fichiers, il convient d'utiliser la commande **mkisofs** : Pour créer un fichier ISO à partir d'une arborescence de fichiers, il convient d'utiliser la commande **mkisofs** :
  
 <code> <code>
-[root@centos8 ~]# cd /tmp +[root@redhat9 ~]# cd /tmp 
-[root@centos8 tmp]# mkisofs -r -T -o tmp.iso . + 
-I: -input-charset not specifiedusing utf-8 (detected in locale settings) +[root@redhat9 tmp]# mkisofs -r -T -o tmp.iso . 
-Total translation table size1827 +bashmkisofs: command not found... 
-Total rockridge attributes bytes1976 +Install package 'xorriso' to provide command 'mkisofs'? [N/y] y 
-Total directory bytes14336 + 
-Path table size(bytes)122 + 
-Max brk space used 1c000 + * Waiting in queue...  
-186 extents written (MB)+ * Loading list of packages....  
 +The following packages have to be installed: 
 + libburn-1.5.4-4.el9.x86_64     Library for readingmastering and writing optical discs 
 + libisoburn-1.5.4-4.el9.x86_64  Library to enable creation and expansion of ISO-9660 filesystems 
 + libisofs-1.5.4-4.el9.x86_64    Library to create ISO 9660 disk images 
 + xorriso-1.5.4-4.el9.x86_64     ISO-9660 and Rock Ridge image manipulation tool 
 +Proceed with changes? [N/y] y 
 + 
 + 
 + * Waiting in queue...  
 + * Waiting for authentication...  
 + * Waiting in queue...  
 + * Downloading packages...  
 + * Requesting data...  
 + * Testing changes...  
 + * Installing packages...  
 +xorriso 1.5.4 RockRidge filesystem manipulator, libburnia project. 
 + 
 +Drive current-outdev 'stdio:tmp.iso' 
 +Media current: stdio file, overwriteable 
 +Media status : is blank 
 +Media summary: 0 sessions, 0 data blocks, 0 data, 37.0g free 
 +xorriso : NOTE : -as genisofs: Ignored option '-T' 
 +Added to ISO image: directory '/'='/tmp' 
 +xorriso UPDATE :      37 files added in 1 seconds 
 +xorriso UPDATE :      37 files added in 1 seconds 
 +ISO image produced: 202 sectors 
 +Written to medium : 202 sectors at LBA 0 
 +Writing to 'stdio:tmp.iso' completed successfully.
 </code> </code>
  
Ligne 3514: Ligne 4843:
  
 <code> <code>
-[root@centos8 tmp]# mount tmp.iso /mnt -o loop +[root@redhat9 tmp]# mount tmp.iso /mnt -o loop 
-mount: /mnt: WARNING: device write-protected, mounted read-only. +mount: /mnt: WARNING: source write-protected, mounted read-only. 
-[root@centos8 tmp]# ls /mnt + 
-systemd-private-192104a9224f499286f5adb5754e9e04-chronyd.service-FI2YXs  TRANS.TBL  vg0_backup +[root@redhat9 tmp]# ls /mnt 
-[root@centos8 tmp]# ls  +copy.html        file2                                                                         systemd-private-aea59c32b8804212a7e18c402fe2ec29-power-profiles-daemon.service-NoPIRE 
-systemd-private-192104a9224f499286f5adb5754e9e04-chronyd.service-FI2YXs  tmp.iso  vg0_backup+dbus-59XI29LyuI  systemd-private-aea59c32b8804212a7e18c402fe2ec29-colord.service-pQIfSx        systemd-private-aea59c32b8804212a7e18c402fe2ec29-rtkit-daemon.service-RLivCo 
 +dbus-K54lUGWRFp  systemd-private-aea59c32b8804212a7e18c402fe2ec29-dbus-broker.service-Ca2dJ4   systemd-private-aea59c32b8804212a7e18c402fe2ec29-switcheroo-control.service-DAQKND 
 +dbus-pLIWTki5B4  systemd-private-aea59c32b8804212a7e18c402fe2ec29-httpd.service-LSYL6G         systemd-private-aea59c32b8804212a7e18c402fe2ec29-systemd-logind.service-areXk6 
 +dbus-UpdINCi7Cg  systemd-private-aea59c32b8804212a7e18c402fe2ec29-kdump.service-T3uYS0         systemd-private-aea59c32b8804212a7e18c402fe2ec29-upower.service-gbX2j7 
 +file1            systemd-private-aea59c32b8804212a7e18c402fe2ec29-ModemManager.service-yO8983  vg0_backup 
 + 
 +[root@redhat9 tmp]# ls 
 +copy.html        systemd-private-aea59c32b8804212a7e18c402fe2ec29-colord.service-pQIfSx                 systemd-private-aea59c32b8804212a7e18c402fe2ec29-switcheroo-control.service-DAQKND 
 +dbus-59XI29LyuI  systemd-private-aea59c32b8804212a7e18c402fe2ec29-dbus-broker.service-Ca2dJ4            systemd-private-aea59c32b8804212a7e18c402fe2ec29-systemd-logind.service-areXk6 
 +dbus-K54lUGWRFp  systemd-private-aea59c32b8804212a7e18c402fe2ec29-httpd.service-LSYL6G                  systemd-private-aea59c32b8804212a7e18c402fe2ec29-upower.service-gbX2j7 
 +dbus-pLIWTki5B4  systemd-private-aea59c32b8804212a7e18c402fe2ec29-kdump.service-T3uYS0                  tmp.iso 
 +dbus-UpdINCi7Cg  systemd-private-aea59c32b8804212a7e18c402fe2ec29-ModemManager.service-yO8983           vg0_backup 
 +file1            systemd-private-aea59c32b8804212a7e18c402fe2ec29-power-profiles-daemon.service-NoPIRE 
 +file2            systemd-private-aea59c32b8804212a7e18c402fe2ec29-rtkit-daemon.service-RLivCo
 </code> </code>
  
Ligne 3525: Ligne 4867:
  
 <code> <code>
-[root@centos8 tmp]# cd ~ +[root@redhat9 tmp]# cd ~ 
-[root@centos8 ~]# umount /tmp/tmp.iso+ 
 +[root@redhat9 ~]# umount /tmp/tmp.iso
 </code> </code>
  
Ligne 3534: Ligne 4877:
  
 <code> <code>
-[root@centos8 ~]# mkisofs --help +[root@redhat9 ~]# mkisofs --help 
-Usage: genisoimage [options] file...+Usage: xorriso -as mkisofs [options] file... 
 +Note: This is not mkisofs. See xorriso -help, xorriso -version, man xorrisofs
 Options: Options:
-  -nobak                      Do not include backup files 
-  -no-bak                     Do not include backup files 
-  -abstract FILE              Set Abstract filename 
-  -A ID, -appid ID            Set Application ID 
-  -biblio FILE                Set Bibliographic filename 
-  -cache-inodes               Cache inodes (needed to detect hard links) 
-  -no-cache-inodes            Do not cache inodes (if filesystem has no unique unides) 
-  -check-oldnames             Check all imported ISO9660 names from old session 
-  -check-session FILE         Check all ISO9660 names from previous session 
-  -copyright FILE             Set Copyright filename 
-  -debug                      Set debug flag 
-  -b FILE, -eltorito-boot FILE 
-                              Set El Torito boot image name 
-  -e FILE, -efi-boot FILE     Set EFI boot image name 
-  -eltorito-alt-boot          Start specifying alternative El Torito boot parameters 
-  -B FILES, -sparc-boot FILES Set sparc boot image names 
-  -sunx86-boot FILES          Set sunx86 boot image names 
-  -G FILE, -generic-boot FILE Set generic boot image name 
-  -sparc-label label text     Set sparc boot disk label 
-  -sunx86-label label text    Set sunx86 boot disk label 
-  -c FILE, -eltorito-catalog FILE 
-                              Set El Torito boot catalog name 
-  -C PARAMS, -cdrecord-params PARAMS 
-                              Magic paramters from cdrecord 
-  -d, -omit-period            Omit trailing periods from filenames (violates ISO9660) 
-  -dir-mode mode              Make the mode of all directories this mode. 
-  -D, -disable-deep-relocation 
-                              Disable deep directory relocation (violates ISO9660) 
-  -file-mode mode             Make the mode of all plain files this mode. 
   -f, -follow-links           Follow symbolic links   -f, -follow-links           Follow symbolic links
-  -gid gid                    Make the group owner of all files this gid. 
   -graft-points               Allow to use graft points for filenames   -graft-points               Allow to use graft points for filenames
-  -root DIR                   Set root directory for all new files and directories 
-  -old-root DIR               Set root directory in previous session that is searched for files 
   -help                       Print option help   -help                       Print option help
 +  -hfsplus                    Generate HFS+ filesystem
 +  -hfsplus-file-creator-type CREATOR TYPE iso_rr_path
 +                              Attach creator and type to a File
 +  -hfs-bless FOLDER_NAME      Name of Folder to be blessed
 +  -hfs-bless-by BLESS_TYPE ISO_RR_PATH
 +                              Bless ISO_RR_PATH by BLESS_TYPE {p,i,s,9,x}
 +  -hfsplus-serial-no HEXSTRING
 +                              HFS serial number: 16 characters [0-9a-fA-F]
 +  -hfsplus-block-size NUMBER  Set HFS+ block size
 +  -apm-block-size NUMBER      Set Apple Partition Map block size
   -hide GLOBFILE              Hide ISO9660/RR file   -hide GLOBFILE              Hide ISO9660/RR file
   -hide-list FILE             File with list of ISO9660/RR files to hide   -hide-list FILE             File with list of ISO9660/RR files to hide
-  -hidden GLOBFILE            Set hidden attribute on ISO9660 file 
-  -hidden-list FILE           File with list of ISO9660 files with hidden attribute 
   -hide-joliet GLOBFILE       Hide Joliet file   -hide-joliet GLOBFILE       Hide Joliet file
   -hide-joliet-list FILE      File with list of Joliet files to hide   -hide-joliet-list FILE      File with list of Joliet files to hide
-  -hide-joliet-trans-tbl      Hide TRANS.TBL from Joliet tree +  -hide-hfsplus GLOBFILE      Hide HFS+ file 
-  -hide-rr-moved              Rename RR_MOVED to .rr_moved in Rock Ridge tree +  -hide-hfsplus-list FILE     File with list of HFS+ files to hide
-  -gui                        Switch behaviour for GUI +
-  -i ADD_FILES                No longer supported+
   -input-charset CHARSET      Local input charset for file name conversion   -input-charset CHARSET      Local input charset for file name conversion
   -output-charset CHARSET     Output charset for file name conversion   -output-charset CHARSET     Output charset for file name conversion
   -iso-level LEVEL            Set ISO9660 conformance level (1..3) or 4 for ISO9660 version 2   -iso-level LEVEL            Set ISO9660 conformance level (1..3) or 4 for ISO9660 version 2
 +  -disallow_dir_id_ext        Do not allow dot in ISO directory names
   -J, -joliet                 Generate Joliet directory information   -J, -joliet                 Generate Joliet directory information
   -joliet-long                Allow Joliet file names to be 103 Unicode characters   -joliet-long                Allow Joliet file names to be 103 Unicode characters
-  -jcharset CHARSET           Local charset for Joliet directory information+  -joliet-utf16               Encode Joliet names in UTF-16BE rather than UCS-2 
 +  -U, -untranslated-filenames Allow Untranslated filenames (for HPUX & AIX - violates ISO9660). 
 +  -untranslated_name_len LEN  Allow up to LEN (1..96) name characters (heavily violates ISO9660). 
 +  -allow-lowercase            Allow lower case characters in addition to the current character set (violates ISO9660) 
 +  -relaxed-filenames          Allow 7 bit ASCII except lower case characters (violates ISO9660) 
 +  -d, -omit-period            Omit trailing periods from filenames (violates ISO9660)
   -l, -full-iso9660-filenames Allow full 31 character filenames for ISO9660 names   -l, -full-iso9660-filenames Allow full 31 character filenames for ISO9660 names
   -max-iso9660-filenames      Allow 37 character filenames for ISO9660 names (violates ISO9660)   -max-iso9660-filenames      Allow 37 character filenames for ISO9660 names (violates ISO9660)
-  -allow-limited-size         Allow different file sizes in ISO9660/UDF on large files +  -N, -omit-version-number    Omit version number from ISO9660 filename (violates ISO9660) 
-  -allow-leading-dots         Allow ISO9660 filenames to start with '.' (violates ISO9660) +  -D, -disable-deep-relocation 
-  -ldots                      Allow ISO9660 filenames to start with '.' (violates ISO9660) +                              Disable deep directory relocation (violates ISO9660) 
-  -L, -allow-leading-dots     Allow ISO9660 filenames to start with '.' (violates ISO9660) +  -hide-rr-moved              Relocate deep directories to /.rr_moved 
-  -log-file LOG_FILE          Re-direct messages to LOG_FILE+  -rr_reloc_dir NAME          Set deep directory relocation target in root 
 +  -uid uid                    Make the owner of all files this uid. 
 +  -gid gid                    Make the group owner of all files this gid
 +  -o FILE, -output FILE       Set output file name
   -m GLOBFILE, -exclude GLOBFILE   -m GLOBFILE, -exclude GLOBFILE
                               Exclude file name                               Exclude file name
 +  -x FILE, -old-exclude FILE  Exclude file name
   -exclude-list FILE          File with list of file names to exclude   -exclude-list FILE          File with list of file names to exclude
-  -pad                        Pad output to a multiple of 32k (default) +  -pad                        Pad output by 300k (default) 
-  -no-pad                     Do not pad output to a multiple of 32k+  -no-pad                     Do not pad output
   -M FILE, -prev-session FILE Set path to previous session to merge   -M FILE, -prev-session FILE Set path to previous session to merge
-  -dev SCSIdev                Set path to previous session to merge +  -C PARAMS, -cdrecord-params PARAMS 
-  -N, -omit-version-number    Omit version number from ISO9660 filename (violates ISO9660) +                              Magic paramters from cdrecord 
-  -new-dir-mode mode          Mode used when creating new directories. +  -dir-mode mode              Make the mode of all directories this mode
-  -force-rr                   Inhibit automatic Rock Ridge detection for previous session +  -file-mode mode             Make the mode of all plain files this mode.
-  -no-rr                      Inhibit reading of Rock Ridge attributes from previous session +
-  -no-split-symlink-components +
-                              Inhibit splitting symlink components +
-  -no-split-symlink-fields    Inhibit splitting symlink fields +
-  -o FILE, -output FILE       Set output file name+
   -path-list FILE             File with list of pathnames to process   -path-list FILE             File with list of pathnames to process
-  -p PREP, -preparer PREP     Set Volume preparer+  --quoted_path_list FILE     File with list of quoted pathnames to process
   -print-size                 Print estimated filesystem size and exit   -print-size                 Print estimated filesystem size and exit
-  -publisher PUB              Set Volume publisher 
-  -P PUB, -publisher PUB      Set Volume publisher 
   -quiet                      Run quietly   -quiet                      Run quietly
-  -r, -rational-rock          Generate rationalized Rock Ridge directory information+  -gui                        Switch behaviour for GUI
   -R, -rock                   Generate Rock Ridge directory information   -R, -rock                   Generate Rock Ridge directory information
-  -s TYPE, -sectype TYPE      Set output sector type to e.g. data/xa1/raw +  -r, -rational-rock          Generate rationalized Rock Ridge directory information 
-  -alpha-boot FILE            Set alpha boot image name (relative to image root) +  --norock                    Disable Rock Ridge. (Strongly discouraged !) 
-  -hppa-cmdline CMDLINE       Set hppa boot command line (relative to image root) +  -file_name_limit LEN        Set truncation limit for Rock Ridge names 
-  -hppa-kernel-32 FILE        Set hppa 32-bit image name (relative to image root) +  --hardlinks                 Record eventual hard link relations of files 
-  -hppa-kernel-64 FILE        Set hppa 64-bit image name (relative to image root) +  --acl                       Record eventual ACLs of files 
-  -hppa-bootloader FILE       Set hppa boot loader file name (relative to image root) +  --xattr                     Record eventual user space xattr of files 
-  -hppa-ramdisk FILE          Set hppa ramdisk file name (relative to image root) +  --xattr-any                 Record xattr of any namespace, not only user. 
-  -mips-boot FILE             Set mips boot image name (relative to image root) +  --md5                       Compute and record MD5 checksums of data files 
-  -mipsel-boot FILE           Set mipsel boot image name (relative to image root)+  --scdbackup_tag PATH NAME   With --md5 record a scdbackup checksum tag 
 +  --for_backup                Use all options which improve backup fidelity 
 +  -V ID, -volid ID            Set Volume ID 
 +  -volset ID                  Set Volume set ID 
 +  -publisher PUB              Set Volume publisher 
 +  -A ID, -appid ID            Set Application ID 
 +  -sysid ID                   Set System ID 
 +  -p PREP, -preparer PREP     Set Volume preparer 
 +  -abstract FILE              Set Abstract filename 
 +  -biblio FILE                Set Bibliographic filename 
 +  -copyright FILE             Set Copyright filename 
 +  --application_use CHAR|PATH  Set content of Application Use field
   -jigdo-jigdo FILE           Produce a jigdo .jigdo file as well as the .iso   -jigdo-jigdo FILE           Produce a jigdo .jigdo file as well as the .iso
   -jigdo-template FILE        Produce a jigdo .template file as well as the .iso   -jigdo-template FILE        Produce a jigdo .template file as well as the .iso
   -jigdo-min-file-size SIZE   Minimum size for a file to be listed in the jigdo file   -jigdo-min-file-size SIZE   Minimum size for a file to be listed in the jigdo file
-  -jigdo-force-md5 PATTERN    Pattern(s) where files MUST match an externally-supplied MD5sum+  -jigdo-force-checksum PTRN  Pattern(s) where files MUST match an externally-supplied checksum 
 +  -jigdo-force-md5 PATTERN    Outdated alias of -jigdo-force-checksum
   -jigdo-exclude PATTERN      Pattern(s) to exclude from the jigdo file   -jigdo-exclude PATTERN      Pattern(s) to exclude from the jigdo file
   -jigdo-map PATTERN1=PATTERN2   -jigdo-map PATTERN1=PATTERN2
                               Pattern(s) to map paths (e.g. Debian=/mirror/debian)                               Pattern(s) to map paths (e.g. Debian=/mirror/debian)
-  -md5-list FILE              File containing MD5 sums of the files that should be checked+  -checksum-list FILE         File containing checksums of the files that should be checked 
 +  -md5-list FILE              Outdated alias of -checksum-list 
 +  -jigdo-checksum-algorithm ALGORITHM 
 +                              Choose algorithm for file matching checksums: md5, sha256 
 +                              Expected in the -checksum-list FILE, written into .jigdo file.
   -jigdo-template-compress ALGORITHM   -jigdo-template-compress ALGORITHM
                               Choose to use gzip or bzip2 compression for template data; default is gzip                               Choose to use gzip or bzip2 compression for template data; default is gzip
   -checksum_algorithm_iso alg1,alg2,...   -checksum_algorithm_iso alg1,alg2,...
-                              Specify the checksum types desired for the output image+                              Specify the checksum types desired for the output image (in .jigdo)
   -checksum_algorithm_template alg1,alg2,...   -checksum_algorithm_template alg1,alg2,...
                               Specify the checksum types desired for the output jigdo template                               Specify the checksum types desired for the output jigdo template
-  -sort FILE                  Sort file content locations according to rules in FILE +  -eltorito-platform          Set El Torito platform id for the next boot entry 
-  -split-output               Split output into files of approx. 1GB size +  -b FILE, -eltorito-boot FILE 
-  -stream-file-name FILE_NAME Set the stream file ISO9660 name (incl. version) +                              Set El Torito boot image name 
-  -stream-media-size #        Set the size of your CD media in sectors +  -eltorito-alt-boot          Start specifying alternative El Torito boot parameters 
-  -sysid ID                   Set System ID +  --efi-boot FILE             Set El Torito EFI boot image name and type 
-  -T, -translation-table      Generate translation tables for systems that don't understand long filenames +  -e FILE                     Set EFI boot image name (more rawly
-  -table-name TABLE_NAME      Translation table file name +  -c FILE, -eltorito-catalog FILE 
-  -ucs-level LEVEL            Set Joliet UCS level (1..3+                              Set El Torito boot catalog name 
-  -udf                        Generate UDF file system +  --boot-catalog-hide         Hide boot catalog from ISO9660/RR and Joliet 
-  -dvd-video                  Generate DVD-Video compliant UDF file system +  -boot-load-size #           Set numbers of load sectors
-  -uid uid                    Make the owner of all files this uid. +
-  -U, -untranslated-filenames Allow Untranslated filenames (for HPUX & AIX violates ISO9660). Forces -l, -d, -N, -allow-leading-dots, -relaxed-filenames, -allow-lowercase, -allow-multidot +
-  -relaxed-filenames          Allow 7 bit ASCII except lower case characters (violates ISO9660) +
-  -no-iso-translate           Do not translate illegal ISO characters '~', '-' and '#' (violates ISO9660) +
-  -allow-lowercase            Allow lower case characters in addition to the current character set (violates ISO9660) +
-  -allow-multidot             Allow more than one dot in filenames (e.g. .tar.gz) (violates ISO9660) +
-  -use-fileversion LEVEL      Use file version # from filesystem +
-  -v, -verbose                Verbose +
-  -version                    Print the current version +
-  -V ID, -volid ID            Set Volume ID +
-  -volset ID                  Set Volume set ID +
-  -volset-size #              Set Volume set size +
-  -volset-seqno #             Set Volume set sequence number +
-  -x FILE, -old-exclude FILE  Exclude file name(depreciated)+
   -hard-disk-boot             Boot image is a hard disk image   -hard-disk-boot             Boot image is a hard disk image
   -no-emul-boot               Boot image is 'no emulation' image   -no-emul-boot               Boot image is 'no emulation' image
-  -no-boot                    Boot image is not bootable 
-  -boot-load-seg #            Set load segment for boot image 
-  -boot-load-size #           Set numbers of load sectors 
   -boot-info-table            Patch boot image with info table   -boot-info-table            Patch boot image with info table
-  -XA                         Generate XA directory attruibutes +  --grub2-boot-info           Patch boot image at byte 2548 
-  -xa                         Generate rationalized XA directory attruibutes+  -eltorito-id ID             Set El Torito Id String 
 +  -eltorito-selcrit HEXBYTES  Set El Torito Selection Criteria 
 +  -isohybrid-gpt-basdat       Mark El Torito boot image as Basic Data in GPT 
 +  -isohybrid-gpt-hfsplus      Mark El Torito boot image as HFS+ in GPT 
 +  -isohybrid-apm-hfsplus      Mark El Torito boot image as HFS+ in APM 
 +  -part_like_isohybrid        Mark in MBR, GPT, APM without -isohybrid-mbr 
 +  -iso_mbr_part_type          Set type byte or GUID of ISO partition in MBR 
 +                              or type GUID if a GPT ISO partition emerges. 
 +  --gpt_disk_guid GUID        Set GPT disk GUID or choose automatic GUID 
 +  -G FILE, -generic-boot FILE Set generic boot image name 
 +  --embedded-boot FILE        Alias of -G 
 +  --protective-msdos-label    Patch System Area by partition table 
 +  --mbr-force-bootable        Enforce existence of bootable flag in MBR 
 +  -partition_offset LBA       Make image mountable by first partition, too 
 +  -partition_sec_hd NUMBER    Define number of sectors per head 
 +  -partition_hd_cyl NUMBER    Define number of heads per cylinder 
 +  -partition_cyl_align MODE   Control cylinder alignment: off, on, auto, all 
 +  -mips-boot FILE             Set mips boot image name (relative to image root) 
 +  -mipsel-boot FILE           Set mipsel boot image name (relative to image root) 
 +  -B FILES, -sparc-boot FILES Set sparc boot image names 
 +  -sparc-label label text     Set sparc boot disk label 
 +  -hppa-cmdline CMDLINE       Set hppa boot command line 
 +  -hppa-kernel-32 FILE        Set hppa 32-bit image name (relative to image root) 
 +  -hppa-kernel-64 FILE        Set hppa 64-bit image name (relative to image root) 
 +  -hppa-bootloader FILE       Set hppa boot loader file name (relative to image root) 
 +  -hppa-ramdisk FILE          Set hppa ramdisk file name (relative to image root) 
 +  -hppa-hdrversion NUMBER     Set hppa PALO header version to 4 or 5 
 +  -alpha-boot FILE            Set alpha boot image name (relative to image root) 
 +  --grub2-sparc-core FILE     Set path of core file for disk label patching 
 +  -efi-boot-part DISKFILE|--efi-boot-image 
 +                              Set data source for EFI System Partition 
 +  -chrp-boot-part             Mark ISO image size by MBR partition type 0x96 
 +  -chrp-boot                  Alias of -chrp-boot-part 
 +  -prep-boot-part DISKFILE    Set data source for MBR partition type 0x41 
 +  -append_partition NUMBER TYPE FILE 
 +                              Append FILE after image. TYPE is hex: 0x.. or 
 +                              a GUID to be used if -appended_part_as_gpt. 
 +  -appended_part_as_gpt       mark appended partitions in GPT instead of MBR. 
 +  -appended_part_as_apm       mark appended partitions in APM. 
 +  --modification-date=YYYYMMDDhhmmsscc 
 +                              Override date of creation and modification 
 +  --set_all_file_dates TIME   Override mtime, atime, ctime in all files 
 +  -isohybrid-mbr FILE         Set SYSLINUX mbr/isohdp[fp]x*.bin for isohybrid 
 +  --grub2-mbr FILE            Set GRUB2 MBR for boot image address patching 
 +  --sort-weight NUMBER FILE   Set LBA weight number to file or file tree 
 +  --sort-weight-list DISKFILE Read list of NUMBER FILE pairs for --sort-weight 
 +  --sort-weight-patterns DISKFILE  --sort-weight-list with pattern expansion 
 +  --stdio_sync on|off|number  Control forced output to disk files 
 +  --no-emul-toc               Save 64 kB size on random access output files 
 +  --emul-toc                  Multi-session history on such output files 
 +  --old-empty                 Use old style block addresses for empty files
   -z, -transparent-compression   -z, -transparent-compression
                               Enable transparent compression of files                               Enable transparent compression of files
-  -hfs-type TYPE              Set HFS default TYPE +  --zisofs-version-2          Enable processing of zisofs version 2 files 
-  -hfs-creator CREATOR        Set HFS default CREATOR +  --zisofs2-susp-z2           Produce Z2 entries for zisofs version 2 
-  -g, -apple                  Add Apple ISO9660 extensions +  --zisofs2-susp-zf           Produce ZF entries for zisofs version 2 
-  -h, -hfs                    Create ISO9660/HFS hybrid +  -root DIR                   Set root directory for all new files and directories 
-  -map MAPPING_FILE           Map file extensions to HFS TYPE/CREATOR +  -old-root DIR               Set root directory in previous session that is searched for files 
-  -H MAPPING_FILE, -map MAPPING_FILE +  --old-root-no-md5           Do not record and use MD5 with -old-root 
-                              Map file extensions to HFS TYPE/CREATOR +  --old-root-no-ino           Do not use disk inode numbers with -old-root 
-  -magic FILE                 Magic file for HFS TYPE/CREATOR +  --old-root-devno            Use disk device numbers with -old-root 
-  -probe                      Probe all files for Apple/Unix file types +  -log-file LOG_FILE          Re-direct messages to LOG_FILE 
-  -mac-name                   Use Macintosh name for ISO9660/Joliet/RockRidge file name +  --no_rc                     Do not execute startup files 
-  -no-mac-files               Do not look for Unix/Mac files (depreciated) +  -v, -verbose                Verbose 
-  -boot-hfs-file FILE         Set HFS boot image name +  -version                    Print the current version
-  -part                       Generate HFS partition table +
-  -cluster-size SIZE          Cluster size for PC Exchange Macintosh files +
-  -auto FILE                  Set HFS AutoStart file name +
-  -no-desktop                 Do not create the HFS (empty) Desktop files +
-  -hide-hfs GLOBFILE          Hide HFS file +
-  -hide-hfs-list FILE         List of HFS files to hide +
-  -hfs-volid HFS_VOLID        Volume name for the HFS partition +
-  -icon-position              Keep HFS icon position +
-  -root-info FILE             finderinfo for root folder +
-  -input-hfs-charset CHARSET  Local input charset for HFS file name conversion +
-  -output-hfs-charset CHARSET Output charset for HFS file name conversion +
-  -hfs-unlock                 Leave HFS Volume unlocked +
-  -hfs-bless FOLDER_NAME      Name of Folder to be blessed +
-  -hfs-parms PARAMETERS       Comma separated list of HFS parameters +
-  -prep-boot FILE             PReP boot image file -- up to 4 are allowed +
-  -chrp-boot                  Add CHRP boot header +
-  --cap                       Look for AUFS CAP Macintosh files +
-  --netatalk                  Look for NETATALK Macintosh files +
-  --double                    Look for AppleDouble Macintosh files +
-  --ethershare                Look for Helios EtherShare Macintosh files +
-  --exchange                  Look for PC Exchange Macintosh files +
-  --sgi                       Look for SGI Macintosh files +
-  --macbin                    Look for MacBinary Macintosh files +
-  --single                    Look for AppleSingle Macintosh files +
-  --ushare                    Look for IPT UShare Macintosh files +
-  --xinet                     Look for XINET Macintosh files +
-  --dave                      Look for DAVE Macintosh files +
-  --sfm                       Look for SFM Macintosh files +
-  --osx-double                Look for MacOS X AppleDouble Macintosh files +
-  --osx-hfs                   Look for MacOS X HFS Macintosh files+
  
-Report problems to debburn-devel@lists.alioth.debian.org.+Report any bugs to bug-xorriso@gnu.org or in private to scdbackup@gmx.net .
 </code> </code>
  
-=====Systèmes de Fichiers Chiffrés sous RHEL/CentOS 8=====+=====LAB #17 - Systèmes de Fichiers Chiffrés sous RedHat 9=====
  
-====LAB #21 - Créer un Système de Fichiers Chiffré avec LUKS sous RHEL/CentOS 8=====+====17.1 - Créer un Système de Fichiers Chiffré avec LUKS sous RedHat 9=====
  
 ===Présentation=== ===Présentation===
Ligne 3734: Ligne 5074:
  
 <code> <code>
-[root@centos8 ~]# shred -v --iterations=1 /dev/sdb12+[root@redhat9 ~]# shred -v --iterations=1 /dev/sdb12
 shred: /dev/sdb12: pass 1/1 (random)... shred: /dev/sdb12: pass 1/1 (random)...
 +shred: /dev/sdb12: pass 1/1 (random)...5.7MiB/200MiB 2%
 +shred: /dev/sdb12: pass 1/1 (random)...10MiB/200MiB 5%
 +shred: /dev/sdb12: pass 1/1 (random)...14MiB/200MiB 7%
 +shred: /dev/sdb12: pass 1/1 (random)...18MiB/200MiB 9%
 +shred: /dev/sdb12: pass 1/1 (random)...23MiB/200MiB 11%
 +shred: /dev/sdb12: pass 1/1 (random)...27MiB/200MiB 13%
 +shred: /dev/sdb12: pass 1/1 (random)...31MiB/200MiB 15%
 +shred: /dev/sdb12: pass 1/1 (random)...36MiB/200MiB 18%
 +shred: /dev/sdb12: pass 1/1 (random)...41MiB/200MiB 20%
 +shred: /dev/sdb12: pass 1/1 (random)...45MiB/200MiB 22%
 +shred: /dev/sdb12: pass 1/1 (random)...49MiB/200MiB 24%
 +shred: /dev/sdb12: pass 1/1 (random)...53MiB/200MiB 26%
 +shred: /dev/sdb12: pass 1/1 (random)...57MiB/200MiB 28%
 +shred: /dev/sdb12: pass 1/1 (random)...61MiB/200MiB 30%
 +shred: /dev/sdb12: pass 1/1 (random)...64MiB/200MiB 32%
 +shred: /dev/sdb12: pass 1/1 (random)...68MiB/200MiB 34%
 +shred: /dev/sdb12: pass 1/1 (random)...73MiB/200MiB 36%
 +shred: /dev/sdb12: pass 1/1 (random)...77MiB/200MiB 38%
 +shred: /dev/sdb12: pass 1/1 (random)...81MiB/200MiB 40%
 +shred: /dev/sdb12: pass 1/1 (random)...86MiB/200MiB 43%
 +shred: /dev/sdb12: pass 1/1 (random)...90MiB/200MiB 45%
 +shred: /dev/sdb12: pass 1/1 (random)...94MiB/200MiB 47%
 +shred: /dev/sdb12: pass 1/1 (random)...98MiB/200MiB 49%
 +shred: /dev/sdb12: pass 1/1 (random)...105MiB/200MiB 52%
 +shred: /dev/sdb12: pass 1/1 (random)...108MiB/200MiB 54%
 +shred: /dev/sdb12: pass 1/1 (random)...112MiB/200MiB 56%
 +shred: /dev/sdb12: pass 1/1 (random)...113MiB/200MiB 56%
 +shred: /dev/sdb12: pass 1/1 (random)...117MiB/200MiB 58%
 +shred: /dev/sdb12: pass 1/1 (random)...121MiB/200MiB 60%
 +shred: /dev/sdb12: pass 1/1 (random)...125MiB/200MiB 62%
 +shred: /dev/sdb12: pass 1/1 (random)...129MiB/200MiB 64%
 +shred: /dev/sdb12: pass 1/1 (random)...133MiB/200MiB 66%
 +shred: /dev/sdb12: pass 1/1 (random)...137MiB/200MiB 68%
 +shred: /dev/sdb12: pass 1/1 (random)...141MiB/200MiB 70%
 +shred: /dev/sdb12: pass 1/1 (random)...145MiB/200MiB 72%
 +shred: /dev/sdb12: pass 1/1 (random)...148MiB/200MiB 74%
 +shred: /dev/sdb12: pass 1/1 (random)...152MiB/200MiB 76%
 +shred: /dev/sdb12: pass 1/1 (random)...156MiB/200MiB 78%
 +shred: /dev/sdb12: pass 1/1 (random)...159MiB/200MiB 79%
 +shred: /dev/sdb12: pass 1/1 (random)...163MiB/200MiB 81%
 +shred: /dev/sdb12: pass 1/1 (random)...167MiB/200MiB 83%
 +shred: /dev/sdb12: pass 1/1 (random)...170MiB/200MiB 85%
 +shred: /dev/sdb12: pass 1/1 (random)...174MiB/200MiB 87%
 +shred: /dev/sdb12: pass 1/1 (random)...178MiB/200MiB 89%
 +shred: /dev/sdb12: pass 1/1 (random)...182MiB/200MiB 91%
 +shred: /dev/sdb12: pass 1/1 (random)...187MiB/200MiB 93%
 +shred: /dev/sdb12: pass 1/1 (random)...190MiB/200MiB 95%
 +shred: /dev/sdb12: pass 1/1 (random)...194MiB/200MiB 97%
 +shred: /dev/sdb12: pass 1/1 (random)...198MiB/200MiB 99%
 +shred: /dev/sdb12: pass 1/1 (random)...200MiB/200MiB 100%
 </code> </code>
  
Ligne 3745: Ligne 5135:
  
 <code> <code>
-[root@centos8 ~]# cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb12+[root@redhat9 ~]# cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb12
  
 WARNING! WARNING!
Ligne 3765: Ligne 5155:
  
 <code> <code>
-[root@centos8 ~]# cryptsetup luksOpen /dev/sdb12 sdb12+[root@redhat9 ~]# cryptsetup luksOpen /dev/sdb12 sdb12
 Enter passphrase for /dev/sdb12: fenestros123456789 Enter passphrase for /dev/sdb12: fenestros123456789
 </code> </code>
Ligne 3772: Ligne 5162:
  
 <code> <code>
-[root@centos8 ~]# ls -l /dev/mapper | grep sdb12 +[root@redhat9 ~]# ls -l /dev/mapper | grep sdb12 
-lrwxrwxrwx. 1 root root       Jun  2 10:03 sdb12 -> ../dm-2+lrwxrwxrwx. 1 root root       Oct 24 09:21 sdb12 -> ../dm-9
 </code> </code>
  
Ligne 3779: Ligne 5169:
  
 <code> <code>
-[root@centos8 ~]# mkfs.xfs /dev/mapper/sdb12+[root@redhat9 ~]# mkfs.xfs /dev/mapper/sdb12 
 +Filesystem should be larger than 300MB. 
 +Log size should be at least 64MB. 
 +Support for filesystems like this one is deprecated and they will not be supported in future releases.
 meta-data=/dev/mapper/sdb12      isize=512    agcount=4, agsize=11776 blks meta-data=/dev/mapper/sdb12      isize=512    agcount=4, agsize=11776 blks
                                sectsz=512   attr=2, projid32bit=1                                sectsz=512   attr=2, projid32bit=1
                                crc=1        finobt=1, sparse=1, rmapbt=0                                crc=1        finobt=1, sparse=1, rmapbt=0
-                               reflink=1+                               reflink=1    bigtime=1 inobtcount=1 nrext64=0
 data                           bsize=4096   blocks=47104, imaxpct=25 data                           bsize=4096   blocks=47104, imaxpct=25
                                sunit=0      swidth=0 blks                                sunit=0      swidth=0 blks
Ligne 3795: Ligne 5188:
  
 <code> <code>
-[root@centos8 ~]# mount /dev/mapper/sdb12 /mnt/sdb12+[root@redhat9 ~]# mount /dev/mapper/sdb12 /mnt/sdb12
 </code> </code>
  
Ligne 3801: Ligne 5194:
  
 <code> <code>
-[root@centos8 ~]# df -h | grep sdb12 +[root@redhat9 ~]# df -h | grep sdb12 
-/dev/mapper/sdb12  179M   11M  168M   6% /mnt/sdb12+/dev/mapper/sdb12      179M   11M  168M   6% /mnt/sdb12
 </code> </code>
  
Ligne 3808: Ligne 5201:
  
 <code> <code>
-[root@centos8 ~]# vi /etc/crypttab +[root@redhat9 ~]# vi /etc/crypttab 
-[root@centos8 ~]# cat /etc/crypttab+ 
 +[root@redhat9 ~]# cat /etc/crypttab
 sdb12 /dev/sdb12 none sdb12 /dev/sdb12 none
 </code> </code>
Ligne 3816: Ligne 5210:
  
 <code> <code>
-[root@centos8 ~]# vi /etc/fstab +[root@redhat9 ~]# vi /etc/fstab 
-[root@centos8 ~]# cat /etc/fstab+ 
 +[root@redhat9 ~]# cat /etc/fstab
  
 # #
 # /etc/fstab # /etc/fstab
-# Created by anaconda on Fri May  8 07:35:23 2020+# Created by anaconda on Thu Oct 19 16:05:58 2023
 # #
 # Accessible filesystems, by reference, are maintained under '/dev/disk/'. # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
Ligne 3829: Ligne 5224:
 # units generated from this file. # units generated from this file.
 # #
-UUID=4c0cc28c-0d59-45be-bd73-d292b80be33c /                       xfs     defaults        0 0 +/dev/mapper/rhel-root   /                       xfs     defaults        0 0 
-UUID=2ae4c035-9244-458c-82c5-a49ae169cdb6 /boot                   ext4    defaults        1 2 +UUID=6f6c5bb9-30be-4734-bc23-03fed8541616 /boot                   xfs     defaults        0 0 
-UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 swap                    swap    defaults        0 0 +/dev/mapper/rhel-swap   none                    swap    defaults        0 0 
-/dev/mapper/sdb12   /mnt/sdb12   xfs   defaults   0 0+/dev/mapper/sdb12                         /mnt/sdb12              xfs     defaults        0 0
 </code> </code>
  
Ligne 3838: Ligne 5233:
  
 <code> <code>
-[root@centos8 ~]# /sbin/restorecon -v -R /mnt/sdb12+[root@redhat9 ~]# /sbin/restorecon -v -R /mnt/sdb12
 Relabeled /mnt/sdb12 from system_u:object_r:unlabeled_t:s0 to system_u:object_r:mnt_t:s0 Relabeled /mnt/sdb12 from system_u:object_r:unlabeled_t:s0 to system_u:object_r:mnt_t:s0
 </code> </code>
Ligne 3857: Ligne 5252:
  
 <code> <code>
-[trainee@centos8 ~]$ su -+[trainee@redhat9 ~]$ su -
 Password: fenestros Password: fenestros
-[root@centos8 ~]# cryptsetup luksAddKey /dev/sdb12+[root@redhat9 ~]# cryptsetup luksAddKey /dev/sdb12
 Enter any existing passphrase: fenestros123456789 Enter any existing passphrase: fenestros123456789
 Enter new passphrase for key slot: redhat123456789 Enter new passphrase for key slot: redhat123456789
Ligne 3874: Ligne 5269:
  
 <code> <code>
-[root@centos8 ~]# cryptsetup luksRemoveKey /dev/sdb12+[root@redhat9 ~]# cryptsetup luksRemoveKey /dev/sdb12
 Enter passphrase to be deleted: redhat123456789 Enter passphrase to be deleted: redhat123456789
 </code> </code>
  
-Avant de poursuivre, éditez les fichiers **/etc/fstab** et **/etc/crypttab** :+===Supprimer LUKS=== 
 + 
 +Constatez le statut de LUKS :
  
 <code> <code>
-[root@centos8 ~]# vi /etc/fstab +[root@redhat9 ~]# umount /mnt/sdb12 
-[root@centos8 ~]# cat /etc/fstab+ 
 +[root@redhat9 ~]# cryptsetup status sdb12 
 +/dev/mapper/sdb12 is active. 
 +  type:    LUKS2 
 +  cipher:  aes-xts-plain64 
 +  keysize: 512 bits 
 +  key location: keyring 
 +  device:  /dev/sdb12 
 +  sector size:  512 
 +  offset:  32768 sectors 
 +  size:    376832 sectors 
 +  mode:    read/write 
 +</code> 
 + 
 +Avant de supprimer LUKs, il convient de supprimer la dernière passphrase : 
 + 
 +<code> 
 +[root@redhat9 ~]# cryptsetup luksRemoveKey /dev/sdb12 
 +Enter passphrase to be deleted:  
 + 
 +WARNING! 
 +======== 
 +This is the last keyslot. Device will become unusable after purging this key. 
 + 
 +Are you sure? (Type 'yes' in capital letters): YES 
 +</code> 
 + 
 +Supprimez maintenant LUKs : 
 + 
 +<code> 
 +[root@redhat9 ~]# cryptsetup remove /dev/mapper/sdb12 
 +</code> 
 + 
 +Vérifiez de nouveau le statut : 
 + 
 +<code> 
 +[root@redhat9 ~]# cryptsetup status sdb12 
 +/dev/mapper/sdb12 is inactive. 
 + 
 +[root@redhat9 ~]# lsblk 
 +NAME          MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINTS 
 +sda             8:   0   50G  0 disk   
 +├─sda1          8:1    0    1G  0 part  /boot 
 +└─sda2          8:2    0   49G  0 part   
 +  ├─rhel-root 253:0    0   44G  0 lvm   / 
 +  └─rhel-swap 253:1    0    5G  0 lvm   [SWAP] 
 +sdb             8:16     32G  0 disk   
 +├─sdb1          8:17    100M  0 part   
 +├─sdb2          8:18    100M  0 part   
 +├─sdb3          8:19    100M  0 part   
 +├─sdb4          8:20      1K  0 part   
 +├─sdb5          8:21    500M  0 part   
 +├─sdb6          8:22    200M  0 part   
 +│ └─vg0-lv1   253:   0  104M  0 lvm    
 +├─sdb7          8:23    300M  0 part   
 +│ └─vg0-lv2   253:   0  112M  0 lvm    
 +├─sdb8          8:24    500M  0 part   
 +│ └─md1         9:   0  996M  0 raid5  
 +├─sdb9          8:25    400M  0 part   
 +│ └─vg0-lv2   253:   0  112M  0 lvm    
 +├─sdb10         8:26    500M  0 part   
 +│ └─md1         9:   0  996M  0 raid5  
 +├─sdb11         8:27    500M  0 part   
 +└─sdb12         8:28    200M  0 part   
 +sdc             8:32      6G  0 disk   
 +sdd             8:48      6G  0 disk   
 +sr0            11:0    1 1024M  0 rom    
 +</code> 
 + 
 +Editez les fichiers **/etc/fstab** : 
 + 
 +<code> 
 +[root@redhat9 ~]# vi /etc/fstab 
 + 
 +[root@redhat9 ~]# cat /etc/fstab
  
 # #
 # /etc/fstab # /etc/fstab
-# Created by anaconda on Fri May  8 07:35:23 2020+# Created by anaconda on Thu Oct 19 16:05:58 2023
 # #
 # Accessible filesystems, by reference, are maintained under '/dev/disk/'. # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
Ligne 3894: Ligne 5365:
 # units generated from this file. # units generated from this file.
 # #
-UUID=4c0cc28c-0d59-45be-bd73-d292b80be33c /                       xfs     defaults        0 0 +/dev/mapper/rhel-root   /                       xfs     defaults        0 0 
-UUID=2ae4c035-9244-458c-82c5-a49ae169cdb6 /boot                   ext4    defaults        1 2 +UUID=6f6c5bb9-30be-4734-bc23-03fed8541616 /boot                   xfs     defaults        0 0 
-UUID=c8bb3f47-d67f-4b21-b781-766899dc83d4 swap                    swap    defaults        0 0+/dev/mapper/rhel-swap   none                    swap    defaults        0 0 
 +</code>
  
-[root@centos8 ~]# vi /etc/crypttab +Supprimez le fichier **/etc/crypttab** : 
-[root@centos8 ~]# cat /etc/crypttab + 
-[root@centos8 ~]# +<code> 
 +[root@redhat9 ~]# rm -f /etc/crypttab
 </code> </code>
  
-=====Le Swap=====+=====LAB #18 - Le Swap=====
  
-====Taille du swap====+====18.1 - Taille du swap====
  
-Le tableau suivant résume la taille du swap recommandée en fonction de la mémoire de la machine :+Le tableau suivant résume la taille du swap recommandée en fonction de la RAM de la machine :
  
-Mémoire ^ Taille du swap ^ +RAM ^ Taille du swap ^ Taille du Swap si Hibernation 
-Go ou moins | 2 Go +Go ou moins | 2 * RAM | 3 * RAM 
-Go à 16 Go | 4 Go +Go à Go | Identique à la RAM | 2 * RAM 
-16 Go à 64 Go | Go | +Go à 64 Go | Au moins 4 Go | 1.5 * RAM 
-| 64 Go à 256 Go 16 Go |+| 64 Go et plus Au moins 4 Go | Hibernation n'est pas recommendée |
  
-====Partitions de swap====+====18.2 - Partitions de swap====
  
 Une partition de swap peut être créée sur : Une partition de swap peut être créée sur :
Ligne 3923: Ligne 5396:
   * un Volume Logique   * un Volume Logique
  
-====La Commande swapon====+====18.3 - La Commande swapon====
  
 Pour préparer un espace de swap, il convient d'utiliser la commande **mkswap**. Pour activer une partition de swap, il convient d'utiliser la commande **swapon**. Pour consulter la liste des partitions swap, il convient d'utiliser la commande **swapon** avec l'option **-s**. Pour préparer un espace de swap, il convient d'utiliser la commande **mkswap**. Pour activer une partition de swap, il convient d'utiliser la commande **swapon**. Pour consulter la liste des partitions swap, il convient d'utiliser la commande **swapon** avec l'option **-s**.
  
 <code> <code>
-[root@centos8 ~]# swapon -s +[root@redhat9 ~]# swapon -s 
-Filename Type Size Used Priority +Filename                                Type            Size            Used            Priority 
-/dev/dm-1                               partition       3358716       -2+/dev/dm-1                               partition       5242876                       -2
 </code> </code>
  
Ligne 3942: Ligne 5415:
  
 <code> <code>
-[root@centos8 ~]# swapon --help+[root@redhat9 ~]# swapon --help
  
 Usage: Usage:
Ligne 3997: Ligne 5470:
 </WRAP> </WRAP>
  
-====La Commande swapoff====+====18.4 - La Commande swapoff====
  
 Dans le cas de notre exemple, la partition de swap se trouve sur **/dev/dm-1**. Pour la désactiver, il convient de saisir la commande suivante : Dans le cas de notre exemple, la partition de swap se trouve sur **/dev/dm-1**. Pour la désactiver, il convient de saisir la commande suivante :
  
 <code> <code>
-[root@centos8 ~]# swapoff /dev/dm-1 +[root@redhat9 ~]# swapoff /dev/dm-1 
-[root@centos8 ~]# swapon -s + 
-[root@centos8 ~]# +[root@redhat9 ~]# swapon -s 
 +[root@redhat9 ~]# 
 </code> </code>
  
Ligne 4010: Ligne 5484:
  
 <code> <code>
-[root@centos8 ~]# swapoff --help+[root@redhat9 ~]# swapoff --help
  
 Usage: Usage:
Ligne 4035: Ligne 5509:
 </code> </code>
  
-====LAB #22 - Créer un Fichier de Swap====+====18.5 - Créer un Fichier de Swap====
  
 Sous Linux, vous pouvez aussi bien utiliser un fichier de swap qu'une partition. La mise en place de ce fichier est faite en utilisant la commande **dd**.  Sous Linux, vous pouvez aussi bien utiliser un fichier de swap qu'une partition. La mise en place de ce fichier est faite en utilisant la commande **dd**. 
Ligne 4048: Ligne 5522:
 Dans le cas du fichier swap il convient d'utiliser le fichier spécial **/dev/zero** en tant que fichier d'entrée. Le fichier **/dev/zero** contient une valeur **null**. Dans le cas du fichier swap il convient d'utiliser le fichier spécial **/dev/zero** en tant que fichier d'entrée. Le fichier **/dev/zero** contient une valeur **null**.
  
-Pour créer votre fichier de swap de 268Mo, appelé **swap**, saisissez la commande suivante :+Pour créer votre fichier de swap de 256 MiB, appelé **swap**, saisissez la commande suivante :
  
 <code> <code>
-[root@centos8 ~]# dd if=/dev/zero of=/swap bs=1024k count=256+[root@redhat9 ~]# dd if=/dev/zero of=/swap bs=1024k count=256
 256+0 records in 256+0 records in
 256+0 records out 256+0 records out
-268435456 bytes (268 MB, 256 MiB) copied, 0.103048 s, 2.6 GB/s+268435456 bytes (268 MB, 256 MiB) copied, 1.45212 s, 185 MB/s
 </code> </code>
  
Ligne 4060: Ligne 5534:
  
 <code> <code>
-[root@centos8 ~]# mkswap /swap +[root@redhat9 ~]# mkswap /swap 
-mkswap: /swap: insecure permissions 0644, 0600 suggested.+mkswap: /swap: insecure permissions 0644, fix with: chmod 0600 /swap
 Setting up swapspace version 1, size = 256 MiB (268431360 bytes) Setting up swapspace version 1, size = 256 MiB (268431360 bytes)
-no label, UUID=ee6c9e3f-0712-47b1-8f97-17ba215959d7+no label, UUID=6bc62766-8662-478a-8556-8b17b26fc5ae
 </code> </code>
  
Ligne 4069: Ligne 5543:
  
 <code> <code>
-[root@centos8 ~]# swapon -p1 /swap+[root@redhat9 ~]# swapon -p1 /swap
 swapon: /swap: insecure permissions 0644, 0600 suggested. swapon: /swap: insecure permissions 0644, 0600 suggested.
 +
 +[root@redhat9 ~]# swapon /dev/dm-1
 </code> </code>
  
Ligne 4076: Ligne 5552:
  
 <code> <code>
-[root@centos8 ~]# swapon -s +[root@redhat9 ~]# swapon -s 
-Filename Type Size Used Priority +Filename                                Type            Size            Used            Priority 
-/swap                                   file     262140 0 1 +/swap                                   file            262140                        
-/dev/dm-1                               partition       3358716       -2+/dev/dm-1                               partition       5242876                       -2
 </code> </code>
  
Ligne 4093: Ligne 5569:
  
 <code> <code>
-[root@centos8 ~]# swapoff /swap +[root@redhat9 ~]# swapoff /swap 
-[root@centos8 ~]# swapon -s + 
-Filename Type Size Used Priority +[root@redhat9 ~]# swapon -s 
-/dev/dm-1                               partition       3358716       -2+Filename                                Type            Size            Used            Priority 
 +/dev/dm-1                               partition       5242876                       -2
 </code> </code>
  
Ligne 4102: Ligne 5579:
  
 <code> <code>
-[root@centos8 ~]# rm /swap+[root@redhat9 ~]# rm /swap
 rm: remove regular file '/swap'? y rm: remove regular file '/swap'? y
 </code> </code>
Menu