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).

Monday, May 7, 2012

Shutting Down or rebooting the nPartition (Or Rebooting the vPars Monitor)

To halt or reboot the hard partition gracefully, you need to do the following:
Log into every virtual partition that is running and gracefully shutdown the partition via the HP-UX command shutdown.
There is no command that shuts down all the virtual partitions at the same time. You need to shutdown every virtual partition one at a time.
For our example, if all our partitions were up, we would need to shut them down:

winona1# vparstatus
winona1# shutdown -h

winona2# vparstatus
winona2# shutdown -h

winona3# vparstatus
winona3# shutdown -h

After the last virtual partition is shut down, you will be at the vPars Monitor prompt (MON>) on the console.
To reboot the hard partition, use the vPars Monitor command
# reboot
MON>reboot

To shut down the rp5470/L3000 or rp7400/N4000 servers, access the GSP using Ctrl-B. You can then use the GSP command PC to power off the server. For example:
MON> ^B
GSP> PC

Alternatively, you can power off the rp5470/L3000 or rp7400/N4000 servers via the physical power switch.
Because no partitions are running and vPars Monitor is running only in memory, shutting down the vPars Monitor this way does not corrupt the server's memory.
To power off the cells assigned to the nPartition, access the GSP using Ctrl-B. You can then go to the Command Menu and use the command PE to power off the cells. For example:

MON> ^B
GSP MAIN MENU:
 CO: Consoles
VFP: Virtual Front Panel
 CM: Command Menu
 CL: Console Logs
 SL: Show chassis Logs
 HE: Help
  X: Exit Connection

GSP> cm
Enter HE to get a list of available commands

GSP:CM> PE

This command controls power enable to a hardware device.

 B - Cabinet
 C - Cell
 I - IO Chassis
     Select Device: c

 Enter cabinet number: 0
 Enter slot number: 6

 The power state is ON for the Cell in Cabinet 0, Slot 6.
 In what state do you want the power? (ON/OFF) OFF

 GSP:CM>