I ran out of space on a Ubuntu VM.
1) Add more space via VMWare. Reboot VM.
2) ‘fdisk -l’ to show the partitions on the disk
3) ‘fdisk /dev/sda’ and then
Type p to print the partition table and press Enter
Type n to add a new partition
Type p again to make it a primary partition
Accept the defaults for cylinder start and finish
Type w to save these changes
REBOOT
4) ‘fdisk -l’ to show the partitions on the disk
5) Add the physical volume to the volume group.
In my example:
vgextend /dev/mapper/server–vg /dev/sda4
6) Extend the logical group by the amount of space added.
In my example:
lvextend -L+20G /dev/mapper/server–vg-root
7) Resize the file system to use it
resize2fs /dev/mapper/server–vg-root
That should make the new space usable. In my case it did anyway. Down from 99% full to 46%.