How To Extend LVM For Volume Group Size On Linux
As you can see I have already created an LVM and mounted on /root/vol and now I need to increase the space but there’s no more space left in Volume Group. Let’s see, how to extend or increase LVM size for volume group partition size in Linux.
we can only increase the size of the directory when we have space left in the volume group.
I have added an additional disk size of 1GB.
You can see the size of the volume group using vgs. No free size is available.
we need to create the physical volume.
Now increase the volume group. you just have to run a single command and size will be increased.
vgextend vg /dev/sdc
you can see the free space almost 1GB left and volume size have been increased.
We will increase the size of the vol directory using the lvextend.
lvextend -L +900MB /dev/vg/lv_vg
we can see the logical volume size using lvs but you can see the size of vol not increased because you have to resize the size using the below commands.
you need to run the below command to resize the partition.
As you can see now size increased to 1.8 GB.
You’re done linux group linux extend partition increase volume group size