[Csync2] csync2 cannot reach each other using second NIC

Art -kwaak- van Breemen ard+csync2 at telegraafnet.nl
Wed Sep 5 17:25:01 CEST 2012


On Wed, Sep 05, 2012 at 04:55:08PM +0200, Art -kwaak- van Breemen wrote:
> To describe it better:
> it's:
> 	host nodename(@address);
> Where you use the @address if nodename itself does not resolv to
> the right ip address.
> address can be an ip address, or a resolvable hostname.

One note however: unless it is fixed, in the database as peer
adres the full name + (@address) will be used to indicate the
peer instead of just the nodename. So if you decide to add the
@address, or change it, make sure your dirty tables are empty.
Else: clean out your dirty tables, and recheck databases with -T.

The option for -T is like this:

csync2 -v -T $THISHOST $DESTHOST -UI
will check the database of $THISHOST, which must be `uname -n`
against $DESTHOST, and will add any missing or changed entries as
dirty.
This is a very good way to run in a new server in your cluster.
After that run the csync2 -vu to push updates to the peers.

The -T option is weird though. I use this:
csync2 -TT
to have a unified diff between local changes and remote to see
what's different before pushing the changes to peers.
You can also test a specific host by using the:
`uname -n` $DESTHOST
pair.


More information about the Csync2 mailing list