[root@node2 ~]# lvdisplay --- Logical volume --- LV Path /dev/vgroup/swap LV Name swap VG Name vgroup LV UUID 80k3wh-3b52-387w-VFW9-pLdC-7jH6-EQ0cps LV Write Access read/write LV Creation host, time (none), 2023-02-19 11:58:34 -0500 LV Status available # open 2 LV Size 256.00 MiB Current LE 64 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:1 --- Logical volume --- LV Path /dev/myvol/vo LV Name vo VG Name myvol LV UUID 91S5cv-jxFA-XK1F-79ZQ-pfxh-ho1Y-JUZXwM LV Write Access read/write LV Creation host, time (none), 2023-02-19 11:58:33 -0500 LV Status available # open 1 LV Size 184.00 MiB Current LE 46 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:0 [root@node2 ~]# vgdisplay myvol --- Volume group --- VG Name myvol 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 508.00 MiB PE Size 4.00 MiB Total PE 127 Alloc PE / Size 46 / 184.00 MiB Free PE / Size 81 / 324.00 MiB VG UUID Vxlt2s-G798-c1pt-B7Pf-uqaU-u6fE-j72DLZ [root@node2 ~]# man lvextend ... Extend an LV by a specified size.
lvextend -L|--size [+]Size[m|UNIT] LV [ -l|--extents [+]Number[PERCENT] ] [ -r|--resizefs ] [ -i|--stripes Number ] [ -I|--stripesize Size[k|UNIT] ] [ --poolmetadatasize [+]Size[m|UNIT] ] [ COMMON_OPTIONS ] [ PV ... ] [root@node2 ~]# lvextend -L 230m /dev/myvol/vo Rounding size to boundary between physical extents: 232.00 MiB. Size of logical volume myvol/vo changed from 184.00 MiB (46 extents) to 232.00 MiB (58 extents). Logical volume myvol/vo successfully resized. [root@node2 ~]# lvdisplay /dev/myvol/vo --- Logical volume --- LV Path /dev/myvol/vo LV Name vo VG Name myvol LV UUID 91S5cv-jxFA-XK1F-79ZQ-pfxh-ho1Y-JUZXwM LV Write Access read/write LV Creation host, time (none), 2023-02-19 11:58:33 -0500 LV Status available # open 1 LV Size 232.00 MiB Current LE 58 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:0 [root@node2 ~]# resize2fs /dev/mapper/myvol-vo resize2fs 1.45.4 (23-Sep-2019) Filesystem at /dev/mapper/myvol-vo is mounted on /reports; on-line resizing required old_desc_blocks = 2, new_desc_blocks = 2 The filesystem on /dev/mapper/myvol-vo is now 237568 (1k) blocks long.