Wednesday, September 19, 2012

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.

[root@server92 ~]#

[root@server92 ~]# vgs

VG #PV #LV #SN Attr VSize VFree

MyVolume 1 1 0 wz--n- 496.00m 96.00m

vgsrv 1 3 0 wz--n- 4.47g 384.00m

[root@server92 ~]#

[root@server92 ~]#

Step2: We will create a new LVM partition of 500MB in hard disk in which free space is available and then we will create its Physical Volume.