I have two HPUX boxes. They are on seperate subnets with a router between them.
I am trying to replicate some files from one box (old server) to another box (new server).
The process I am doing is as follows:
1. On old box, export the directory (exportfs -i -o root=newbox /dbs)
2. On new box, mount the directory (mount oldbox:/dbs /mnt/dbs)
3. On new box, copy data using rsync (/usr/local/bin/rsync -avP /mnt/dbs/ /oldbox/dbs)
The problem is that the file copy is EXTREMELY slow.
If I look at a file that is copying now with rsync, it shows:
qad.cpio.Z
27033600 78% 17.43kB/s 0:07:14
which shows that it's done 27MB (which is 78% of the file) at the rate of 17.43kB/s and the time remaining is 7 mins, 12 secs.
If I look at the interface on the router between the two subnets, it shows a transfer rate of approx 2.5Mbit/s through the interfaces.
I'm further constrained by the fact that what I really want to copy off is a Progress DB file and I have a limited window to do this when the DB is shutdown for backups during the night (about 90 mins). If I'm reading it correctly, the DB file is about 200MB in size:
du -k mfg.d1
200000 mfg.d1
At the rate of 17kB/s it's going to take forever.
So my question is, how would you suggest a better way of copying the data from old box to new. I don't have space on the old box to create a TGZ file and copy that across.
An option might be to restore the database from tape to the other server ? Is there a way to restore from tape to an NFS mount ? The tape drive in the old server is DDS3, so I would have to restore from the tape across the network to the new server.
edit: A transfer that I let run has just finished. The results are:
sent 540317467 bytes received 268708 bytes 69569.03 bytes/sec
total size is 586467374 speedup is 1.08
Which shows a transfer rate of just under 70KBytes/sec over the whole transfer (584MB)
Start Free Trial