Main Menu
-
Make a new partition from the disk, say sda.
sudo fdisk /dev/sda
-
Press “Enter” button for default options like new partition (n), first sector, last sector
-
Press w to write the changes
-
Create physical volume(PV) and add it to the existing volume group(VG) with the below commands
sudo pvcreate /dev/sda4 #its the 4th partition of the disk at that time
-
Check created PV
sudo pvs
-
Now extend the VG size from the created PV with below command
sudo vgextend ubuntu-vg /dev/sda4
-
Check the new space in volume group
sudo vgs
-
Now extend the existing lvm with total available space in the volume group (VG)
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
-
To implement the above size to the lvm run below command
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
-
Now finally check the new size of lvm
df -hT