<div dir="ltr">Hi.<div><br></div><div>I put in:</div><div><br></div><div><div>&nbsp;&nbsp;host foo@foo-priv;</div><div>&nbsp;&nbsp;host (bar@bar-priv);</div><div><br></div><div>All 4 hostnames are in /etc/hosts on both hosts and the &quot;-priv&quot; are obviously the private network IPs. &nbsp;Made sure all config files were in sync, deleted the csync2 database (it was just test junk anyway), and it finally sort of worked.</div>
<div><br></div><div>My test worked, but real data still fails after a while.</div><div><br></div><div>Directory &quot;1001&quot; has&nbsp;4,794,446 files and directories (many of them are hardlinks to the same data ... dirvish archive). &nbsp;This leaves me with a database size of&nbsp;6,033,509,376 bytes (wow!).</div>
<div><br></div><div>The slave host has some data that was copied over the public network, before csync2 blew up. &nbsp;Now that I have it running over the private network, here&#39;s what I get:</div><div><br></div><div><div>[22:31:04] Updating /mnt/dirvish02-data/1001/1002/2006-12-31/tree/Documents-and-Settings/Body contouring BP March 31st.ppt.bwt on bar-priv ...</div>
<div>[22:31:09] File is already up to date on peer.</div><div>[22:31:09] Updating /mnt/dirvish02-data/1001/1002/2006-12-31/tree/Documents-and-Settings/Dr. Doctors Photo Galleries on bar-priv ...</div><div>[22:31:09] File is already up to date on peer.</div>
<div>[22:31:09] Updating /mnt/dirvish02-data/1001/1002/2006-12-31/tree/Documents-and-Settings/Dr. Doctors Photo Galleries/2005 NPR Weight Loss Support Group.ppt.bwt on bar-priv ...</div><div>[22:31:12] File is already up to date on peer.</div>
<div>[22:31:14] Updating /mnt/dirvish02-data/1001/1002/2006-12-31/tree/Documents-and-Settings/Dr. Doctors Photo Galleries/Body contouring 2 - oct 19-2004.ppt.bwt on bar-priv ...</div><div>[22:33:33] While syncing file /mnt/dirvish02-data/1001/1002/2006-12-31/tree/Documents-and-Settings/Dr. Doctors Photo Galleries/Body contouring 2 - oct 19-2004.ppt.bwt:</div>
<div>[22:33:33] ERROR from peer bar-priv: Connection closed.</div><div>[22:33:33] File stays in dirty state. Try again later...</div><div>[22:33:35] ERROR from peer bar-priv: Connection closed.</div><div>[22:33:35] Finished with 2 errors.</div>
<div>TIMESTAMP: 2008-09-08 22:33:35 EDT (GMT-0400)</div><div>TOTALTIME: 2:21:32</div><div><br></div><div>real &nbsp; &nbsp;141m31.822s</div><div>user &nbsp; &nbsp;15m47.471s</div><div>sys &nbsp; &nbsp; 4m3.219s</div><div>root@foo:/etc/csync2# ls -l &#39;/mnt/dirvish02-data/1001/1002/2006-12-31/tree/Documents-and-Settings/Dr. Doctors Photo Galleries/Body contouring 2 - oct 19-2004.ppt.bwt&#39;</div>
<div>-rw-r--r-- 1 1002 1001 388650873 2006-12-13 23:05 /mnt/dirvish02-data/1001/1002/2006-12-31/tree/Documents-and-Settings/Dr. Doctors Photo Galleries/Body contouring 2 - oct 19-2004.ppt.bwt</div></div></div><div><br>If I re-run this, it fails again, but takes even longer.</div>
<div><br></div><div>Is anyone using csync2 to keep larger files (388M really isn&#39;t that big) in sync? &nbsp;Also, is there an option to as csync2 to retry a connection a few times before giving up? &nbsp;The startup cost is huge, so that would really help a lot. &nbsp;(to put in perspective, of the 141 minute run time, less than 3 minutes elapsed after the source-side scan completed and the transfer actually started, and it failed on this first non-sync&#39;d file).</div>
<div><br></div><div>RAM is not an issue, I don&#39;t think ... both hosts have &gt;2GB free, dual core AMD64, Ubuntu Hardy.</div><div><br></div><div>Thanks,</div><div>Sam</div><div><br></div><div><br><div class="gmail_quote">
On Mon, Sep 8, 2008 at 3:09 AM, Lars Ellenberg <span dir="ltr">&lt;<a href="mailto:lars.ellenberg@linbit.com">lars.ellenberg@linbit.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On Mon, Sep 08, 2008 at 01:02:24AM -0600, Sam Howard wrote:<br>
&gt; Hi.<br>
&gt; The PDF docs talks about being able to use an alternate/private network, but<br>
&gt; the example doesn&#39;t make sense to me ...<br>
&gt;<br>
&gt; I have host &quot;foo&quot; in the /etc/hosts with its external IP, and &#39;foo-priv&quot; in<br>
&gt; the /etc/hosts with it&#39;s private IP.<br>
&gt;<br>
&gt; I&#39;ve tried config entries like:<br>
&gt;<br>
&gt; &nbsp; foo@foo-priv<br>
&gt; &nbsp; foo-priv@foo (getting desperate)<br>
&gt; &nbsp; foo@foo-eth0 (not in hosts file, but who knows)<br>
&gt; &nbsp; <a href="mailto:foo@1.2.3.4">foo@1.2.3.4</a> (private ip)<br>
&gt;<br>
&gt; I can&#39;t seem to get any combination of entries to work. &nbsp;What does the<br>
&gt; actual configuration need to look like?<br>
<br>
</div>node bar.<br>
node foo.<br>
bar connects to foo, saying &quot;hello, I&#39;m bar&quot;.<br>
foo does a forward lookup of &quot;bar&quot;,<br>
 &nbsp; &nbsp;gets back an ip address,<br>
 &nbsp; &nbsp;tries to match that ip address with the one the connection comes from.<br>
if they don&#39;t match (the connection comes from a different IP than<br>
the result of a forward lookup of &quot;bar&quot; on foo), connection is refused.<br>
<br>
the hostname in csync2.cfg has two aspects:<br>
first, the hostname is compared to the local hostname,<br>
to identify whether or not this host is part of a certain group.<br>
second, the hostname is resolved to an ip address to connect to.<br>
usually both aspects can be matched in the same name.<br>
sometimes you need to say<br>
<br>
&nbsp;&lt;baz&gt;@&lt;baz address&gt;<br>
<br>
where &lt;baz&gt; is the hostname for the node baz to identify itself,<br>
and &lt;baz address&gt; is the address baz can be reached at from other nodes.<br>
<br>
so if your node is named foo, there has to be foo@.<br>
if bar can reach foo under foo-addr, then it has to be @foo-addr.<br>
still, on foo, it needs to be able to forward lookup (resolve)<br>
&quot;bar&quot; to the remote end of the incoming tcp connection.<br>
if all else fails, you can still add a &quot;bar&#39;s.incoming.ip.addr bar&quot; to<br>
/etc/hosts.<br>
<br>
don&#39;t forget to &quot;csync2 -R&quot; to clean up left-overs from previous<br>
trial runs.<br>
<br>
did that help, or did it confuse you further?<br>
<div class="Ih2E3d"><br>
&gt; Also, is there a way to use a different database name for each group?<br>
<br>
</div>you can have different databases for different _configs_.<br>
(-C switch)<br>
<div class="Ih2E3d"><br>
&gt; My<br>
&gt; test server has over 12M files (many are hard links -- it&#39;s a dirvish<br>
&gt; archive) ... this ends me up with a 12GB database file ... needless to say,<br>
&gt; it takes over 2 hours just to do a sync check, and I haven&#39;t even added the<br>
&gt; other filesystems yet!<br>
<br>
</div>--<br>
: Lars Ellenberg<br>
: LINBIT HA-Solutions GmbH<br>
: DRBD&reg;/HA support and consulting &nbsp; &nbsp;<a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br>
<br>
DRBD&reg; and LINBIT&reg; are registered trademarks<br>
of LINBIT Information Technologies GmbH<br>
_______________________________________________<br>
Csync2 mailing list<br>
<a href="mailto:Csync2@lists.linbit.com">Csync2@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/csync2" target="_blank">http://lists.linbit.com/mailman/listinfo/csync2</a><br>
</blockquote></div><br></div></div>