1833704 Members
3129 Online
110062 Solutions
New Discussion

Remote Copy

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Remote Copy

We are going to resize some oracle DB's on a prod system. So I created equal filesystems on another dev box so we can copy the DB files to another system for fall back if something goes wrong. Our plan is to use rcp to copy the files to the dev system. Question, would I have better performance using rcp or should I nfs these mount points to the prod system and just use copy?
10x
RPM
UNIX IS GOOD
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor
Solution

Re: Remote Copy

Hi Robert,

rcp or a combination of find and cpio are fine.

# find /dir | cpio -ov | remsh server " cd /dir ; cpio -idvum "

# rcp -p files server:/dir/

Hope it helps,

Robert-Jan.
Pete Randall
Outstanding Contributor

Re: Remote Copy

Robert,

I'm not sure but I would think that you would be better off to avoid the overhead and complications of NFS.


Pete


Pete
Mark Grant
Honored Contributor

Re: Remote Copy

Actually, I think ftp might be marginally faster but definately I think NFS is not the optimum choice. rcp is fine.
Never preceed any demonstration with anything more predictive than "watch this"
Alzhy
Honored Contributor

Re: Remote Copy

Or use vxdump/vxrestore:
.
On Source server:
.
vxdump 0f - /ora001|remsh tgtserver "(cd /ora001;vxrestore rf -)"
.
Of course you must set up tgtserver to allow srcserver to remsh to it.


HTH.
Hakuna Matata.
Alzhy
Honored Contributor

Re: Remote Copy

And I would like to add: trust the tools that come with your Filesystem. In your case, I suppose it is VxFS (aka OJFS) so it is just fitting and proper that you use the tools native to it -- namely vxdump and vxrestore. If you update to VxFS/OJFS 3.5 (free btw), you get the ability to do vxdump/vxrestore on directories and files -- instead of whole Filesystems in the earlier versions.
Hakuna Matata.
Geoff Wild
Honored Contributor

Re: Remote Copy

We do this a lot - best performance we found was to do something like:

/usr/local/bin/tar -cf - /data | compress -c > data.tar.Z

Then rcp the file across the WAN...

That tar is the gnu tar...

RGds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.