$ sudo vgdisplay --- Volume group --- VG Name rl System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 6 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 <51.00 GiB PE Size 4.00 MiB Total PE 13055 Alloc PE / Size 7935 / <31.00 GiB Free PE / Size 5120 / 20.00 GiB VG UUID KpIiEf-e7nH-gEda-c1Q8-K9GQ-8cZD-iLjhFw
通过vgdisplay可以看到,扩容的20G被添加进来了,可以使用这些空间扩容分区,分区情况如下:
$ sudo lvdisplay --- Logical volume --- LV Path /dev/rl/swap LV Name swap VG Name rl LV UUID KRLJNx-MqFn-BBum-C1SL-0qmw-GsOl-6p5gUM LV Write Access read/write LV Creation host, time localhost.localdomain, 2024-01-14 16:08:22 +0800 LV Status available # open 2 LV Size 3.20 GiB Current LE 820 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1 --- Logical volume --- LV Path /dev/rl/root LV Name root VG Name rl LV UUID RqpCfQ-m6K8-XeiG-bYc6-ulve-2VwU-DJICEW LV Write Access read/write LV Creation host, time localhost.localdomain, 2024-01-14 16:08:23 +0800 LV Status available # open 1 LV Size 27.79 GiB Current LE 7115 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0