Operating System - HP-UX
1753405 Members
7203 Online
108793 Solutions
New Discussion юеВ

How to change the max_PV parameter ?

 
SOLVED
Go to solution
Bhaskar Luitel
Advisor

How to change the max_PV parameter ?

We tried to follow the document given by RC. But everytime we do a vgimport it overwrites preveiously set( thru vgcreate, -p option) parameter of max_PV .

1. vgexport /dev/vg** ( tried taking -s also)
2. mkdir /dev/vg**
3. mknod /dev/vg**/group c 64 0x0*0000
4. vgcreate -p [# of pv's] -e [# of pe's] /dev/vg** /dev/dsk/new disk
5. vgchange -a n /dev/vg**
6. mv /etc/lvmtab /etc/lvmtab.good
7. vgimport /dev/vg** /dev/dsk/exported disks
9) more steps ....

Is there any way to change the max_PV ( not the ones in the knowledge mine, actually working for someone ) without recreating the entire LVMs - unsupported/undocumented ?
Thanks in Advance
2 REPLIES 2
Alan Riggs
Honored Contributor
Solution

Re: How to change the max_PV parameter ?

I do not believe so. The problem is that the VG structure (including max PVs) is written into the LVM header (VGDA specifically) of each disk in the VG. When you import your VG, this value "returns".
Patrick Wessel
Honored Contributor

Re: How to change the max_PV parameter ?

You can't change this after you have already done the vgcreate, and you can't simply export and import the vg. You would have to backup the data, remove the vg, vgcreate -p, recreate lv's, then restore the data.
There is no good troubleshooting with bad data