Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors Disk model: Virtual disk
echo 1 > /sys/block/sda/device/rescan
fdisk -l
GPT PMBR size mismatch (209715199 != 251658239) will be corrected by write. The backup GPT table is not on the end of the device. Disk /dev/sda: 120 GiB, 128849018880 bytes, 251658240 sectors Disk model: Virtual disk
Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 41943040 blocks) or continue with the current setting? Fix/Ignore? fix Model: VMware Virtual disk (scsi) Disk /dev/sda: 129GB 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 /dev/sda resizepart 3 100%
parted -l
Model: VMware Virtual disk (scsi) Disk /dev/sda: 129GB 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 129GB 127GB lvm
--- Physical volume --- PV Name /dev/sda3 VG Name almalinux_211 PV Size 98.41 GiB / not usable 2.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 25193 Free PE 0 Allocated PE 25193 PV UUID 77PAja-dDP3-K2Ii-5jgw-AOFW-KnF5-ib8qg2
pvresize /dev/sda3
pvdisplay --- Physical volume --- PV Name /dev/sda3 VG Name almalinux_211 PV Size 118.41 GiB / not usable 1.98 MiB Allocatable yes PE Size 4.00 MiB Total PE 30313 Free PE 5120 Allocated PE 25193 PV UUID 77PAja-dDP3-K2Ii-5jgw-AOFW-KnF5-ib8qg2