I have a 3 file servers .1,.2,.3 and a database server .254 connected to XRAID backing up files to a XRAID using Rsync on os x server 10.3.9, the files start to copy then they fail halfway through. I notice these errors in the rsync logs:
2007/10/27 03:18:01 [19667] rsync to archivearray from server@server-1 (192.168. 2.1) 2007/10/27 03:18:38 [19614] rsync error: timeout in data send/receive (code 30) at /SourceCache/rsync/rsync-14/rsync/io.c(143) 2007/10/27 03:18:38 [19614] rsync: connection unexpectedly closed (755870 bytes read so far) 2007/10/27 03:18:38 [19614] rsync error: error in rsync protocol data stream (co de 12) at /SourceCache/rsync/rsync-14/rsync/io.c(342) 2007/10/27 03:19:49 [19610] rsync error: timeout in data send/receive (code 30) at /SourceCache/rsync/rsync-14/rsync/io.c(143) 2007/10/27 03:19:49 [19610] rsync: connection unexpectedly closed (1328495 bytes read so far) 2007/10/27 03:19:49 [19610] rsync error: error in rsync protocol data stream (co de 12) at /SourceCache/rsync/rsync-14/rsync/io.c(342)
Any ideas how to resolve this? I'm stumped, I am going to run all the 10.3.9 server security patches. There is 200 gigs of space available on the XRAID RAID 5. Nothing appears to be wrong with the drives in the raid admin.. But the files on the raid are half the size of the files on the servers so they are failing halfway through the copying... Thank you!!
I tried increasing the timeout time, still seeing errors. The machines backup at different times. Do you think it could be a problem with the version of rsync packaged with os 10.3.9? I also ran latest security updates and rebooted everything including the raid..
Actually, rsync is not all that reliable to make backups in a single pass. Often if you run rsync a second time right after the first time, you may find that it goes beyond the point where it first failed. Try this and see if it makes any difference.
If this works, you can use scripts like this:
rsync options source destination if [ "$?" -ne "0" ] then echo "error detected during rsync, trying again" rsync options source destination fi