LVM and VxVM

Re: Migrating VG's to a new server

 
SOLVED
Go to solution
marvin51796
Regular Advisor

Migrating VG's to a new server

I am trying to find a write up about how to migrate several VG's from one server to another server. We are buying all new servers and cant really rebuild the EPIC environment that we have so we were told that we could migrate the VG's from one server to another server .

 

Could anyone point me in the right direction?

 

hpux 11iv3 patched march 2014 - about 12T of data and 3 vg's ( 15 lun's)

thank you

 

2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: Migrating VG's to a new server

In a nutshell:

 

1) 'vgexport' all VGs on your current server using the '-s' option to get the VGID and '-m' to create a map file and copy the map files to the new server.

2) Shut down current server

3) Zone the LUNs so that the new server can see them

4) Verify all LUNs are visible on the new server via 'ioscan'.

5) 'vgimport' the LUNs on the new server specifying the '-s' option and the '-m' option to use that map file created in step 1.

6) Once all LUNs are imported activate them with 'vgchange -a y'

7) Now they are ready to mount.

mrmo07
Regular Advisor

Re: Migrating VG's to a new server

 

HI,

 

Take a map file of  volume group  of source server  and do a  vgexport/vgimport on the target node:


First node where vg active:

#vgexport -pvs -m /tmp/vgvedas.map /dev/vgvedas

Copy the map file to target  node

#scp /tmp/vgvedas.map node2:/tmp

Second node:
#vgexport /dev/vgxx
#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x[minormumber]0000

#vgimport -vs -m /tmp/vgxx.map /dev/vgxx

 

probably you need to go with little details as it big !!!

 

Regards,

 

Morshed.