Linux : Etendre une partition LVM
De www.yakakliker.org
Procédure
- Affichage des groupes de volume LVM
root@serveur:~# vgdisplay
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <148,00 GiB
PE Size 4,00 MiB
Total PE 37887
Alloc PE / Size 18943 / <74,00 GiB
Free PE / Size 18944 / 74,00 GiB
VG UUID xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx
- Affichage des volumes logiques LVM
root@serveur:~# lvdisplay
--- Logical volume ---
LV Path /dev/ubuntu-vg/ubuntu-lv
LV Name ubuntu-lv
VG Name ubuntu-vg
LV UUID xxxxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx
LV Write Access read/write
LV Creation host, time ubuntu-server, 2024-06-11 11:35:53 +0000
LV Status available
# open 1
LV Size <74,00 GiB
Current LE 18943
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
- Augmentation de la taille du volume logique LVM
root@serveur:~# lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
- Augmentation de la partition ext4
root@serveur:~# resize2fs /dev/ubuntu-vg/ubuntu-lv
Liens
http://www.docmirror.net/fr/linux/howto/admin/LVM-HOWTO/ch11s09.html
https://www.redhat.com/sysadmin/resize-lvm-simple