[Csync2] Csync2 newbie alert
Gary E. Miller
gem at rellim.com
Tue Jun 12 21:43:13 CEST 2012
Yo Samba!
On Tue, 12 Jun 2012 18:58:37 +0530
Samba <saasira at gmail.com> wrote:
> CSync2 daemon must be running on both the the servers,
Well, if that were true I would not be getting the good results I
am getting now.
> preferably as (x)inetd daemon;
Why do you say that? I'll be updating remote files constantly so I'll
just run it as a daemon. Less load on my HDs which are always
pushed hard.
> 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 :
Yes, that part is clear from the dock.
> 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.
Interesting, so 'csync2 -x' must either behave differently if the dameon
is running, or run in parallel with the daemon. I' run some tests.
> I hope this helps,
Yes. It would be nice if some of that was in the pdf doc.
But there were more questions in my email.
> > 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?
Will the daemon retry? Or wait for the next 'csync -x'?
> > 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.
Any hope on this one?
BTW, I also noted that there is no option for csync2 to also set the
'ctime' on the slave, like rsync can.
> > 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.
So am I really stuck with keeping rsync around?
> > 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.
Fixed in the doc now?
> > And anything else a newbie should know about csync2?
Any other tricks?
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
gem at rellim.com Tel:+1(541)382-8588
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/csync2/attachments/20120612/93d850dd/attachment.pgp>
More information about the Csync2
mailing list