root@dev215 [~]# fdisk -l GPT PMBR size mismatch (209715199 != 419430399) will be corrected by write. The backup GPT table is not on the end of the device. Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors Disk model: QEMU HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 406F0824-6F10-4C6F-8522-FFF0A017AA44
Device Start End Sectors Size Type /dev/sda1 2048 4095 2048 1M BIOS boot /dev/sda2 4096 2101247 2097152 1G Linux filesystem /dev/sda3 2101248 209713151 207611904 99G Linux LVM
root@dev215 [/data]# pvs PV VG Fmt Attr PSize PFree /dev/sda3 opencloudos lvm2 a-- <199.00g 100.00g root@dev215 [/data]# pvresize /dev/sda3 Physical volume "/dev/sda3" changed 1 physical volume(s) resized or updated / 0 physical volume(s) not resized root@dev215 [/data]# lvdisplay --- Logical volume --- LV Path /dev/opencloudos/home LV Name home VG Name opencloudos LV UUID Mrv5DQ-JeQx-mKdM-Vn9u-qOtw-Yl9k-TbkTjH LV Write Access read/write LV Creation host, time dev215, 2024-11-01 10:35:13 +0800 LV Status available # open 1 LV Size <32.48 GiB Current LE 8314 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 251:1
--- Logical volume --- LV Path /dev/opencloudos/root LV Name root VG Name opencloudos LV UUID pmaZSg-3JnI-yXfm-8N5Z-arW7-mstK-P0Atir LV Write Access read/write LV Creation host, time dev215, 2024-11-01 10:35:14 +0800 LV Status available # open 1 LV Size <66.52 GiB Current LE 17029 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 251:0
root@dev215 [/data]# lvextend -L +100G /dev/opencloudos/root Size of logical volume opencloudos/root changed from <66.52 GiB (17029 extents) to <166.52 GiB (42629 extents). Logical volume opencloudos/root successfully resized.
root@dev215 [/data]# lvdisplay --- Logical volume --- LV Path /dev/opencloudos/home LV Name home VG Name opencloudos LV UUID Mrv5DQ-JeQx-mKdM-Vn9u-qOtw-Yl9k-TbkTjH LV Write Access read/write LV Creation host, time dev215, 2024-11-01 10:35:13 +0800 LV Status available # open 1 LV Size <32.48 GiB Current LE 8314 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 251:1
--- Logical volume --- LV Path /dev/opencloudos/root LV Name root VG Name opencloudos LV UUID pmaZSg-3JnI-yXfm-8N5Z-arW7-mstK-P0Atir LV Write Access read/write LV Creation host, time dev215, 2024-11-01 10:35:14 +0800 LV Status available # open 1 LV Size <166.52 GiB Current LE 42629 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 251:0