Re: [PATCH] allow to disable SLP with runtime option

2009-04-28 Thread Wayne Davison
On Tue, Apr 28, 2009 at 10:00:21AM +0200, Petr Uzel wrote:
> I wanted to see changes you've made, but I can't figure out how to
> 'git clone' the patches repository.

Samba doesn't allow cloning of the patches repo at this time, but it's
something I hope to get fixed before too long.  To view patches, go to
the download page and look for the "patches" section.

 http://rsync.samba.org/download.html

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


rsync fails with "Permission denied" errors on random files over NFS

2009-04-28 Thread Thomas Damgaard
Hi

I use rsync for daily backups from a mailserver.

Every day the mailserver pushes backup to the backupserver.
Cron runs the command:
rsync -q -zrlpt --specials --chmod=Du+rwx \
--rsh 'ssh -F /root/ssh/config -i /root/ssh/private.key -o
UserKnownHostsFile=/root/ssh/known_hosts'  \
--files-from=/root/include \
--exclude-from=/root/exclude \
--link-dest=../previous \
/ backupu...@backupserver:backup/current

The rsync command is run as the root user on the mailserver.

/root/include contains the line:
/data

/root/exclude is empty at this moment.


The problem is that almost every day, I get an e-mail from cron saying
that rsync has failed.
It gives errors like these:
rsync: readlink
"/data/mail/virtual/xx-net.dk/martin/cur/1240839853.V11I228039M884633.mail:2,RS"
failed: Permission denied (13)
rsync: readlink
"/data/mail/virtual/xx-net.dk/martin/cur/1240830282.V11I228031M150189.mail:2,S"
failed: Permission denied (13)
rsync: readlink
"/data/mail/virtual/xx-net.dk/martin/cur/1240830490.V11I228036M432719.mail:2,S"
failed: Permission denied (13)

I have checked that the files are ineed readable on the mailserver.
Here is ls -l from one of them:
-rw--- 1 mail mail 560383 2009-04-27 13:08
/data/mail/virtual/xx-net.dk/martin/cur/1240830490.V11I228036M432719.mail:2,S


The files that gives the error is appearently changing randomly. One
day there can be one or two files with an error. Other times several
hundred.
I have seen it give errors on files in mail boxes that is currently
unused, so it cannot be because the file is currently used by some
other application (e.g. the imap server).

I noticed that it is readlink that gives the error. I'm not sure why
readlink is used in this case. This is a regular file and not a
symlink.


I hope you have some suggestions on how to debug this further.


Details on the servers's file systems:

Server backupserver:
/data is mounted like this:
nfs:/data/nfs/nfs0/data/xx/backup on /data type nfs
(rw,timeo=60,intr,rsize=16384,wsize=16384,addr=78.xx.xx.xx)


Server mailserver:
/data is mounted like this:
nfs:/data/nfs/nfs0/data/xx/mail on /data type nfs
(rw,timeo=60,intr,rsize=16384,wsize=16384,addr=78.xx.xx.xx)


Med venlig hilsen/Kind regards
Thomas Damgaard Nielsen
http://thomasdamgaard.dk
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: [PATCH] allow to disable SLP with runtime option

2009-04-28 Thread Petr Uzel
On Mon, Apr 27, 2009 at 08:47:40AM -0700, Wayne Davison wrote:
> On Wed, Apr 22, 2009 at 04:14:23PM +0200, Petr Uzel wrote:
> > It adds a new global boolean option, 'disable slp', which can be used
> > to disable SLP advertisements at runtime.
> 
> I've taken your patch and changed the boolean into a "use slp" global
> daemon parameter (default: enabled).  I also made sure that if slp is
> disabled, that there is no slp timeout processing (or services could get
> enabled at the first timeout).  The updated slp patch is now in git.
> 
> Thanks!

Hi Wayne,
thanks for accepting the patch.

I wanted to see changes you've made, but I can't figure out how to
'git clone' the patches repository. And on gitweb, I don't see any
changes.

Could you please help me?


Thanks in advance,


-- 
Best regards / s pozdravem

Petr Uzel, Packages maintainer
-
SUSE LINUX, s.r.o.  e-mail: pu...@suse.cz
Lihovarská 1060/12  tel: +420 284 028 964
190 00 Prague 9 fax: +420 284 028 951
Czech Republic  http://www.suse.cz
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html