rsync creates file twice

Matt McCutchen matt at mattmccutchen.net
Fri May 29 00:45:04 GMT 2009


On Fri, 2009-05-15 at 06:28 +0200, Heinrich Götzger wrote:
> I'm using rsnapshot 1.3.1 on a Synology Diskstation ds 107+.
> # uname -a
> Linux ds107 2.6.15 #832 Sat Mar 7 00:44:45 CST 2009 armv5tejl GNU/Linux
> 
> rsnpahot uses rsync, on my box there is:
> 
> # rsync --version
> rsync  version 3.0.6  protocol version 30
> Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
> Web site: http://rsync.samba.org/
> Capabilities:
>     64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
>     socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
>     append, no ACLs, xattrs, iconv, no symtimes
> 
> 
> My problem is that it looks like that rsync would create some file twice
> under circumstances which I don't know. This happens only for 2 files
> out of thousands, but it should not happen at all, I think.
> 
> On the source directory, there is:
> # cd /usr/include/fltk-1.1/FL/
> /usr/include/fltk-1.1/FL # ls -l Fl_Po*
> -rw-r--r-- 2 root root 2251 Aug 23  2007 Fl_Positioner.H
> lrwxrwxrwx 2 root root   15 Aug 23  2007 Fl_Positioner.h -> Fl_Positioner.H
> /usr/include/fltk-1.1/FL # ls -l Fl_Im*
> -rw-r--r-- 2 root root 3584 Aug 23  2007 Fl_Image.H
> lrwxrwxrwx 2 root root   10 Aug 23  2007 Fl_Image.h -> Fl_Image.H
> 
> After running rsync opn the ds107+ with:
> /opt/bin/rsync -ax --delete --numeric-ids --relative \
> --rsh="/opt/bin/ssh -i /root/.ssh/rsnapshot_dsa" \
> root at boo:/usr/include/fltk-1.1/ /volume1/tmp/rsync_1
> 
> I get on the ds 107+:
> # cd /volume1/tmp/rsync_1/usr/include/fltk-1.1/Fl/
> /volume1/tmp/rsync_1/usr/include/fltk-1.1/Fl # ll Fl_Po*
> -rw-r--r-- 1 root root 2251 Aug 23  2007 Fl_Positioner.H
> -rw-r--r-- 1 root root 2251 Aug 23  2007 Fl_Positioner.H
> lrwxrwxrwx 1 root root   15 May 15 03:52 Fl_Positioner.h -> Fl_Positioner.H
> /volume1/tmp/rsync_1/usr/include/fltk-1.1/Fl # ll Fl_Im*
> -rw-r--r-- 1 root root 3584 Aug 23  2007 Fl_Image.H
> -rw-r--r-- 1 root root 3584 Aug 23  2007 Fl_Image.H
> lrwxrwxrwx 1 root root   10 May 15 03:52 Fl_Image.h -> Fl_Image.H
> 
> 
> So, there are the files Fl_Positioner.H and Fl_Image.H twice, which
> makes my wonder how this can happen at all.

Yes, there must be a bug in the ds107+ filesystem in order for this to
happen.  It's possible that there is also something wrong with rsync; to
investigate that, we would need to see strace output for the rsync run
that results in the duplicate files.

> I've started rsync with some debug options:
> /opt/bin/rsync -axvvvv --delete --numeric-ids --relative \
> --rsh="/opt/bin/ssh -i /root/.ssh/rsnapshot_dsa"  \
> root at boo:/usr/include/fltk-1.1/ /volume1/tmp/rsync_4 >> /tmp/rsync_log
> 
> The rsync_log is attached to this mail.

I didn't see anything out of the ordinary in that log.

-- 
Matt



More information about the rsync mailing list