Code: Select all
# pvdisplay
--- Physical volume ---
PV Name /dev/mapper/luks-7092fa8a-483e-468f-a37d-0d1d85a8a787
VG Name centos
PV Size 49,31 GiB / not usable <3,05 MiB
Allocatable NO
PE Size 4,00 MiB
Total PE 12623
Free PE 7680
Allocated PE 4943
PV UUID wwIykd-qGlf-S3li-lLKR-pulj-lZC9-MVFWh3
Code: Select all
--- Volume group ---
VG Name centos
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <49,31 GiB
PE Size 4,00 MiB
Total PE 12623
Alloc PE / Size 4943 / <19,31 GiB
Free PE / Size 7680 / 30,00 GiB
VG UUID WKa01s-nMng-67XP-JVfA-2JWB-mRmY-n1pyGv
Code: Select all
# lvresize -l100%FREE /dev/mapper/centos-root
Size of logical volume centos/root unchanged from <18,31 GiB (4687 extents).
Logical volume centos/root successfully resized.
Code: Select all
# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root centos -wi-ao---- <18,31g
swap centos -wi-a----- 1,00g