1833762 Members
2770 Online
110063 Solutions
New Discussion

Increasing Max PE per PV

 
Venkat_11
Regular Advisor

Increasing Max PE per PV

We are having a hp-ux in it a volume id created with four 4gb luns.. And now we are trying to add one 10gb lun and when we are using vgextend command it comming back and saying that Max PE per PV is 1078 only and its adding 4gb out of 10gb .

Can any body advice how increase the Max PE in PV .

Thanks in Advance

Venkat
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Increasing Max PE per PV

It can't be done. The max PE value is set when the VG is created. You should always specify a max pe value when running vgcreate that will handle your biggest anticipated physical volume. You will need to recreate the VG and to make things easiers use the 10GB disk as your first PV.
If it ain't broke, I can fix that.
Hoang Chi Cong_1
Honored Contributor

Re: Increasing Max PE per PV

Hi VenKat

You can not increase the Max PE per PV number!
The maximum PV you can create in a VG depend on the Max PE per PV and PE size(Mbytes).
This number was definded when you create new VG.

Hope this helps
Hoang Chi Cong
Looking for a special chance.......
Hoang Chi Cong_1
Honored Contributor

Re: Increasing Max PE per PV

Hi VenKat

You need to assign some points to everyone who helps you:
http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA747329&forumId=1

Thanks!
Looking for a special chance.......
Shameer.V.A
Respected Contributor

Re: Increasing Max PE per PV

Hi Venkat,
It is not possible to increase max PE/ PV Parameter after the vg creation. You have to set this parameter when you create a vg manually ( vgcreate -e -s ), otherwise system take the optimal value according to the size of current disk/ LUN.

You can create a new vg with maximum PE/PV for the new LUN & create lvols, transfer all the data from the current vg lvols to new vg lvols. Later you can do a vgexport of both the vgs & import the new vg with the old vg name.

Regards,

Shameer


.... See invisible, feel intangible and achieve impossible as everything is possible ....
Alzhy
Honored Contributor

Re: Increasing Max PE per PV

If you are running 11.11, AND your LUNS come from a SAN array or a RAIDed array and have PATH protection (i.e. autopath or securepath) - then I can suggest you convert your LVM VG and its lvols to VxVM. Then you won't have this PE/PV issue. No need for a license for the base VxVM and you should be able to still do online LUN/disk addition and volume (formerly LVOL) expansion if your Filesystem (OJFS - aka VxFS) allows it -- meaning your licensed for OJFS/VxFS.

The tool is called vxvmconvert. man vxvmconvert. But backup your data first.



Hakuna Matata.
Emil Velez
Honored Contributor

Re: Increasing Max PE per PV

There is a unsupported utility called vgmodify available from the response center

See

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=832370

I have used it multiple times to do exactly what you want to do. There are some situaitons where it does not work.

Please make sure you get it from a good source for your Operating system. Please also make sure you have good LVM patches.

Emil


Sivakumar TS
Honored Contributor

Re: Increasing Max PE per PV

Dear Venkat,

The max PE value is set when the VG is created. You will need to recreate the VG, manually

# vgcreate -e -s )

You can calculate this based on the BIGGEST - LUN that you may want to add to LVM.

The totale LUN size is no.of PE*PEsize.

The maximum value for the MAX PE per PV is 65535, so you can adjust the PE size upto 256MB wheras the default value is 4 MB.

With Regards,

Siva.





otherwise system take the optimal value according to the size of current disk/ LUN.
Nothing is Impossible !