It depends on the way you mentioned your hosts in the configuration file:
Master-Slave:
nossl * *;
group web
{
host master;
host (slave1);
host (slave2);
key /etc/csync2/csync2.key;
include /home/sites;
exclude *~ .*;
auto none;
}
Master-Master
nossl * *;
group web
{
host master1;
host master2;
host master3;
key /etc/csync2/csync2.key;
include /home/sites;
exclude *~ .*;
auto none;
}
Note that the host entries for slave servers are enclosed in brackets and
masters are not.
In order to have a two or multi-way sync, you need to configure a
master-master setup.
Regards,
Samba
-------------------------------------------------------------------------------------------------------------------------------------------------------------
On Thu, Nov 10, 2011 at 3:01 PM, Joschi Brauchle <joschi.brauchle at tum.de>wrote:
> Hello everyone,
>
> I have a question about csync2 usage:
>
> I have the following in my csync2.cfg:
> ---
> include /etc/cron.*/;
> ---
>
> 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, 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. I do notice this
> behaviour quite frequently, mostly with files that are created/deleted on
> one side.
>
> But is this really the way this is supposed to work? Shouldn't I be able
> to sync changes from both hosts in both ways?
>
> Any help is appreciated!
> --
> Dipl.-Ing. Joschi Brauchle, M.Sc.
>
> Institute for Communications Engineering (LNT)
> Technische Universitaet Muenchen (TUM)
> 80290 Munich, Germany
>
> Tel (work): +49 89 289-23474
> Fax (work): +49 89 289-23490
> E-mail: joschi.brauchle at tum.de
> Web: http://www.lnt.ei.tum.de/
>
>
> _______________________________________________
> Csync2 mailing list
> Csync2 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20111110/24edabf2/attachment.htm>