[Csync2] Question about Csync2 usage

Lars Ellenberg lars.ellenberg at linbit.com
Thu Nov 10 16:01:16 CET 2011


On Thu, Nov 10, 2011 at 12:01:58PM +0100, Joschi Brauchle wrote:
> Hello,
> 
> well, yes, I do have a master-master setup. I did not post my full
> config file here because it contains a lot of include lines, but in
> essence it is very simple:
> ------
> group ha_group
> {
>         host pollux;
>         host castor;
> 	
> 	key ......;
> 
> 	include ....;
> 	...
> }
> ------
> 
> I do have the mentioned behavior quite often actually. It gets
> annoying, because I am using a logout-script to check that both
> hosts are in sync. Then, although I use 'csync2 -x', they are not
> getting synched correctly.
> 
> The package installed is:
> ------
> Information for package csync2:
> 
> Repository: SLE11-HAE-SP1-Pool
> Name: csync2
> Version: 1.34-0.2.39
> Arch: x86_64
> Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
> Support Level: unknown
> Installed: Yes
> Status: up-to-date
> ------
> So there seem to be no updates...

Well, no packaged-by-suse updates, anyways.
But I doubt that 2.0 (still not released) will change behaviour here.

> As I said, this happens mostly if files are created/deleted on one
> host and which have not been synched before (and not explicitly
> mentioned in the cfg file). I will try to narrow down the problem
> and report in more detail whenever I get some time to debug the
> issue.

> >    and 'csync -T' shows on node pollux:
> >    ---
> >    R pollux castor /etc/cron.d/dmeventd.rpmsave
> >    ---
> >
> >    but 'csync -xvvv' does not seem to sync the changes on node pollux,

csync2 is push only. Always was.

You need to push changes from the node where they happen to the other(s).
csync -T may show you that there is some change pending
on the remote side. But csync2 does not pull.

> >    the mentioned file is not listed in its output anywhere. If I log
> >    into castor and do a 'csync2 -x' there, thing get back in sync.

That is a consequence of the push-only design.


-- 
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com


More information about the Csync2 mailing list