Search This Blog

Wednesday, July 4, 2012

lvextend: "LogicalExtentsNumber" is not bigger than current setting.



# lvextend -L 500 /dev/vgapp01/app1
lvextend: "LogicalExtentsNumber" is not bigger than current setting.

# lvdisplay /dev/vgapp01/app1
--- Logical volumes ---
LV Name /dev/vgapp01/app1
VG Name /dev/vgapp01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 4504
Current LE 1126
Allocated PE 1126
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


When using the '-L' option in lvextend, you must enter the NEW size of the LV. In your command, you say you want to extend to LV to 500 MB. However, according to your lvdisplay, that LV is already at 4504 MB. Therefore, your command did not work.

If you want to extend the LV to 5000 MB, do:

# lvextend -L 5000 /dev/vgapp01/app1

lvextend: “LogicalExtentsNumber” is bigger than the maximum value allowed.

LogicalExtentsNumber is bigger than the maximum value allowed in HP-UX

If you get this error when trying to lvextend an lvol:

lvextend: “LogicalExtentsNumber” is bigger than the maximum value allowed.

It is because you have tried to use more than 65,535 logical extents — the limit for a logical volume.

Your only choice is to recreate the *volume group* (‘vgcreate’) and specify a larger extent size (‘-s pe_size’). The default pe_size of four (4) is small for today’s disks and file systems as is (8).

With 8, the maximum size of a lvol is: 8 * 65535 = 524280 MB which is 8 MB shy of 512 GB.

So, if you want an lvol bigger than 512 GB, then the PE size (which can only be set at vgcreate time – cannot be changed after the fact) should be 16 or 32.

Setting system initial parameters

This is a quick reminder on how to set system initial parameters like hostname, root password and networking. This routine runs directly at install time, right after the first boot and gives the newly created system all the required settings. It can come handy if you have just installed a VM (HP IVM) and have duplicated it by dd and want to change the identity of it.
# set_parms initial
Besides this, there are several options for setting the parameters one by one:
# set_parms hostname 
# set_parms timezone 
# set_parms date_time 
# set_parms ip_address 
# set_parms addl_netwrk
# set_parms locale
For more info look the man page set_parms(1M).