Operating System - HP-UX
1834587 Members
3308 Online
110069 Solutions
New Discussion

Re: Doubt in VG EXPORT and VG IMPORT

 
madhuchakkaravarthy
Trusted Contributor

Doubt in VG EXPORT and VG IMPORT

ver hp ux 11i v3

lvm version : v1


for eg; take two nodes A and B.

Volume group /dev/vg01 of size 5 gb has been created on node A with PV as C1t2d3

now i need to create vg on another node B with same size as node A.

so is it possiable to use the vgmap of /dev/vg01 (node A ) on node B to create the same size.


vgexport -p -v -m /tmp/vg01.map /dev/vg01 ------------ >map file on node A.

now in node B , not created any vg dir and group file in /dev

i am running

vgimport -v -m -p /tmp/vg01.map /dev/vg01

is it possiable to do like that.

Regards
MC
4 REPLIES 4
Turgay Cavdar
Honored Contributor

Re: Doubt in VG EXPORT and VG IMPORT

It is not clear from your post:
Do you want to create two different volume groups(of course on different disks) on two different nodes? If yes then vgexport/vgimport is not useful for you.

Or do you want to access the same volume group on nodeB which is created on the nodeA? If yes then you can use vgexport/vgimport for this operation.
Uday_S_Ankolekar
Honored Contributor

Re: Doubt in VG EXPORT and VG IMPORT

If you want to share the same physical disk off of Node A to Node B you can use vgexpor with -s option while creating map file.

Good Luck..
S.N.S
Valued Contributor

Re: Doubt in VG EXPORT and VG IMPORT

Hi MC,

Just read the map file - it contains the VG/PV IDs so that the PVs are not manually added.

Before doing so - you would need to do:
"now in node B , created any vg dir and group file in /dev "

HTH
SNS
"Genius is 1% inspiration, 99% Perspiration" - Edison
Jayakrishnan G Naik
Trusted Contributor

Re: Doubt in VG EXPORT and VG IMPORT

Hi MC

1)Can you confirm whether the nodes mentioned and nodes in a cluster?
Or
2) Are you trying to use vgexport/vgimport as a shortcut to create volume group vg01 in multiple servers?

Vgexport/ vgimport is mainly used in following scenarios.

1) Vg Migration -to move a vg from one server to a different server.
In this scnario the PV (lun or disk) must be moved to new server.

2) Clustering, the PV must be connected to all the nodes and vg information should be available on all nodes where package (application) need to failover in case of failure. Inorder to replicate vg info to cluster nodes vgexport/vgimport is used.

3) Whereever needed, thi is the simplest way to remove the vg from a hpux server.


Regards
Jayakrishnan G Naik