Operating System - HP-UX
1752767 Members
5046 Online
108789 Solutions
New Discussion юеВ

Re: How to solve this Warning: Max_PE_per_PV

 
SOLVED
Go to solution
Mousa55
Super Advisor

How to solve this Warning: Max_PE_per_PV

Hi All,

I am extend the VG by one disk it is 350GB size, but after extend this warning appeared
# vgextend /dev/vg11 /dev/dsk/c17t2d6
vgextend: Warning: Max_PE_per_PV for the volume group (13055) too small for this PV (89599).
Using only 13055 PEs from this physical volume.
Current path "/dev/dsk/c10t1d7" is an alternate link, skip.
Current path "/dev/dsk/c11t1d7" is an alternate link, skip.
Current path "/dev/dsk/c12t1d7" is an alternate link, skip.
Current path "/dev/dsk/c13t1d7" is an alternate link, skip.
Current path "/dev/dsk/c14t1d7" is an alternate link, skip.
Current path "/dev/dsk/c15t1d7" is an alternate link, skip.
Current path "/dev/dsk/c16t1d7" is an alternate link, skip.
Current path "/dev/dsk/c10t2d2" is an alternate link, skip.
Current path "/dev/dsk/c11t2d2" is an alternate link, skip.
Current path "/dev/dsk/c12t2d2" is an alternate link, skip.
Current path "/dev/dsk/c13t2d2" is an alternate link, skip.
Current path "/dev/dsk/c14t2d2" is an alternate link, skip.
Current path "/dev/dsk/c15t2d2" is an alternate link, skip.
Current path "/dev/dsk/c16t2d2" is an alternate link, skip.
Volume group "/dev/vg11" has been successfully extended.
Volume Group configuration for /dev/vg11 has been saved in /etc/lvmconf/vg11.conf

after that i am tried to extend the LV but i facing a problem in this step, where i can't extend the LV and this error message is appeared
# lvextend -L 458400 /dev/vg11/lvol1 /dev/dsk/c17t2d6
lvextend: "LogicalExtentsNumber" is bigger than the maximum value allowed.

# vgdisplay -v /dev/vg11
--- Volume groups ---
VG Name /dev/vg11
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 13055
VGDA 6
PE Size (Mbytes) 4
Total PE 38905
Alloc PE 25000
Free PE 13905
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg11/lvol1
LV Status available/syncd
LV Size (Mbytes) 100000
Current LE 25000
Allocated PE 25000
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c17t1d7
PV Name /dev/dsk/c10t1d7 Alternate Link
PV Name /dev/dsk/c11t1d7 Alternate Link
PV Name /dev/dsk/c12t1d7 Alternate Link
PV Name /dev/dsk/c13t1d7 Alternate Link
PV Name /dev/dsk/c14t1d7 Alternate Link
PV Name /dev/dsk/c15t1d7 Alternate Link
PV Name /dev/dsk/c16t1d7 Alternate Link
PV Status available
Total PE 12797
Free PE 0
Autoswitch On

PV Name /dev/dsk/c17t2d2
PV Name /dev/dsk/c10t2d2 Alternate Link
PV Name /dev/dsk/c11t2d2 Alternate Link
PV Name /dev/dsk/c12t2d2 Alternate Link
PV Name /dev/dsk/c13t2d2 Alternate Link
PV Name /dev/dsk/c14t2d2 Alternate Link
PV Name /dev/dsk/c15t2d2 Alternate Link
PV Name /dev/dsk/c16t2d2 Alternate Link
PV Status available
Total PE 13053
Free PE 850
Autoswitch On

PV Name /dev/dsk/c17t2d6
PV Status available
Total PE 13055
Free PE 13055
Autoswitch On
the max PE in this VG is 4MB.
How i can increase the the size of PE per PV

thanks and best regards
8 REPLIES 8
VK2COT
Honored Contributor

Re: How to solve this Warning: Max_PE_per_PV

Hello Nejad,

This issue is relatively frequently discussed in HP-UX Forum.

To save everybody's time, and also
help you learn the best possible way,
it is recommended to use:

"Forums advanced search"

... and enter keywords like:

"increase PE per PV"

You will get around 50 different threads
on this topics.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Mousa55
Super Advisor

Re: How to solve this Warning: Max_PE_per_PV

Hi All,

Before i set my questions i am tried to search about this problem on a forum but all threads not get me the solution's which i need.
How i can increase the the size of PE per PV?
or increase the number of PV from 3 to 6 for example.

thanks
sujit kumar singh
Honored Contributor

Re: How to solve this Warning: Max_PE_per_PV

hello Nejad,

all u need to do is:
1)add the latest patches for LVM to the system.
2)u can change the max_pe_per_pv and max_pv as well as max_lv etc using the command vgmodify.
3)the system has to be properly patched to do so.
4)vgmodify can also be run on 11.23 systems and for setting the parameters as u wish to do, the max vlaue for max_pe_per_pv is 65535.
5)ur system might need adjustment for the existing VGRA for which u might need to move the First PE of the PVs using the pvmovr command like

#pvmove /dev/dsk/c0t1d0:0 /dev/dsk/c0t1d0 etc etc

please refer to the manpages for the commands vgmodify and pvmove they are of great help in this scenarioo.
VK2COT
Honored Contributor
Solution

Re: How to solve this Warning: Max_PE_per_PV

Hello Nejad,

You did not clarify which version of HP-UX your server runs.

a) For HP-UX 11.23, with some patches,
you could use vgmodify(1m) command.

b) HP-UX 11.31 supports vgmodify by default
(part of the standard O/S).

c) Although HP officially says that vgmodify
is not supported for HP-UX 11.11 (use at
your own risk), I have done it in the labs
and it worked.

Some details from the on-line manual for
vgmodify:

The vgmodify command allows the user to
modify an existing volume group (vg_name).
The following changes can be performed:

* Detect and handle physical volume size
changes.

* Modify the maximum number of physical
extents that can be allocated per physical
volume (max_pe setting) (vgcreate
-e).

* Modify the maximum number of physical
volumes that the volume group can contain
(max_pv setting) (vgcreate -p).

* Modify the maximum number of logical
volumes that the volume group can contain
(max_lv setting) (vgcreate -l).

* Change a physical volume type from boot to
non-boot or vice versa (pvcreate -B). Note
that making a physical volume non-bootable
will increase the space available on that
device for LVM configuration data. However,
even a single bootable physical volume in
the volume group will restrict the max_pv
and max_pe settings available.

The alternative for older versions of HP-UX
is to simply save the data to other disks and/or tapes, rebuild the volume group with
correct parameters and restore data...

I hope it helps,

VK2COT
VK2COT - Dusan Baljevic
Ganesan R
Honored Contributor

Re: How to solve this Warning: Max_PE_per_PV

Hi Nejad,

You cannot change the Max PE per PV on 11.11 once the VG has been created. Only way is recreate the VG. But on later versions you can change it using vgmodify command.

ref this.

http://docs.hp.com/en/6054/LVM_Limits_White_Paper_V4.pdf?jumpid=reg_R1002_USEN
Best wishes,

Ganesh.
Mousa55
Super Advisor

Re: How to solve this Warning: Max_PE_per_PV

Hi,

What is the latest patches for LVM, i can installed.

and my system is 11.11.

and the vgmodify command, what i can doing from it.

thanks and best rgards
Asif Sharif
Honored Contributor

Re: How to solve this Warning: Max_PE_per_PV

Hi Nejad,

What is the latest patches for LVM, i can installed.and my system is 11.11.

Download Install latest GOLDQPK11i(B.11.11.0812.479)

https://www11.itrc.hp.com/service/patch/depotPage.do?BC=main|releaseIndexPage|releasePage{0812-11.11}|&depotId=GOLDQPK11i:B.11.11.0812.479

and the vgmodify command, what i can doing from it.

vgmodify is not available for 11.11.

Regards,
Asif Sharif
Regards,
Asif Sharif
VK2COT
Honored Contributor

Re: How to solve this Warning: Max_PE_per_PV

Hello,

Although unsupported, vgmodify version for
HP-UX 11.11 could be obtained via
HP Support upon request. ATt least,
it used to be given to customers upon
their request and understanding that
HP had no responsibility in case of
failure.

Since you run almost obsolete version
of HP-UX (tpoday is the last day of
sales!), you are probably better off
rebuilding the volume group and
restoring data...

Cheers,

VK2COT
VK2COT - Dusan Baljevic