[Csync2] -T shows files with "L", but -u doesn't transfer tehm

Dustin Mitchell dustin at mozilla.com
Thu May 24 22:33:22 CEST 2012


I have a directory, certdir, on three hosts.  It's synchronized between two (old) hosts.  The third host was just added, and its directory started out with only a few files, added on that host (releng-puppet1.srv.releng.scl3.mozilla.com.*, specifically).

Apologies for the similar hostnames.  The two existing hosts are relabs-puppet.build.mtv1.mozilla.com and releng-puppet1.build.scl1.mozilla.com.  The new host is releng-puppet1.srv.releng.scl3.mozilla.com.

The files on the new host synchronized correctly to the old hosts.  However, the files on the old hosts haven't gotten to the new host.  csync2 -T says the files should be copied:


root at relabs-puppet /var/lib/puppet/ssl-master # /usr/sbin/csync2 -T -G puppetagain-certdir
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/3ac39de2.0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/3ac39de2.r0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/c79ec726.0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/c79ec726.r0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/cb0d7bd9.0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/cb0d7bd9.r0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/f6f02805.0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/f6f02805.r0
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/puppetagain-base-ca.crl
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/puppetagain-base-ca.crt
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/relabs-puppet.build.mtv1.mozilla.com.crl
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/relabs-puppet.build.mtv1.mozilla.com.crt
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/relabs-puptest1.build.mtv1.mozilla.com.crl
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/relabs-puptest1.build.mtv1.mozilla.com.crt
L       relabs-puppet.build.mtv1.mozilla.com    releng-puppet1.srv.releng.scl3.mozilla.com      /var/lib/puppet/ssl-master/certdir/releng-puppet1.build.scl1.mozilla.com.crt


but csync2 -u doesn't do anything about it:


root at relabs-puppet /var/lib/puppet/ssl-master # /usr/sbin/csync2 -uvvv -G puppetagain-certdir
Config-File:   /etc/csync2.cfg

My hostname is relabs-puppet.build.mtv1.mozilla.com.

Database-File: sqlite3:///var/lib/csync2/relabs-puppet.build.mtv1.mozilla.com.db3

Opening shared library libsqlite3.so

Reading symbols from shared library libsqlite3.so

SQL: SELECT count(*) from file

SQL Query finished.

SQL: SELECT peername FROM dirty GROUP BY peername

SQL Query finished.

SQL: SELECT command, logfile FROM action GROUP BY command, logfile

SQL Query finished.

Finished with 0 errors.


What's wrong here?  I'd very much like new nodes to come up and "just work", rather than having to muck around manually, so if there's some step I've missed to adding a new node, please let me know.  My understanding is that -I is never necessary and only useful for large directories, which this is not.

Dustin


More information about the Csync2 mailing list