lvm
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| lvm [2025/01/19 16:35] – créée luc | lvm [2025/01/19 16:48] (Version actuelle) – luc | ||
|---|---|---|---|
| Ligne 10: | Ligne 10: | ||
| ===== Physical Volume ===== | ===== Physical Volume ===== | ||
| + | <code bash> | ||
| + | # créer un PV | ||
| pvcreate | pvcreate | ||
| + | |||
| + | # supprimer un PV | ||
| pvremove | pvremove | ||
| - | Listing the available physical volumes | + | |
| - | pvs <-- | + | # Listing the available physical volumes |
| + | pvs # < | ||
| pvscan | pvscan | ||
| pvdisplay | pvdisplay | ||
| + | </ | ||
| ===== Volume group ===== | ===== Volume group ===== | ||
| + | Si on suit la vie d'un VG: | ||
| + | <code bash> | ||
| + | # Création | ||
| vgcreate | vgcreate | ||
| - | + | # Listing the volum groups | |
| - | Listing the volum groups | + | vgsv # < |
| - | vgsv <-- | + | |
| vgscan | vgscan | ||
| vgdisplay | vgdisplay | ||
| - | Etendre un volume Group à un nouveau physical volume | + | # Etendre un volume Group à un nouveau physical volume |
| vgextend | vgextend | ||
| vgreeduce (le contraire) | vgreeduce (le contraire) | ||
| + | # détruire le VG | ||
| vgremove | vgremove | ||
| + | </ | ||
| ===== Logical Volume ===== | ===== Logical Volume ===== | ||
| - | lvs <-- | + | <code bash> |
| + | # lister les LV | ||
| + | lvs # < | ||
| lvscan | lvscan | ||
| lvdisplay | lvdisplay | ||
| + | # créer un LV | ||
| lvcreate | lvcreate | ||
| - | Une fois le LV créé, on obtient une " | + | # Une fois le LV créé, on obtient une " |
| + | # dans laquelle on peut créer un système de fichier -> mkfs.ext4 etc. | ||
| - | Changer la taille | + | #Changer la taille |
| - | lvextend, lvresize, lvreduce | + | lvextend |
| - | After the volume size has increased, the filesystem must be resized as well. For ext4, the command to use is resize2fs | + | lvresize |
| + | lvreduce | ||
| + | # After the volume size has increased, the filesystem must be resized as well. | ||
| + | # For ext4, the command to use is resize2fs | ||
| + | # supprimer un LV | ||
| lvremove | lvremove | ||
| - | + | </ | |
lvm.1737304519.txt.gz · Dernière modification : de luc
