1833451 Members
2856 Online
110052 Solutions
New Discussion

Re: lvextend limit

 
Philippe NAVAJAS
Occasional Contributor

lvextend limit

I try to extend my logical volume, and I receive the following message :
Must be a value between 1 and 65535
Patch? Wrong value for my VG or LV options ?
(HP11.11)
--- Volume groups ---
VG Name /dev/vg02
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 8
Act PV 8
Max PE per PV 8631
VGDA 16
PE Size (Mbytes) 4
Total PE 69040
Alloc PE 65535
Free PE 3505
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg02/lvol1
VG Name /dev/vg02
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 262140
Current LE 65535
Allocated PE 65535
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
6 REPLIES 6
Rob_132
Regular Advisor

Re: lvextend limit

You already have 65535 PEs in lvol1:

Allocated PE 65535

...so it looks to be at it's maximum already.

Rob
Patrick Wallek
Honored Contributor

Re: lvextend limit

If you want to extend this LV, then you are going to have to completely recreate this VG from scratch. 65535 is the limit for the number of logical extents that an LV can contain. You are at this limit already.

To get around this you must recreate the VG with a larger physical extent (PE) size. If you require LV's that are that large, you should probably go ahead and go to 8 or 16 MB PE's.

You other alternative is to figure out a way to split this one LV up into two or more. If there is some way you can split up the mount points you may be able to do this.

As it stands right now, this LV is as large as it possibly can be.

Good luck!
Steven E. Protter
Exalted Contributor

Re: lvextend limit

I'm backing up Patrick on this one.

I've had the same situation and the only alterative was to rebuild the volume group completely.

When you are ready to build the new volume group, be sure to specify the parameter -e as high as it can go so the volume group can reach the maximum capacity.

Seems like that was done originally.

Might be time to break up the volume group into more manageble chunks. When I hit this limit on my old production box, I segmented the oracle stuff and gave it its own volume group, vg02.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Caesar_3
Esteemed Contributor

Re: lvextend limit

Hello!

As guys wrote you already reach the maximum
number of PE for LV and if you want that
LV will be bigger you need to set it when
you create VG (in the begin)

Caesar
Sudhakar.J
Advisor

Re: lvextend limit

Hi,

You can do this by increasing the PE size.In your case it be only by recreating VG. while recreating new VG you can do this by using -s switch.You can specify value in the range 1 to 256 and that shold be eual to power of 2 like 2,4,8,16,30 etc...

But best way would be if u can split then u better create a new LV insted of creating a new VG from scratch.

ATB
Sudhakar
Philippe NAVAJAS
Occasional Contributor

Re: lvextend limit

Thanks!