[Csync2] Running "csync2 -x ;
csync2 -TT" sometimes shows empty diffs
Farzad FARID
ffarid at pragmatic-source.com
Thu Jul 13 10:34:39 CEST 2006
Hi,
I run csync2 on 2 servers to synchronize data, including a DHCP lease
file. The lease file is only actively modified on server A, while server
B is the failover node. I run the following cron tasks:
On server A : run "csync2 -x ; csync2 -TT" every 10 minutes
On server B : run "csync2 -cr / ; csync2 -T" every 15 minutes, with a 5
minutes lag with server A so that the crons do not run at the same time
on the 2 servers.
First, I supposed that "csync2 -TT" should never display anything
because I just pushed all the changes form A to B with the "-x" option.
But, from time to time, the cron on server A displays an empty diff:
From: root (Cron Daemon)
To: root
--- lagavulin:/var/lib/dhcp3/dhcpd.leases
+++ oban:/var/lib/dhcp3/dhcpd.leases
How it that possible?
Moreover, sometimes the cron even displays differences between the 2
lease files. Is it possible that a write to the lease file happened just
between "csync2 -x" and "csync2 -TT"? Does "-TT" check the csync2
databases on both sides before comparing files? And is "-TT" a CPU
consuming command?
Regards
--
Farzad FARID <ffarid at pragmatic-source.com>
Architecte Open Source / Pragmatic Source
http://www.pragmatic-source.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linbit.com/pipermail/csync2/attachments/20060713/1dc1d9ff/attachment.htm
More information about the Csync2
mailing list