Operating System - HP-UX
1830898 Members
3034 Online
110017 Solutions
New Discussion

Export VG01 to another disk server

 
SOLVED
Go to solution
MárcioAFM
Frequent Advisor

Export VG01 to another disk server

Hello,

I would like to know how can i make a vgexport from one disk server to another disk server.

Thanks,

Márcio
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Export VG01 to another disk server

Hi Marcio:

Have a look at the 'vgexport' and 'vgimport' manpages. They have some good examples to guide you. You can edit the device file paths in the "infile" prior to using 'vgimport' to match that of the receiving server. The mapfile is for associating the *logical volume* names to logical volume numbers, although by default, 1=lvol1; 2=lvol2, etc.

http://www.docs.hp.com/en/B3921-60631/vgexport.1M.html

http://www.docs.hp.com/en/B3921-60631/vgimport.1M.html

Regards!

...JRF...
Robert-Jan Goossens
Honored Contributor

Re: Export VG01 to another disk server

Hi Márcio

ServerA
vgchange -a n /dev/vg01
vgexport -p -s -m /tmp/vg01map /dev/vg01
copy the map file from A to B

ServerB
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s -m /tmp/vg01map /dev/vg01
vgchange -a y /dev/vg01

Regards,
Robert-Jan
MárcioAFM
Frequent Advisor

Re: Export VG01 to another disk server

Thanks for the help :)!

Marcio
sreekanthtm
Trusted Contributor

Re: Export VG01 to another disk server

The procedure given by Robert is correct,
and one more thing, Keep the minor number of the VG as used in server A. This will avoid other complications....

Rgds
Sreekanth
MárcioAFM
Frequent Advisor

Re: Export VG01 to another disk server

Hello,

I'm not going to export from one server to another. What i want to do is:

I have a server with a disk from EVA4000 presented, and i'm going to present a new disk from a EVA6000 to the same server, and i want to export the VG01 to this new disk (that is in the same server).

Thank you

Márcio
Torsten.
Acclaimed Contributor

Re: Export VG01 to another disk server

Do you mean by "export" you want to move data from the eva4k vdisk to the eva6k and use this as vg01?

2 possibilities (out of some more):

1) backup data, adjust config and restore data

2) mirror the data from 4k to 6k. Once this is done, remove the mirror from the 4k

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
MárcioAFM
Frequent Advisor

Re: Export VG01 to another disk server

Ok,

The data will be replicated using continuous access, in the server i need to put in the new disk the VG01 structure.

Thanks,

Márcio
Torsten.
Acclaimed Contributor
Solution

Re: Export VG01 to another disk server

So vgexport the vg (eva4k) after replication and vgimport the vg from eva6k.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!