Sometimes, If logs are coming in one in LVM partition and you can't stop application or delete logs. So there is only one way to extend the LVM partition. i.e. Extend Logical Volume. But for extending the logical volume, there is need of enough space (our needed free space) in respective Volume group of that logical volume. Following are the simple steps to extend the Volume Group:
Step1: Check the Volume Group details and free space in that. We have 96MB free space in Volume group (MyVolume). But we need more 500MB space in same Volume Group.
Step3: Now add this newly created partition in MyVolume Volume Group. i.e. extend the Volume Group as:
Now, you have free space of 592 MB in Volume group (MyVolume). And you can extend the logical volume by one more command:
If you want to know more about the Logical Volume extension then click here.