Operating System - HP-UX
1832900 Members
2258 Online
110048 Solutions
New Discussion

How to increase MAX PV in a vg

 
SOLVED
Go to solution
Carme Torca
Super Advisor

How to increase MAX PV in a vg

Hi,

How can I increase de MAX PV in a vg, now I have one vg witch MAX PV = 16 and I would like to put 40.

Could anyone help me?
Thanks,
Carmen.
Users are not too bad ;-)
9 REPLIES 9
Shrikant Lavhate
Esteemed Contributor

Re: How to increase MAX PV in a vg

You need to edit kernal parameters for the same.

Will it remain a personal, if I broadcast it here!
Luk Vandenbussche
Honored Contributor

Re: How to increase MAX PV in a vg

This can only be done when you create the volumegroup

vgcreate -p

See also man vgcreate
Shrikant Lavhate
Esteemed Contributor

Re: How to increase MAX PV in a vg

Kernal tuning info , you can get it on HP like this is for HPUX 11i

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920025/c01920025.pdf (BSC link updated by admin)
Will it remain a personal, if I broadcast it here!
Robert-Jan Goossens
Honored Contributor

Re: How to increase MAX PV in a vg

Hi Carmen,

There is a tool called vgmodify available for 11iv2(PHCO_35524) and 11iv3.

http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01920387/c01920387.pdf (BSC link updated by admin)

Regards,
Robert-Jan
Roberto Volsa
Frequent Advisor

Re: How to increase MAX PV in a vg

no wya to change MAX PV on an already created VG.

You need to create another vg and move data in the new one.

RV
Amit Parui
Valued Contributor

Re: How to increase MAX PV in a vg

hi Carme,

In this case you can do two things -

1) To create a new vg, setting the max pv to the max -

vgcreate -p 255 ...

2) To take a backup of the data and then vgexport the current vg. Then create a vg with the same vg with the required settings and eventually do a vgimport. This should work. But remember do take a backup of ur vg before.
If Life gives u a ROCK, its upto u to build a BRIDGE or a WALL !!!
Sp4admin
Trusted Contributor

Re: How to increase MAX PV in a vg

I agree with everybody else.

you would need tp do this when you created the volumegroup. The only other way is to create another vg and move the data.

sp,
Torsten.
Acclaimed Contributor
Solution

Re: How to increase MAX PV in a vg

See the example, this works on 11.23 and 11.31 (I changed the PV value from 4 to 6)
(VG must be de-activated):

#vgmodify -p 6 vgtest

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 8683
PE Size (Mbytes) 4
VGRA Size (Kbytes) 1152
The current and new Volume Group parameters differ.
An update to the Volume Group IS required


New Volume Group settings:
Max LV 255
Max PV 6
Max PE per PV 8683
PE Size (Mbytes) 4
VGRA Size (Kbytes) 464

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Rita C Workman
Honored Contributor

Re: How to increase MAX PV in a vg

OK..to recap.

1. Check the setting on kernel parm "maxvgs". You can only add up to what this is set at. So change it to something better - maybe 50.

The (16) you see, is the default amount given when you vgcreate and do NOT use the -p option.

2. vgmodify is a nice tool that is available in 11i ver2 and higher.
If your below this O/S, then you can not change what is there, only create something new using the -p <#> option. See man vgcreate.

Which is what everyone above has said....in one way or another.

Rgrds,
Rita