[root@foo ~]# parted GNU Parted 3.5 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: VMware Virtual disk (scsi) Disk /dev/sda: 107GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags:
Number Start End Size File system Name Flags 1 1049kB 630MB 629MB fat32 EFI System Partition boot, esp 2 630MB 1704MB 1074MB xfs 3 1704MB 85.9GB 84.2GB lvm
(parted) resizepart 3 100% (parted) print Model: VMware Virtual disk (scsi) Disk /dev/sda: 107GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags:
Number Start End Size File system Name Flags 1 1049kB 630MB 629MB fat32 EFI System Partition boot, esp 2 630MB 1704MB 1074MB xfs 3 1704MB 107GB 106GB lvm
(parted) quit Information: You may need to update /etc/fstab.
[root@foo ~]# vgdisplay -v --- Volume group --- VG Name vg_root System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 6 VG Access read/write VG Status resizable MAX LV 0 Cur LV 4 Open LV 4 Max PV 0 Cur PV 1 Act PV 1 VG Size 98.41 GiB PE Size 4.00 MiB Total PE 25193 Alloc PE / Size 20073 / 78.41 GiB Free PE / Size 5120 / 20.00 GiB VG UUID BnvIou-XqN8-sc92-49H9-xxQr-GSWR-Q9Fh3q
--- Logical volume --- LV Path /dev/vg_root/lv_swap LV Name lv_swap VG Name vg_root LV UUID IqhY2J-cOGY-JVvo-Veoh-zgh8-Grfk-xIDedM LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:17 -0500 LV Status available # open 2 LV Size 2.00 GiB Current LE 512 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1
--- Logical volume --- LV Path /dev/vg_root/lv_tmp LV Name lv_tmp VG Name vg_root LV UUID K30WD7-Sfzh-Ltzy-jSzz-cQ2K-xSjR-vn8OKn LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:17 -0500 LV Status available # open 1 LV Size 30.00 GiB Current LE 7680 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2
--- Logical volume --- LV Path /dev/vg_root/lv_home LV Name lv_home VG Name vg_root LV UUID gKGzVT-9494-yDce-3aPX-Gr00-aYEb-I4dIiC LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:18 -0500 LV Status available # open 1 LV Size 10.00 GiB Current LE 2560 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:3
--- Logical volume --- LV Path /dev/vg_root/lv_root LV Name lv_root VG Name vg_root LV UUID 2jqRPu-YCdK-wOMD-fTGe-3vlO-fBYm-5DcZGI LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:18 -0500 LV Status available # open 1 LV Size 36.41 GiB Current LE 9321 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
--- Physical volumes --- PV Name /dev/sda3 PV UUID Qnf8NM-g5Qe-zGLr-tGkG-hD1N-nIZ1-EqpbBl PV Status allocatable Total PE / Free PE 25193 / 5120
[root@foo ~]# lvextend -l +50%FREE /dev/vg_root/lv_root Size of logical volume vg_root/lv_root changed from 36.41 GiB (9321 extents) to 46.41 GiB (11881 extents). Logical volume vg_root/lv_root successfully resized. [root@foo ~]# vgdisplay -v --- Volume group --- VG Name vg_root System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 7 VG Access read/write VG Status resizable MAX LV 0 Cur LV 4 Open LV 4 Max PV 0 Cur PV 1 Act PV 1 VG Size 98.41 GiB PE Size 4.00 MiB Total PE 25193 Alloc PE / Size 22633 / 88.41 GiB Free PE / Size 2560 / 10.00 GiB VG UUID BnvIou-XqN8-sc92-49H9-xxQr-GSWR-Q9Fh3q
--- Logical volume --- LV Path /dev/vg_root/lv_swap LV Name lv_swap VG Name vg_root LV UUID IqhY2J-cOGY-JVvo-Veoh-zgh8-Grfk-xIDedM LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:17 -0500 LV Status available # open 2 LV Size 2.00 GiB Current LE 512 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1
--- Logical volume --- LV Path /dev/vg_root/lv_tmp LV Name lv_tmp VG Name vg_root LV UUID K30WD7-Sfzh-Ltzy-jSzz-cQ2K-xSjR-vn8OKn LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:17 -0500 LV Status available # open 1 LV Size 30.00 GiB Current LE 7680 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:2
--- Logical volume --- LV Path /dev/vg_root/lv_home LV Name lv_home VG Name vg_root LV UUID gKGzVT-9494-yDce-3aPX-Gr00-aYEb-I4dIiC LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:18 -0500 LV Status available # open 1 LV Size 10.00 GiB Current LE 2560 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:3
--- Logical volume --- LV Path /dev/vg_root/lv_root LV Name lv_root VG Name vg_root LV UUID 2jqRPu-YCdK-wOMD-fTGe-3vlO-fBYm-5DcZGI LV Write Access read/write LV Creation host, time us-elmerh-nb.bar.com, 2024-12-25 23:58:18 -0500 LV Status available # open 1 LV Size 46.41 GiB Current LE 11881 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
--- Physical volumes --- PV Name /dev/sda3 PV UUID Qnf8NM-g5Qe-zGLr-tGkG-hD1N-nIZ1-EqpbBl PV Status allocatable Total PE / Free PE 25193 / 2560