Dave,
Thanks much.  Up and running & logging successfully with rsync in daemon
mode.

One general question - what's the benefit of using rsh/ssh as transport
versus using rsync in daemon mode?

Also , I've received a error similar to the following multiple times --
what might this be indicative of?
   Invalid file index -324461374 (count=32262)

Thanks again.
Peter





Dave Dykstra <[EMAIL PROTECTED]> on 06/15/2001 09:42:50 AM

To:   [EMAIL PROTECTED]
cc:   [EMAIL PROTECTED]

Subject:  Re: Multiple questions (rsync hangs, logging config, etc.)

On Thu, Jun 14, 2001 at 05:26:29PM -0400, [EMAIL PROTECTED] wrote:
>
> I'm new to rsync and I'm trying to use rsync-2.4.6 to sync web content
> between 2 AIX (4.3.3.0) boxes (from SERVERA to SERVERB).
>
> I've gone through the man pages for rsync and rsyncd.conf, searched the
web
> site and browsed several months worth of the mailing list, but I still
> can't figure out which end is up.
>
> I've had rsync working successfully on a small scale replicate some test
> directories (100+ files in 10 directories).
>
> Now that I'm trying to run rsync to replicate 32000+ at once, I'm having
> several problems.
>
> I initiate rsync with the following script from SERVERA:
>    ==> cat /opt/rysnc/sync.sh
>    /opt/rsync/rsync --rsh=/usr/bin/rsh --rsync-path=/opt/rsync/rsync
>    --delete --timeout=0 --progress --verbose
>    --exclude-from=/opt/rsync/exclude.dat --delete-excluded --recursive
>    --links --hard-links --perms --owner --group --times /www/www.xyz.com/
>    SERVERB:/www/www.xyz.com
>    ==>


If you use a single colon for "SERVERB:", you are using the default rsh
mode and not the daemon mode.  Can you rsh as root from SERVERA to
SERVERB?  To talk to the daemon, you use "SERVERB::".  If you can use rsh,
I think it would probably be better to do that and just forget about the
daemon.



> My /opt/rsync/exclude.dat file is as follows:
>    ==>cat exclude.dat
>    - /logs/
>    - /logs/*
>    ==>
>
> 1)  Running rsync as root, rsync appears to hang, as follows.
>    ==>./sync.sh
>    building file list ... done
>    ^C
>    ==>
>
> Sometimes the rsync ends with an error message (but I haven't found any
> reference to all of the various error codes and what they mean. Can
someone
> point me in the right direction?)

There are known problems with verbose mode causing hanging in rsync 2.4.6;
try it without to see if that helps.  I'm not familiar with AIX; perhaps
there's an additional problem with rsync on that operating system.  Rsync
does tend to drive TCP very hard and has revealed bugs in several vendors'
implementations.



> 2) How do I configure logging correctly?
>
> I initiate rsync as a daemon on SERVERB as follows:
>    ==> /opt/rsync/rsync --daemon
>
> I have the rsyncd.conf on SERVERB as follows:
>    ==>cat /etc/rsyncd.conf
>    # /etc/rsyncd.conf
>    log file = /var/adm/rsync.log
>    use chroot = no
>    max connections = 1
>    pid file = /etc/rsync.pid
>    transfer logging = true
>    [www]
>            path = /www
>            comment = WWW Content
>            strict modes = true
>    root@SERVERB:/
>    ==>

If you do intend to write to the rsync daemon, you will at least need to
add
    uid = root
    gid = root
    read only = no



> My /etc/syslog.conf contains the following line:
>    daemon.debug,info,notice              /var/adm/rsync.log


When you set "log file" in rsyncd.conf, syslog is completely bypassed so
there's no need to put a line in syslog.conf.


> The only thing that appears in this log is:
>    ==>tail -f /var/adm/rsync.log
>    2001/06/14 14:49:57 [30764] rsyncd version 2.4.6 starting
>    2001/06/14 16:08:44 [29374] rsyncd version 2.4.6 starting

There's nothing else because you're not connecting to the daemon.


> 3) Wouldn't a search engine for the mailing list archives be a valuable
> addition?   Especilly for newbies like myself?

I've wished for that too (and I'm no rsync newbie :-)).

- Dave Dykstra






Reply via email to