Operating System - HP-UX
1825776 Members
2088 Online
109687 Solutions
New Discussion

Re: change max pv for volume group

 
Andreas Barth
Occasional Contributor

change max pv for volume group

Hallo,

we have to change the parameter max pv`s of our Volume Group. What`s the command to do this. We reached the maximum size of disks in this vg but we need more space.

Thank`s for reply.

best regards

Andreas
Andy Barth
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: change max pv for volume group

Mridul Shrivastava
Honored Contributor

Re: change max pv for volume group

You need to recreate the vg and while creating vg need to specify -p option
Time has a wonderful way of weeding out the trivial
Reshma Malusare
Trusted Contributor

Re: change max pv for volume group

Hi Andreas,
Max pv parameter is set during the creation of volume group.now if you want to change it then first take backup of your data.
Its better to create vg as suggested by Mrudul.
Use vgcreate command with following option:
-p max_pv-->Set the maximum number of physical volumes that the volume group is allowed to contain. The default value for max_pv is 16. The maximum number of physical volumes can be a value in the range 1 to 255.

vgcreate -p
[ Min 16 & Max 255 ]

Regards,
Reshma
Torsten.
Acclaimed Contributor

Re: change max pv for volume group

Hi,

changing of parameters like this is only possible with HP-UX 11i v3.
For all previous versions see the posts above.

For more information about vgmodify see

http://docs.hp.com/en/B2355-60130/vgmodify.1M.html

run

vgmodify -t vgxx

to see the possible values.

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!