1833918 Members
1134 Online
110063 Solutions
New Discussion

data move

 
Remy_1
Occasional Advisor

data move

Hi,

I'm in a bit of a mess that I can't seem to find a good solution to. Please help!
Well, here is what I have on my plate:

I have an existing server that holds all my data. I've recently purchased a new server and I would like to move all of my data from the old server to the new server.
I have a couple of ideas, but never done it before, so I'm unsure of what the result will be.
1-use vgexport and vgimport (What is the exact syntax for this?)

2-duplicate all the VGs on the new server and restore all data onto the new server.

I think using vgexport and vgimport would be the best way for me. Can someone help me with the exact syntax?

Thanks in advance,
RC

 

P.S. This thread has been moved from Disk to HP-UX > VM and VxVM. -HP Forum Moderator

3 REPLIES 3
Zigor Buruaga
Esteemed Contributor

Re: data move

Hi,

What about using Ignite-UX?
You can clone your old system and restore it to the new system in interactive mode.

Kind regards,
Zigor
Sandro Schaer_1
Advisor

Re: data move

I'm not sure if vgexport/vgimport does what you expect. As far as I know vgexport just exports the definitions of a vg but not the data it contains.

I'd set up the new server with all the vg's you need. Also add a .rhosts file to allow for easy remote access. Hook on your new server to the net.

After that you can easily copy from old to new by using something like (in the old host)

cd /your_dir_old
rcp -rp * newhost:/your_dir_new

like this you can copy complete directories without loosing owner/group/access rights.
JUST MAKE SURE YOU FIRST CREATE THE USERS/GROUPS ON THE NEW SERVER.
You might consider copying /etc/passwd and /etc/groups first

Leif Halvarsson_2
Honored Contributor

Re: data move

Hi,
Are you going to move the data disks from your old server to the new server. In this case vgexport/vgimport is an alternative othervise you have no use of it here. Make sure you have a good backup before moving any disk.
If you not are going to reuse the old disks bsckup/restore is an alternative or, perhaps the easiest, NFS mount the volumes to a temporary location and copy the data with "find . -print |cpio -pdvmux