Jump to content
 English      
???en.wpa.text.hpweb2003.home??? ???en.wpa.text.hpweb2003.prodserv??? ???en.wpa.text.hpweb2003.support??? ???en.wpa.text.hpweb2003.solutions??? ???en.wpa.text.hpweb2003.buy???
» ???en.wpa.text.hpweb2003.contact???
     Forums advanced search
HP.com Home
IT Resource Center Forums > HP-UX > system administration

vgimport with different vgname - This thread has been closed

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: vgimport with different vgname      Add to my favorites  This thread has been closed
akarayil Expert in this area
Nov 4, 2009 11:44:52 GMT   

Hi

I'm little bit confused over one of our current settings. We have two EVA storages and data replication (CA)is enabled between them.There are two hpux servers (2 node cluster) on PRIMARY site and a single server on DR site. There is one shared VG between cluster nodes. For this LUN, a DataReplication group is created in storage and the LUN in DR storage is presented to the hpux server in DR site.

I'm confused about the vgname used in PRI and DR site. In cluster nodes,same vgname is used, but in DR server the VG name is different (with different minor no.).

Suppose I create a vg and export it with a name vg01. On the other system I create a dir with a name /dev/vg02, then create the dev file with different minor no. I import map file using the command.
vgimport -s -v -m /etc/lvmconf/map.vg01 /dev/vg02
Is this work?
Here I would like to make this vg as cluster aware and add to the package control script.
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
HP moderator melvyn burnard Expert in this area This member has accumulated 20000 or more points
Nov 4, 2009 13:03:20 GMT  9 pts

so you have a 2 node cluster at the Primary site, and a single node (not part of the cluster ) ayt the DR site?
Then it doesn't matter if it has a different VG name.
Your vgexport/import example would work, UNLESS the 3rd server IS a part of the cluster
Kapil Jha This member has accumulated 1000 or more points
Nov 4, 2009 13:09:59 GMT  9 pts

it would work without any issue and it should work on cluster node as well if thats not part of cluster config (which would never happen)

It would work if vg01 belong to a package and on other node you are importing it as vg02, the only thing to keep in mind is you would be having different scripts on 2 boxes to handle package as your vg name is different.

BR,
Kapil+
Suraj K Sankari This member has accumulated 2500 or more points
Nov 4, 2009 13:24:09 GMT  9 pts

Hi,
Yes it will work. if it is a 2 node cluster..

Suraj
Bill Costigan This member has accumulated 2500 or more points
Nov 4, 2009 13:55:58 GMT  9 pts

VG names and minor numbers are local to the server. They are not written to the disks. It is the VGID that ties stuff together on the disks.

While it is nice to use the same name for the same volume group on all servers, it's more to keep the admin person sane. HPUX doesn't care.
Vishu This member has accumulated 250 or more points
Nov 4, 2009 17:58:30 GMT  9 pts

Hi,

It will work for sure. /etc/lvmtab maintains the VG database and it is local to the server. It has nothing to do with the cluster. But having same VG names in cluster makes Sys_Admin job easier to troubleshoot.

A exported VG can be imported with a new name on the server.
akarayil Expert in this area
Nov 5, 2009 06:12:59 GMT    N/A: Question Author

Thanks for the support.
So I can go ahead with adding this vg to the package.Correct me if any mistake in the following steps.
-Add vgname to cluster configuration file(optional) and vg and lv info to pkg control script.
-Copy pkg cntl script to the other node.
#vgchange -c y vgxx
#vgchange -a n vgxx
#cmhaltpkg -v PKG
#cmrunpkg -v PKG
#cmmodpkg -e PKG
I think as I'm not making any changes in package conf file, I dont need to run cmcheckconf and amapplyconf cmds.
akarayil Expert in this area
Nov 6, 2009 11:01:17 GMT    N/A: Question Author

Any Suggestion would be appreciated
Bill Costigan This member has accumulated 2500 or more points
Nov 6, 2009 14:04:28 GMT  9 pts

The steps look fine. The only change I might make is to add the VG and LV changes to the script file after the package is halted.

If you make the changes before the package is halted, the control script will try to unmount the file systems and deactivate the VG even though this is not necessary.

I doubt it would cause any problems even if it tried except maybe logging a few warnings in the control script log file.
akarayil Expert in this area
Nov 9, 2009 11:38:49 GMT   Thread closed by author  

Thank you
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.