Operating System - HP-UX
1756161 Members
3478 Online
108842 Solutions
New Discussion юеВ

Re: vgextend only allowed to use 16 Physical Volumes

 
SOLVED
Go to solution
Matthew Bullock
Occasional Contributor

vgextend only allowed to use 16 Physical Volumes

I am trying to create a large, striped and mirrored data area. To do this I need to allocate 18 disks to the volume group. However, when I try to add the last two disks, it complains of "too many links". When performin a vgdisplay, I see that the maximum number of physical volumes allowed is set to 16, how can I increase this number to allow for my extra two disks?
Any help would be greatly appreciated.
Thanks in advance, Matt
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: vgextend only allowed to use 16 Physical Volumes

Matthew,

Could you run next command, change your volumegroup number.

# vgdisplay -v vg00 | grep "Max PV"
Max PV 16

Robert-Jan
Kenneth Platz
Esteemed Contributor
Solution

Re: vgextend only allowed to use 16 Physical Volumes

Matt,

Unfortunately I believe this parameter, maximum PV's per VG, can only be modified at the time you create your volume group (the other REAL gotcha is the maximum number of PE's per PV, which makes it difficult if you try to add larger disks than you had originally created the VG with).

You would need to re-create your VG with the "-p" parameter:

vgcreate -p 32 /dev/vg01 /dev/dsk/cXtYdZ [...]

Hope this helps
I think, therefore I am... I think!
Matthew Bullock
Occasional Contributor

Re: vgextend only allowed to use 16 Physical Volumes

I have run the command as you suggested, and like you I get the result of:
Max PV 16
It is this figure that I am trying to increase. I have heard that it is possible, but the person who informed of that could not remember the parameter that controls this figure.
Cheers, Matt
Sridhar Bhaskarla
Honored Contributor

Re: vgextend only allowed to use 16 Physical Volumes

Hi Matt,

By default the command 'vgcreate' will set the 'maxPVs' to 16 if you didn't specify a large number while creating the volume group with '-p' option.

At this time, there is not much you can do to extend the volume group. To change this parameter, you will need to recreate the volume group.

A solution is to create another volume group with the additional disks. Make sure you use sufficiently large maxPV, maxLV, extent size Max PE per PV while creating the volume group. Create new logical volumes and copy the data from old VG to new VG. Then youc an destroy the old VG and add them to new VG for mirroring.

However, striping cannot be done once the LVs are created. And also LVM does not support Striping and Mirroring together. At the best you can do is extent level striping but that may not provide enough performance boost.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: vgextend only allowed to use 16 Physical Volumes

The vgcreate command(ie starting over) is the only hope of fixing this:

vgcreate -p max_pv

with the other parameters of course you need to create a volume group.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Matthew Bullock
Occasional Contributor

Re: vgextend only allowed to use 16 Physical Volumes

All done now! Thank you one and all.
I have recreated the vg with the -p option and all is now well.
Thanks again, Matt