Operating System - HP-UX
1855738 Members
5800 Online
104103 Solutions
New Discussion

Re: Max_PE_per_PV for the volume group too small for this PV

 
chindi
Respected Contributor

Max_PE_per_PV for the volume group too small for this PV

Hi Guys,
i got this error while extending a vg ,


vgextend: Warning: Max_PE_per_PV for the volume group (1599) too small for this PV (2239).

Using only 1599 PEs from this physical volume.


I referrd threadas earlier which said to increase MAx PE by -s ...
But i already have size of mt PE to 32...
Now i just want to make sure whether its fine with what i have done...
Steps are as follows ;


Earlier lvol size 50 GB ..increased to 100 GB

root #/ >vgdisplay -v vg_ap_db
--- Volume groups ---
VG Name /dev/vg_ap_db
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 1
Open LV 1
Max PV 255
Cur PV 2
Act PV 2
Max PE per PV 1599
VGDA 4
PE Size (Mbytes) 32
Total PE 3198
Alloc PE 3198
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg_ap_db/lvol1
LV Status available/syncd
LV Size (Mbytes) 102336
Current LE 3198
Allocated PE 3198
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c1t5d5
PV Name /dev/dsk/c3t5d5 Alternate Link
PV Name /dev/dsk/c5t5d5 Alternate Link
PV Name /dev/dsk/c7t5d5 Alternate Link
PV Name /dev/dsk/c11t5d5 Alternate Link
PV Name /dev/dsk/c13t5d5 Alternate Link
PV Name /dev/dsk/c15t5d5 Alternate Link
PV Name /dev/dsk/c17t5d5 Alternate Link
PV Status available
Total PE 1599
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c1t5d0
PV Name /dev/dsk/c3t5d0 Alternate Link
PV Name /dev/dsk/c5t5d0 Alternate Link
PV Name /dev/dsk/c7t5d0 Alternate Link
PV Name /dev/dsk/c11t5d0 Alternate Link
PV Name /dev/dsk/c13t5d0 Alternate Link
PV Name /dev/dsk/c15t5d0 Alternate Link
PV Name /dev/dsk/c17t5d0 Alternate Link
PV Status available
Total PE 1599
Free PE 0
Autoswitch On
Proactive Polling On

/dev/vg_ap_db/lvol1
104792064 52679304 48855713 52% /oradata_approd


I hope everythngs fine ...with the size allocation...



7 REPLIES 7
Sunny Jaisinghani
Trusted Contributor

Re: Max_PE_per_PV for the volume group too small for this PV

Some part of your disk will not be utilized.
Use smaller capacity disks.
Sunny Jaisinghani
Trusted Contributor

Re: Max_PE_per_PV for the volume group too small for this PV

you might also try to recreate the VG with macro "-e"

vgcreate -e

Take a ignite backup
vgimport a map file
remove the vg... vgexport
and recreate the vg with increased



chindi
Respected Contributor

Re: Max_PE_per_PV for the volume group too small for this PV

Hi Sunny,
Can u plese tell me hw much of my PE wont be utilized ...Bcoz from the vgdisplay output all the PE's have been assigned...and no free PE's are left...
Sunny Jaisinghani
Trusted Contributor

Re: Max_PE_per_PV for the volume group too small for this PV

"vgextend: Warning: Max_PE_per_PV for the volume group (1599) too small for this PV (2239).

Using only 1599 PEs from this physical volume."

above message indicates that only 1599 PEs will be used and that many only will be assigned.

It seems you have added a disk of ~70GB. So, as per your VG attributes you can only use 50GB disk space from this disk.

Either increase OR use disks of smaller size

SUnny
Raj D.
Honored Contributor

Re: Max_PE_per_PV for the volume group too small for this PV

chindi,

what is the os version?

- If you have 11.31 you can change the VG parametrs online with vgmodify command.
Check out the man page.

- 11.23 also supports vgmodify with added
patch,

You can check this link:
http://docs.hp.com/en/B2355-60130/vgmodify.1M.html


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Emil Velez
Honored Contributor

Re: Max_PE_per_PV for the volume group too small for this PV

vgmodify is the answer
Bill Hassell
Honored Contributor

Re: Max_PE_per_PV for the volume group too small for this PV

When you create a volume group, the PE size and max PE per PV are either defaulted (1016 extents of 4 MB -- very limited) or computed based on the largest disk you use when creating the VG. Unless you won't use larger disks in the future, this is a bad choice. Your PE size of 32 fine but the max PE per PV is far too small and cannot be increased in 11.11 or earlier. As mentioned, 11.23 and 11.31 have the ability to modify certain VG values. The ability to increase a VG depends on your OS version and patches. For VGs that will have larger disks added in the future, you'll need to accommodate the largest future disk. PE size can be much larger as well as increasing maxPE/PV.

If you are running 11.11 (or 11.23 without the above patch), the disk you are adding has 2239 extents but the VG cannot use more than 1599 extents -- you cannot use about 1/3 of the disk. The only fix is to backup all the data on this VG and then recreate it with much larger value for maxPE/PV , perhaps 30000 rather than 1599.


Bill Hassell, sysadmin