[Csync2] Question about Csync2 usage
Joschi Brauchle
joschi.brauchle at tum.de
Thu Nov 10 12:01:58 CET 2011
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...
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.
Best regards,
Joschi Brauchle
On 11/10/2011 11:53 AM, Samba wrote:
>
> 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
> <mailto: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 <tel:%2B49%2089%20289-23474>
> Fax (work): +49 89 289-23490 <tel:%2B49%2089%20289-23490>
> E-mail: joschi.brauchle at tum.de <mailto:joschi.brauchle at tum.de>
> Web: http://www.lnt.ei.tum.de/
>
>
> _______________________________________________
> Csync2 mailing list
> Csync2 at lists.linbit.com <mailto:Csync2 at lists.linbit.com>
> http://lists.linbit.com/mailman/listinfo/csync2
>
>
--
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5996 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20111110/ceec818d/attachment.bin>
More information about the Csync2
mailing list