Operating System - HP-UX
1834643 Members
3251 Online
110069 Solutions
New Discussion

Devices have changed, how to reconfigure vg

 
SOLVED
Go to solution

Devices have changed, how to reconfigure vg

Hi all,
I've a got a HP-UX 11i server connected to a disk cabinet. After some hardware change, my devices (cxtydz) which was correlated to the disk cabinet have changed.
Now I've a got a problem with my VGs on the disk cabinet.
How to redefine the VG (which still exist on the disk cabinet) to the new device ?
Thanks for your advice.
Lorenzo.
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Devices have changed, how to reconfigure vg

insf -e

vgexport if possible.

vgimport if possible

If not, create a new volume group and vgextend to the new disks.

You hopefully have the data backed up, thought the export/import route doesn't require it.

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
KapilRaj
Honored Contributor

Re: Devices have changed, how to reconfigure vg

vgimport if you know the disk's current address and pv -->vg mapping !

SuSE Linux does this automatically u know !

Regds,

Kaps
Nothing is impossible
Karthik S S
Honored Contributor
Solution

Re: Devices have changed, how to reconfigure vg

This one worked for me,

insf -e -C disk

mv /etc/lvmtab /etc/lvmtab.old
vgscan

(automatically picks up the new devices and updates lvmtab)

If that doesn't work stick on to vgexport/import.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Naveej.K.A
Honored Contributor

Re: Devices have changed, how to reconfigure vg

mv /etc/lvmtab /etc/lvmtab.old

and then run vgscan...
Your VGs with new address will be recreated.

With best wishes
naveej
practice makes a man perfect!!!
Sunil Sharma_1
Honored Contributor

Re: Devices have changed, how to reconfigure vg

Hi,

vgscan is the best way.
move old lvmtab file and run vgscan -v it will automatically correct it.
*** Dream as if you'll live forever. Live as if you'll die today ***
Isralyn Manalac_1
Regular Advisor

Re: Devices have changed, how to reconfigure vg

Do a vgimport of the VG map files. However, if you failed to do create VG mapfiles which you can do via vgexport, check /etc/lvmconf directory and check the *.mapfile entries. They usually get created when Ignite is ran. You can use these as mapfiles when you do the vgimport.

Re: Devices have changed, how to reconfigure vg

moving lvmtab and doing a vgscan work fine.
Thanks all.