Operating System - HP-UX
1833027 Members
2110 Online
110049 Solutions
New Discussion

Re: How can I set default Max PV for volume group

 
Dean Lackey_1
New Member

How can I set default Max PV for volume group

I have a vg that has it the Max PV, I want to export the VG and create a map file, then do the mkdir and mknod and vgimport the map, but I want to increase the Max PV for the VG,
how can I do this
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: How can I set default Max PV for volume group

Unfortunately, this has to be done at pvcreate.

Pete

Pete
John Poff
Honored Contributor

Re: How can I set default Max PV for volume group

Hi,

I don't think you can increase the max pv doing a vgimport, because you are just bringing back an existing vg structure. You'll probably need to do a vgcreate to make a new vg with the higher max pv setting and then restore your data.

JP
Ken Hubnik_2
Honored Contributor

Re: How can I set default Max PV for volume group

You can only do it with the -p option when you create the volume group.
James R. Ferguson
Acclaimed Contributor

Re: How can I set default Max PV for volume group

Hi:

The only way to change the 'max_pv' for a volume group is to *recreate* the volume group ('vgcreate'). Exporting and importing the volume group is not going to help.

Regards!

...JRF...
Deshpande Prashant
Honored Contributor

Re: How can I set default Max PV for volume group

HI
Only way will be to re-create the VG with required maxpv and restore the data.

Thanks.
Prashant.
Take it as it comes.
Dean Lackey_1
New Member

Re: How can I set default Max PV for volume group

Thanks, I was trying to avoid restoring 189Gb of data or creating a new vg with additional growth capablilities, but I guess I can do it the hard way.
Pete Randall
Outstanding Contributor

Re: How can I set default Max PV for volume group

My humble apologies, Dean, I meant to say vgcreate (even double checked the man page) but my non-cooperating fingers typed pvcreate. Thankfully I didn't confuse anyone.

Pete

Pete