LVM and VxVM

LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

 
SOLVED
Go to solution
OFC_EDM
Respected Contributor

LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

The following command
lvextend -l 85480 /dev/vg06/lvol1

Generates the error:

"LogicalExtentsNumber": Must be a value between 1 and 65535.

The number of PE's is 85480 for all disks combined. With a MAX PE of 8549 per disk.

So 85480 is indeed exceeding 65535. Is there a kernel parameter to allow the number of PE's for the VG to exceed 65535?


Here's the definition of my VG. All I want to do is extend it to use all the remaining free space:

vgdisplay -v vg06
--- Volume groups ---
VG Name /dev/vg06
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 10
Act PV 10
Max PE per PV 8549
VGDA 20
PE Size (Mbytes) 4
Total PE 85480
Alloc PE 38393
Free PE 47087
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg06/lvol1
LV Status available/syncd
LV Size (Mbytes) 153572
Current LE 38393
Allocated PE 38393
Used PV 5


--- Physical volumes ---
PV Name /dev/dsk/c8t3d2
PV Name /dev/dsk/c9t3d2 Alternate Link
PV Status available
Total PE 8548
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t3d3
PV Name /dev/dsk/c8t3d3 Alternate Link
PV Status available
Total PE 8548
Free PE 0
Autoswitch On

PV Name /dev/dsk/c8t3d4
PV Name /dev/dsk/c9t3d4 Alternate Link
PV Status available
Total PE 8548
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t3d5
PV Name /dev/dsk/c8t3d5 Alternate Link
PV Status available
Total PE 8548
Free PE 0
Autoswitch On

PV Name /dev/dsk/c8t3d6
PV Name /dev/dsk/c9t3d6 Alternate Link
PV Status available
Total PE 8548
Free PE 4347
Autoswitch On

PV Name /dev/dsk/c9t3d7
PV Name /dev/dsk/c8t3d7 Alternate Link
PV Status available
Total PE 8548
Free PE 8548
Autoswitch On

PV Name /dev/dsk/c8t4d0
PV Name /dev/dsk/c9t4d0 Alternate Link
PV Status available
Total PE 8548
Free PE 8548
Autoswitch On

PV Name /dev/dsk/c9t4d1
PV Name /dev/dsk/c8t4d1 Alternate Link
PV Status available
Total PE 8548
Free PE 8548
Autoswitch On

PV Name /dev/dsk/c8t4d2
PV Name /dev/dsk/c9t4d2 Alternate Link
PV Status available
Total PE 8548
Free PE 8548
Autoswitch On

PV Name /dev/dsk/c9t4d3
PV Name /dev/dsk/c8t4d3 Alternate Link
PV Status available
Total PE 8548
Free PE 8548
Autoswitch On
The Devil is in the detail.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

No, the value is stored in an unsigned short so 64K is the limit. These are the kinds of things that you must plan for when you layout a VG. Not only the maximum number of PE's per PVOL but also the maximum size of a given LVOL so that PE_SIZE x 64K <= biggest_LVOL_I_will_need.
If it ain't broke, I can fix that.
DCE
Honored Contributor

Re: LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

The 65535 PE count cannot be increased. It is a hard coded part of LVM. The only way to utilize all of the disk space is to increase your PE size to 8 or 16, then the number of extents will be below 65535

Unfortunately, in order to change the PE size you need to recreate the volume group.

Pete Randall
Outstanding Contributor

Re: LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

Have a look at the man page for lvextend, particularly the section for the -l operand. It states the implementation limit is 65535, as others have said.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

Hi Kevin:

No, there is no kernel parameter that governs this. If you want to expand this particular logical volume, you will have to recreate the owning *volume group* and specify a larger physical extent size ('-s pe_size'). In that fashion, the number of extents times the pe_size will vive you the ability to define a larger logical vlume than your current constraints allow.

Your other choice would be if you already have another volume group with an adequate pe_size. You could then copy the filesystem data from your old logical volume into a new one.

If/when you do create a new volume group, plan its geometry carefully by choosing values of 'max_pe', 'pe_size', and 'max_pv' that accomodate adequate growth. Once set at creation time they cannot be altered. See the man pages for 'vgcreate' for more information.

Regards!

...JRF...
Regards!

...JRF...
OFC_EDM
Respected Contributor

Re: LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

What's interesting is:

This disk layout was designed by HP. Tsk Tsk.

I'll just have to recreate the VG with a larger PE size. (vgcreate -s 16 maybe)

Thanks for the replies...points coming.
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: LVEXTEND -> "LogicalExtentsNumber": Must be a value between 1 and 65535.

The good news is the VG is still empty so it's not an issue to recreate.

Cheers
The Devil is in the detail.