1836785 Members
2334 Online
110109 Solutions
New Discussion

Re: vgextend

 
Dinakar_1
Occasional Contributor

vgextend

Hi All,

I have a VG with 16 PV's in it. Is there any way I can extend the VG? As now my MAX PV is 16 when I am trying to extend the VG it says too many links and the command fails.

Pls let me know in case we can change the MAX PV value without recreating the VG.

Thanks and Regards,
Dinakar.
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: vgextend

Hi Dinakar:

The default maximum for the number of physical volumes in a volume group is sixteen (16) unless you specify a different value (1-255) with '-p max_pv' during the 'vgcreate' process.

Once set, it cannot be changed.

Your only recourse is to backup the volume group's filesystems; destroy the existing VG ('vgexport' is the fastest way) and recreate the volume group with a larger 'max_pv' value.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: vgextend

Once created volume group limits can not be changed.

Just to be sure you have set -p 16 you may wish to post vgdisplay output up here.

Fortuneately you can backup data, break down and rebuild the volume group with little trouble.

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
Raj D.
Honored Contributor

Re: vgextend

Hi Dinakar,

The default mx PV is 16 ,when creating with vgcreate without any -p option.
When you create a vg you can specify "-p max_pv" parameter to extend PV more than 16.

Now you cannot extend the PV without destrying the VG.

You can backup the entire vg , export and recreate with -p option upto 255.

Hth,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Devender Khatana
Honored Contributor

Re: vgextend

Hi,

It is not possible. Various parameters are to be planned while creating VG having look for future. And it is really painful to recreate VG only for this reason.

If possible try creating another VG with new PVs.

HTH,
Devender
Impossible itself mentions "I m possible"
Dinakar_1
Occasional Contributor

Re: vgextend

Thanks guys for replying to the question. Below is the o/p where 16 PV's are already configured.

Any ways I just wanted to make sure that there is no way to change the VG parameter w/o recreating.

--- Volume groups ---
VG Name /dev/vg106
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 17
Open LV 17
Max PV 16
Cur PV 16
Act PV 16
Max PE per PV 2157
VGDA 32
PE Size (Mbytes) 4
Total PE 34496
Alloc PE 32852
Free PE 1644
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Dinakar_1
Occasional Contributor

Re: vgextend

Well, as Now that we cannot change the VG properties to change MAX PV's value without destroying, I am closing the thread. I hv assigned points to all for the response I got. and 7 for the quickest reply. Cheers..
Sยภเl Kย๓คг
Respected Contributor

Re: vgextend

Fine, but ensure that when u go for the reacreation,u take care of all other static paramaters too.

Mistake is the best guru !

All the bests,
Regards,
Sun
Your imagination is the preview of your life's coming attractions