Operating System - HP-UX
1834660 Members
3046 Online
110069 Solutions
New Discussion

Copying raw volumes to a new server

 
Robin King_1
Regular Advisor

Copying raw volumes to a new server

I'm in the process of upgrading a server to hardware. Moving from a K370 to an rp3410. I have build the OS etc, but now need to start transferring data. The new server doesn't have a local tape drive, so can anyone suggest the best way to transfer data between the two servers?

Filesytem data is not a major issue, but I'm not sure how to transfer the informix raw volumes I have. Is there a way of combining dd, and ftp into a script? Has anyone tried something similar.
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: Copying raw volumes to a new server

Hi Robin,

How about dd and remsh.

# dd if=/dev/rdsk/cxtydz ibs=1024 | remsh rhost -l ruser dd of=/dev/rdsk/cxtydz obs=1024

Yoy will need to setup a temp $HOME/.rhosts file for the user.

Hope this helps,
Robert-Jan
Victor Fridyev
Honored Contributor

Re: Copying raw volumes to a new server

Hi,

If you have a good network, you can copy raw_devices as follows:

dd if=/dev/vgxx/rlvolXX bs=32768k |remsh target "dd of=/dev/vgyy/lvolYY bs=32768k"

You have to provide free remsh access from source to target.

BTW, this is a good solution, if your DB is full, other I'd recommend to use ontape utility. I mean to create ontape archive , on the target machine build needed raw device configuration and restore the db with ontape -r. You can do ontape archive either on a tape or into a file.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Robert-Jan Goossens
Honored Contributor

Re: Copying raw volumes to a new server

or if you use raw lvol's


# dd if=/dev/vg01/rlvol1 ibs=1024k | remsh rhost -l ruser dd of=/dev/vg01/rlvol1 obs=1024k

and I changed the blocksize to 1024k, works faster.

Reagrds,
Robert-Jan
Robin King_1
Regular Advisor

Re: Copying raw volumes to a new server

Thanks Guys, I'll have a play, then assign points.

Thanks for your help.