<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
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:<br>
<br>
On server A : run <tt>"csync2 -x ; csync2 -TT"</tt> every 10 minutes<br>
<br>
On server B : run "<tt>csync2 -cr / ; csync2 -T</tt>" 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.<br>
<br>
First, I supposed that "<tt>csync2 -TT</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:<br>
<br>
<blockquote>
  <pre id="line1">From: root (Cron Daemon)
To: root

--- lagavulin:/var/lib/dhcp3/dhcpd.leases
+++ oban:/var/lib/dhcp3/dhcpd.leases</pre>
</blockquote>
<br>
How it that possible?<br>
<br>
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 "<tt>csync2 -x</tt>" and "<tt>csync2 -TT</tt>"? Does "<tt>-TT</tt>"
check the csync2 databases on both sides before comparing files? And is
"-TT" a CPU consuming command?<br>
<br>
 Regards<br>
<pre class="moz-signature" cols="72">-- 
Farzad FARID <a class="moz-txt-link-rfc2396E" href="mailto:ffarid@pragmatic-source.com">&lt;ffarid@pragmatic-source.com&gt;</a>
Architecte Open Source / Pragmatic Source
<a class="moz-txt-link-freetext" href="http://www.pragmatic-source.com/">http://www.pragmatic-source.com/</a></pre>
</body>
</html>