LVM makes it easy to resize volumes in Linux. This can be done without unmounting drives or
requiring a restart. First determine the free space of the group volume.
First determine the partition where your OS is installed.
fdisk -l
Expand the partition. Here we will assume that the partition is sda3.
growpart /dev/sda 3
pvresize /dev/sda3
You can view the volume grow using the command …
vgdisplay

Determine the path to the volume group and extend it using vgextend ubuntu-vg /dev/sda3
where ubuntu-vg is the group name and /dev/sda3 is a partition created using fdisk.
lvdisplay

Expand the logical volume into the group volume. You can specify a size (M for Megabytes, G for
Gigabytes, T for Terabytes) …
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
… or you can expand the logical volume into the remaining free space.
lvextend -L+19G /dev/ubuntu-vg/ubuntu-lv
Resize the filesystem.
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv