RSYNC Hung
Troy Haines
troyhaines at primaryhealthcare.com.au
Thu Jul 19 23:39:00 GMT 2007
Hi all,
RSYNC Server: CENT OS 5 RSYNC Version: 2.6.8, Running RSYNC Daemon.
Client: Windows 2003 Standard, Delta Copy running rsync.exe version
2.6.6
We are backing up 2 files at each site at a total of 3 sites. 1 site is
running perfectly, whilst the other 2 are causing constant grief. The
backups at these 2 sites are hanging during the RSYNC process at random
places. One of the two files cause the hang. We are running the
following command on the client to initiate the backup:
rsync.exe -v -rlt -z --delete
"/cygdrive/D/MT32/ddiBkRes/Backup/PHCCAMMT32.GBK"
"192.168.X.X::rsync//PHCCAMMT32.GBK"
When it hangs, If I kill the rsync process on the client it will attempt
the backup again. Usually a few retries and it will go through
successfully. The RSYNC client log just states "Syntax or usage
errorRsync.exe returned an error. Will try again. This is retry number 1
of 5"
On the server, I have ran strace on the 2 rsync daemon processes and
getting the following output after killing the rsync process on the
client.
[root at testlinux ~]# strace -c -T -p 4088
Process 4088 attached - interrupt to quit
Process 4088 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
68.70 0.004287 179 24 select
16.27 0.001015 85 12 12 open
6.44 0.000402 101 4 send
4.36 0.000272 54 5 read
3.48 0.000217 54 4 time
0.75 0.000047 24 2 1 waitpid
0.00 0.000000 0 1 1 kill
0.00 0.000000 0 1 sigreturn
0.00 0.000000 0 2 rt_sigaction
------ ----------- ----------- --------- --------- ----------------
100.00 0.006240 55 14 total
[root at testlinux ~]#
[root at testlinux ~]# strace -c -T -p 4089
Process 4089 attached - interrupt to quit
Process 4089 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
58.36 15.742245 690 22815 1 read
40.37 10.888016 871 12501 write
1.25 0.337640 217 1558 select
0.02 0.005026 77 65 _llseek
0.00 0.000275 138 2 rt_sigaction
------ ----------- ----------- --------- --------- ----------------
100.00 26.973202 36941 1 total
[root at testlinux ~]#
[root at testlinux ~]#
These logs don't make much sense to me as my Linux skills are limited.
For further troubleshooting I was thinking of trying the backups without
compression and using CYGWIN in conjunction with the newest version of
RSYNC.
Any Help would be great.
Troy
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync
mailing list