Operating System - HP-UX
1753468 Members
4629 Online
108794 Solutions
New Discussion юеВ

Re: change maximum physical volumes

 
Stephan Ravare_1
Occasional Contributor

change maximum physical volumes

I need to add some more disk drives to a volume group thats already created, is there a way to increase the maximum physical volumes that are allowed? Without re-creating the volume group?
6 REPLIES 6
MANOJ SRIVASTAVA
Honored Contributor

Re: change maximum physical volumes

By default the maximum Physical Volume supported are not more than 16 , to increase this value you have to recreate the volume group with -p option , do a man vgcreate .

" -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.
"


Manoj Srivastava
Pete Randall
Outstanding Contributor

Re: change maximum physical volumes

Unfortunately, no, you'll have to re-create!


Pete



Pete
Helen French
Honored Contributor

Re: change maximum physical volumes

This parameter can be set only at the creation of the VG. The default is 16 and you can have up to 255.

# vgcreate -p max_pv ....
Life is a promise, fulfill it!
Marco Santerre
Honored Contributor

Re: change maximum physical volumes

Unfortunately, in this case the only answer is no. Whether your Volume Group was created with the default value or with any value at all, if you've reached that limit, the only way out, is to re-create the VG.
Cooperation is doing with a smile what you have to do anyhow.
Geoff Wild
Honored Contributor

Re: change maximum physical volumes

No - as others have stated - you will have to create a new vg.

You will then have to copy the data from old to new.

Take a look at this thread for tips on copying:

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

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Brian Markus
Valued Contributor

Re: change maximum physical volumes

It has to be done when you create the VG. The default is 16 and you can have up to 255.

Build an export map file
vgexport -v -p -s -m /ops/vgXX.map /dev/vgXX
back everything up. Once you've done that, then do a regular vgexport to drop it.
create a new vg with the same minor number
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0x010000
The 0x010000 being the number of what ever it used to be.
change the VG parm's I belevie it is vgcrate -p
then import the disks back in.
vgimport -v -s -m /ops/vgXX.map /dev/vgXX

I beleive this should do it.

I hope this helps.

-Brian.
When a sys-admin say's maybe, they don't mean 'yes'!