# We need to resize the logical volume to use all the existing and free space of the volume group
$ sudo lvm
lvm> lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
lvm> exit

# And then, we need to resize the file system to use the new available space in the logical volume
$ sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
resize2fs 1.44.1 (24-Mar-2018)
Filesystem at /dev/ubuntu-vg/ubuntu-lv is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 58
The filesystem on /dev/ubuntu-vg/ubuntu-lv is now 120784896 (4k) blocks long.

# Finally, you can check that you now have available space:
$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                               3.9G     0  3.9G   0% /dev
tmpfs                              786M  1.2M  785M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  454G  3.8G  432G   1% /

If on a partition:

PV is on a partition like /dev/sda3

This is more common. In that case, growing the VMware disk is not enough. You must also expand the partition.

Check:

lsblk sudo fdisk -l /dev/sda sudo pvs

If the partition is smaller than the disk, grow it with either growpart or parted.

Using growpart:

sudo growpart /dev/sda 3

That means “grow partition 3 on disk sda”.

Then:

sudo pvresize /dev/sda2 sudo lvextend -l +100%FREE /dev/vgname/lvname

Then resize the filesystem

If on TrueNAS

sudo cfdisk #resize it in there
sudo pvresize /dev/sda3 # or what ever the PV is on
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv