rsync to a Samba/CIFS filessytem hangs

Robert Gasch rgasch at gmail.com
Fri Jul 15 05:13:01 GMT 2005


Hi Paul, 

thanks for your reply. Pease see below for more info ...

On 7/14/05, Paul Slootman <paul at debian.org> wrote:
> On Thu 14 Jul 2005, Robert Gasch wrote:
> >
> > I'm using rsync to backup a Linux Mandrake 10.1 (kernel 2.6.10) ext3
> > filesystem (+- 5GB of content, lots of little files) to a CIFS
> > filesystem mounted with samba 3.0.10. The exact invocation of rsync
> > is:
> 
> The CIFS filesystem is mounted on the linux system? Then samba doesn't
> really enter the picture. On what system is the CIFS filesystem located?
> Could you show the output of 'mount'?

[root at www root]# mount
/dev/hda1 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
/dev/hda9 on /home type ext3 (rw)
...
//sv4bdosbs1/linuxbck$ on /mnt/backup type cifs (rw,mand)

The CIFS file system is located on a Windows 2003 Server machine and
mounted on the server using Samba 3.0.10.

> The output from strace and lsof would be helpful.
> However, my impression is that the CIFS filesystem is deadlocking
> somewhere...

[root at www root]# lsof -p 16327
COMMAND   PID USER   FD   TYPE     DEVICE    SIZE    NODE NAME
rsync   16327 root  cwd    DIR       0,14       0   64419 /mnt/backup/backup_www
rsync   16327 root  rtd    DIR        3,1    4096       2 /
rsync   16327 root  txt    REG        3,8  558667 3482979 /usr/local/bin/rsync
rsync   16327 root  mem    REG        3,1   35648   44022
/lib/libnss_files-2.3.3.so
rsync   16327 root  mem    REG        3,6  178476  411662
/usr/share/locale/ISO-8859-1/LC_CTYPE
rsync   16327 root  mem    REG        3,1 1165108   44042 /lib/tls/libc-2.3.3.so
rsync   16327 root  mem    REG        3,1   60804   44034
/lib/libresolv-2.3.3.so
rsync   16327 root  mem    REG        3,1  529609   43989 /lib/ld-2.3.3.so
rsync   16327 root    0u  unix 0xe16fb680         8778239 socket
rsync   16327 root    2u   CHR      136,2               4 /dev/pts/2
rsync   16327 root    4u  unix 0xe16fb380         8778248 socket

[root at www root]# strace -p 16327
Process 16327 attached - interrupt to quit
select(1, [0], [], NULL, {27, 137000})  = 0 (Timeout)
select(1, [0], [], NULL, {60, 0})       = 0 (Timeout)
select(1, [0], [], NULL, {60, 0})       = 0 (Timeout)
select(1, [0], [], NULL, {60, 0})       = 0 (Timeout)
select(1, [0], [], NULL, {60, 0})       = 0 (Timeout)
select(1, [0], [], NULL, {60, 0})       = 0 (Timeout)
select(1, [0], [], NULL, {60, 0})       = 0 (Timeout)
select(1, [0], [], NULL, {60, 0} <unfinished ...>
Process 16327 detached

I'm not sure what to make of this output, but it indeed looks like
it's waiting for something which never happens. Any other pointers
would be much appreciated.

Greetings/Thanks
Robert


More information about the rsync mailing list