cancel
Showing results for 
Search instead for 
Did you mean: 

Extending LV size

SOLVED
Go to solution
Rob Van Dam_1
Occasional Visitor

Extending LV size

Hi All,

I would like to extend my LVOL which belongs to VG05 but problem is that i dont have much space.

The VG00 having enough space but the PE size is different from VG05.

Could you please guide me how to extend size. Can we do vgextend? Below is the o/p for reference.

[root]pasa:/> vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8636
Alloc PE 4936
Free PE 3700
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

[root]pasa:/> vgdisplay vg05
--- Volume groups ---
VG Name /dev/vg05
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 60
Cur PV 30
Act PV 30
Max PE per PV 4098
VGDA 60
PE Size (Mbytes) 4
Total PE 122880
Alloc PE 114672
Free PE 8208
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

[root]pasa:/> lvdisplay /dev/vg05/lvexp
--- Logical volumes ---
LV Name /dev/vg05/lvexp
VG Name /dev/vg05
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 196608
Current LE 49152
Allocated PE 49152
Stripes 4
Stripe Size (Kbytes) 128
Bad block on
Allocation strict
IO Timeout (Seconds) default

Please Help.

Thanks,
RVD
5 REPLIES
Torsten.
Acclaimed Contributor
Solution

Re: Extending LV size

You can extend an LVOL inside a VG only, not to another VG. A physical disk belongs to 1 VG only.

So if you don't have enough space, add another new disk.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
TTr
Honored Contributor

Re: Extending LV size

You can not extend an LVOL in VG05 using disks/extends in another volume group. You have to extend it with whatever disks/extends are available in VG05.

Along the same thinking with vgextend you can add an unused disk to vg05, you can not do anything with disks that already belong to other volume groups.

As it is you can add about 32GB to your LVOL
There are 8208 free PEs in vg05 at 4MB each.
Pete Randall
Outstanding Contributor

Re: Extending LV size

The different PE size actually doesn't matter. As already mentioned, the fact the lvol belongs to vg05 forbids extending it into vg00.

However, if you have a subdirectory under lvexp, that could be mounted onto a new mount point under vg00.


Pete

Pete
madhuchakkaravarthy
Trusted Contributor

Re: Extending LV size

hi

u can extend a lv in its particular vg only,,

but from ur output of vgdisplay -v vg05


u can extend a lvol up to 32 gb ,, not more than that,, if u want more space then u have add disk.

regards

MC
Taifur
Respected Contributor

Re: Extending LV size

Hi,

If u dont have enough space then u can add another disk within particular Vg ie vg05 then u can extend LV size whic is possible within the particular VG.

Cheers//
Taifur