Operating System - HP-UX
1854675 Members
8864 Online
104102 Solutions
New Discussion

Re: Max number of physical volumes alowed in a volume group

 
SOLVED
Go to solution
BOB BARBA
Contributor

Max number of physical volumes alowed in a volume group

Is there a limit to the number of physical volumes you can add to a non system volume group? I have an external HASS fully populated with 8 drives. I have two internal discs that I would like to add to the same volume group - is this possible?

Many thanks .... BobB
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: Max number of physical volumes alowed in a volume group

Hi:

The default value for the maximum number of physical volumes in a volume group is 16. This value an be set with the '-p ' option of the vgcreate command. 'max_pv" can range from 1-255 but cannot be altered once the volume group is created.

...JRF...
Emil Velez
Honored Contributor

Re: Max number of physical volumes alowed in a volume group


If you do a vgdisplay -v vgXX it will show
you a field called MAX PV. This is the maximum number of disks that can be in the volume group when it was created. A previous reply mentioned how this is specificed in the vgcreate command. I suggest that anytime someone uses vgcreate they set

vgcreate -e 20000 -p 100

so you can have 100 disks in the volume group and 20000 (4 MB extents) on a single disk.

That should keep you for a while i hope.

Dan Hetzel
Honored Contributor

Re: Max number of physical volumes alowed in a volume group

Hi Bob,

As your HASS is populated with 8 drives, you should be able to add another 8 drives, providing the volume group has been created with de default max of 16.

Your MAX PV will be shown with 'vgdisplay -v vgXX' but cannot be changed once the volume group has been created.
Keep this in mind for next time.
The absolute maximum is 255.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com