Operating System - HP-UX
1833187 Members
2722 Online
110051 Solutions
New Discussion

rcp from server1 to server2 ..

 
SOLVED
Go to solution
Shabaz
Advisor

rcp from server1 to server2 ..

Hi,
I am using rcp to copy files from server1 (L2000) hp-Ux 11i to server2 (L1000) hp-Ux 11i.
In both the server, I can see 90 system is idle,
Can I speed up the rcp, (more priority).
(rcp is going very slow, total 10gig to copy)
Can I use nice command ?

Is it possible, if yes pelase ...
Thanks & Regards
Shah
"Knowledge is the most precious gift to man kind, by the CREATOR"
6 REPLIES 6
Thierry Poels_1
Honored Contributor
Solution

Re: rcp from server1 to server2 ..

Hi,

possible network bottle neck?! Try to route to 100MB lan or faster (fibre optic) if available.

You can also try to compress the data before the copy :

find . | cpio ???ocB | compress | remsh srv2 ???cd /dir; uncompress| cpio ???icvdumB???


good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Shabaz
Advisor

Re: rcp from server1 to server2 ..

Hi,
Thanks Thierry, for quick response.
I can't compress the source files, these are binaries.

Is there no otherway? at command level,
like nice command.

Please ...

Regards
Shah

"Knowledge is the most precious gift to man kind, by the CREATOR"
Deepak Extross
Honored Contributor

Re: rcp from server1 to server2 ..

Hi,
rcp is not a cpu-intensive process. So reducing the nice value doesn't sound like a solution to your problem. It's more likely that the network bandwidth is the bottleneck. You can check by ftp'ing a small file across the 2 machines - on completion of the file transfer, it will display the data transfer rate. Form that, you can estimate the time required to transfer your file.
Deepak Extross
Honored Contributor

Re: rcp from server1 to server2 ..

Shabaz,
Binaries *can* be compressed, just as long as you remember to uncompress them at the other end before running them.

Try doing this:
ON SOURCE MACHINE:
tar cvf mytar ; gzip mytar ;

ON DESTINATION MACHINE:
gunzip -c mytar.gz | tar xvf -
Thierry Poels_1
Honored Contributor

Re: rcp from server1 to server2 ..

please DO try this one:

cd /sourcedir
find . | cpio ???ocB | compress | remsh server2 ???cd /targetdir; uncompress| cpio ???icvdumB???

EVERYTHING will copied (including links, special files, ...), and all will be compressed and uncompressed on the fly.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Michael Tully
Honored Contributor

Re: rcp from server1 to server2 ..

One thing I would like to suggest you also look at is the network. Make sure that you LAN cards are in sync with your switch. The cards should be running as Full-Duplex and not half-duplex. You can use 'lanadmin' to view it and also to change it.

# lanadmin
to change
# lanadmin -X 100FD 0 (LAN card 0)

HTH
-Michael
Anyone for a Mutiny ?