[Csync2] Csync2 newbie alert

Samba saasira at gmail.com
Tue Jun 12 15:28:37 CEST 2012


CSync2 daemon must be running on both the the servers, preferably as
(x)inetd daemon; csync2 daemon does not identify itself as a master or
slave, it just runs. What qualifies a particular setup a master or slave is
the csync2*.cfg files which specify on a per "group" basis whether that
particular node should have as a master or a slave for that group of files
like :

group default {

host master.server.name;
host (slave.server.name);
include xyz;
exclude abc;
auto left;#since we want master to overwrite changes on slaves in case of a
conflict, change this to other auto-setting if needed.

}

In addition to the above, csync2 requires that a (scheduled via cron or
similar) trigger ( csync2 -x ) instruct the csync2 daemon (on the presumed
master side) to identify the changed files out of those configured to be
replicated and then sync those with the peer (slave) servers. In case of
master-master setup, the cron trigger should be present on all peers
whereas in case of master-slave setup the cron trigger need to be present
only on master server.

I hope this helps,

Regards,
Samba


On Thu, Jun 7, 2012 at 11:00 PM, Gary E. Miller <gem at rellim.com> wrote:

> Yo All!
>
> Newbie here.  I have a number of data moving tasks now being handled
> by rsync and rsnapshot, but those solutions are not able to scale to
> my problems.  Thus I am giving csync2 a shot.
>
> I am runnning version 1.34 with two gentoo patches.  Not sure what the
> patches do.  If anything I ask has been previously discussed here,
> or elsewhere, then feel free to just point me to that.
>
> Currently I am running a master with geographically dispersed slaves.
> The slaves are runnning in daemon mode.  The master is run from a
> simple shell script:
>        while true; do csync2 -x; sleep 5m; done
>
> I checked the doc, but I can see no description of what the master would
> do if I run it in daemon mode.  Does it just look at the hint table?
> Does it loop continuously?  Can I buy a clue?
>
> Sometimes the net connection to the remote hiccups, and csync2 seems
> to exit with a write error.  Is there a retry mechanism, or do I just
> need to keep re-running csync2?
>
> I created the csync databases on master and slave this way:
>        csync2 -cIr /
>
> Then jumped in to the above update loop.  I am worried that some of
> the files were not in sync before beginning, or may have been corrupted.
> Is there a way to have csync2 do a scrubbing?  Like the way an ECC
> RAM controller slowly reads all RAM in the background to be sure all
> the bits are working.  I could see csync2 randomly testing X number of
> files to be sure the master and slave checksums match.
>
> Otherwise I may have to run an rsync every once in a while, but then I
> am back to my problems with rsync being a bit flakey over the internet.
>
> A doc typo at the start of the last paragraph of 3.4.5:
>
>    Usually the action is only triggered on the targed hosts,
>
> I assume targed should be targeted.
>
> And anything else a newbie should know about csync2?
>
> TIA.
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
>        gem at rellim.com  Tel:+1(541)382-8588
>
> _______________________________________________
> 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/20120612/cd7a104a/attachment.htm>


More information about the Csync2 mailing list