Mark Osborne
2006-Oct-03 20:02 UTC
large files not being synced properly while being uploaded to samba share
Hello, I have run into an issue with rsync that I?m hoping someone can help with. We are using rsync to mirror data between a samba share on an internal staging server and our production ftp servers. The rsync runs from cron every 15 minutes. Occasionally, the rsync will run while somebody is uploading a large file to the samba share (for instance an iso image). The file appears to make it out to the production ftp servers, and an ls shows it to have the correct file size and timestamp. However, an md5sum of the file shows that it is different from the file on the staging server. Subsequent runs of the rsync do not update the file. I have tried to run the rsync manually with the ?c flag even though we wouldn?t really want to implement that because of how long it makes rysnc take. Even with checksum turned on, the file still did not get correctly updated. If the file is completely uploaded to the share before the rsync runs there does not appear to be an issue. Originally I thought that there may be a problem with different versions of rsync on the servers. The staging server was running rsync 2.5.5 while the production servers were running 2.5.7. I have gotten rsync 2.6.8 on both servers and am still experiencing the problem. More information about the servers Staging server ? Solaris 8, rsync 2.6.8 Ftp1 ? Redhat AS 2.1, rsync 2.6.8 Ftp2 ? Redhat AS 2.1, rsync 2.6.8 Has anybody else seen this problem or have any ideas? Thanks, Mark ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ Mark Osborne Web Systems Engineer mark.osborne@ni.com (512) 683-5019 ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ -------------- next part -------------- 3j?Zr??? ???y??v?????
Mike Daws
2006-Oct-06 08:32 UTC
large files not being synced properly while being uploaded to samba share
I've experienced cases like that. I've been able to repair the file with an rsync -I, although this doesn't address the cause of the problem. On Tue, 2006-10-03 at 14:42 -0500, Mark Osborne wrote:> > Hello, > > I have run into an issue with rsync that I?m hoping someone can help > with. We are using rsync to mirror data between a samba share on an > internal staging server and our production ftp servers. The rsync > runs from cron every 15 minutes. Occasionally, the rsync will run > while somebody is uploading a large file to the samba share (for > instance an iso image). The file appears to make it out to the > production ftp servers, and an ls shows it to have the correct file > size and timestamp. However, an md5sum of the file shows that it is > different from the file on the staging server. Subsequent runs of the > rsync do not update the file. I have tried to run the rsync manually > with the ?c flag even though we wouldn?t really want to implement that > because of how long it makes rysnc take. Even with checksum turned > on, the file still did not get correctly updated. If the file is > completely uploaded to the share before the rsync runs there does not > appear to be an issue. > > Originally I thought that there may be a problem with different > versions of rsync on the servers. The staging server was running > rsync 2.5.5 while the production servers were running 2.5.7. I have > gotten rsync 2.6.8 on both servers and am still experiencing the > problem. > > More information about the servers > > Staging server ? Solaris 8, rsync 2.6.8 > Ftp1 ? Redhat AS 2.1, rsync 2.6.8 > Ftp2 ? Redhat AS 2.1, rsync 2.6.8 > > Has anybody else seen this problem or have any ideas? > > Thanks, > Mark > > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > Mark Osborne > Web Systems Engineer > mark.osborne@ni.com > (512) 683-5019 > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > -- > To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Seemingly Similar Threads
- files not being updated even with -c after being uploaded to a samba share
- way to make files not show up until completely transferred?
- rsync not updating files even with checksum flag
- TINC and OpenVPN tunnel performance on a Windows client
- ftp.freebsd.org out of date? (WRT security advisories)