No subject


Sat Oct 2 08:10:42 CEST 2010


[root at glddb-master sbin]# csync2 -xvv
My hostname is glddb-master.
Database-File: /var/lib/csync2/glddb-master.db
Config-File:   /etc/csync2.cfg
Running recursive check for / ...
SQL: SELECT filename from file where filename = '/' or 1 ORDER BY filename
SQL Query finished.
Checking /* ..
Don't check at all: /var
Don't check at all: /usr
Don't check at all: /tmp
Don't check at all: /tftpboot
Don't check at all: /sys
Don't check at all: /srv
Don't check at all: /selinux
Don't check at all: /sbin
Don't check at all: /root
Don't check at all: /proc
Don't check at all: /opt
Don't check at all: /net
Don't check at all: /mnt
Don't check at all: /misc
Don't check at all: /media
Don't check at all: /lost+found
Don't check at all: /lib
Checking /home/* ..
Checking /home/www/* ..
Don't check at all: /home/www/ehp.wr
Don't check at all: /home/mysql
Don't check at all: /etc
Don't check at all: /dev
Don't check at all: /chroot
Don't check at all: /boot
Don't check at all: /bin
Don't check at all: /.autorelabel
Don't check at all: /.autofsck
SQL: SELECT peername FROM dirty GROUP BY peername ORDER BY random()
SQL Query finished.
SQL: SELECT filename, myname, force FROM dirty WHERE peername = 
'glddb-slave1' ORDER by filename ASC
SQL Query finished.
Connecting to host glddb-slave1 (SSL) ...
ERROR: Config request SSL but this csync2 is built without SSL support.
ERROR: Connection to remote host failed.
Host stays in dirty state. Try again later...
SQL: SELECT command, logfile FROM action GROUP BY command, logfile
SQL Query finished.
Finished with 2 errors.
----------------------------------------
I know that slave1 is compiled with SSL:
[root at glddb-slave1 sbin]# ldd csync2
        linux-gate.so.1 =>  (0x00a5e000)
        libgnutls-openssl.so.26 => /usr/lib/libgnutls-openssl.so.26 
(0x00e35000)
        libsqlite.so.0 => /usr/lib/libsqlite.so.0 (0x009f0000)
        libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00183000)
        libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x036f0000)
        libdl.so.2 => /lib/libdl.so.2 (0x0030a000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x009c2000)
        libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00110000)
        libc.so.6 => /lib/libc.so.6 (0x0030f000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00120000)
        /lib/ld-linux.so.2 (0x00166000)

Not sure what I'm missing.
----------------
Thank you,
Chris




From:
Fabricio Cannini <fcannini at gmail.com>
To:
csync2 at lists.linbit.com
Date:
10/05/2010 12:50 PM
Subject:
Re: [Csync2] Errors when running csync2
Sent by:
csync2-bounces at lists.linbit.com



On Tuesday 05 October 2010 14:53:47 you wrote:
 
> Also, you should use the same key and ssl cert on both hosts.
> ( Took me quite a while to figure this one out )
> 
> [ ]'s

> Okay, so each host shouldn't generate its own ssl cert?
> --------------
> Thanks,

i'm using csync2 1.34 in a HPC cluster, and that's how i made it to work;
Copying the key and ssl cert generated on the head node to all nodes.
After that, it went fine.

[ ]'s
_______________________________________________
Csync2 mailing list
Csync2 at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/csync2



--=_alternative 006A748D872577B3_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Just a little bit of insight as to how
my setup &quot;should&quot; go. </font>
<br>
<br><font size=2 face="sans-serif">I have a primary webserver that should
feed content to four public webservers. &nbsp;</font>
<br>
<br><font size=2 face="sans-serif">My contents of my /etc: &nbsp;(this
is the same on both my master and my slave servers).</font>
<br><font size=2 face="sans-serif">[@glddb-slave1 etc]# lsl csync2*</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 root root 710 Oct &nbsp;5
&nbsp;2010 csync2.cfg</font>
<br><font size=2 face="sans-serif">-rw------- 1 root root &nbsp;65 Oct
&nbsp;5 &nbsp;2010 csync2.key_ehp</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 root root 774 Oct &nbsp;5
&nbsp;2010 csync2_ssl_cert.pem</font>
<br><font size=2 face="sans-serif">-rw-r--r-- 1 root root 887 Oct &nbsp;5
&nbsp;2010 csync2_ssl_key.pem</font>
<br>
<br><font size=2 face="sans-serif">Here is my configuration file:</font>
<br><font size=2 face="sans-serif">------------------------------</font>
<br><font size=2 face="sans-serif"># Csync2 Example Configuration File</font>
<br><font size=2 face="sans-serif"># ---------------------------------</font>
<br><font size=2 face="sans-serif">#</font>
<br><font size=2 face="sans-serif"># Please read the documentation:</font>
<br><font size=2 face="sans-serif"># </font><a href=http://oss.linbit.com/csync2/paper.pdf><font size=2 face="sans-serif">http://oss.linbit.com/csync2/paper.pdf</font></a>
<br>
<br><font size=2 face="sans-serif">group mygroup</font>
<br><font size=2 face="sans-serif">&nbsp;{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;host
glddb-master (glddb-slave1);</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;key
/etc/csync2.key_ehp;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include
/home/www/vhosts/ehp.wr;</font>
<br><font size=2 face="sans-serif">&nbsp;}</font>
<br><font size=2 face="sans-serif">--------------------------</font>
<br><font size=2 face="sans-serif">I figure just for simplicity I'll remove
any other complexities until I can at least get communication to work.</font>
<br>
<br><font size=2 face="sans-serif">I run csync2 -iivvv and I get this:</font>
<br><font size=2 face="sans-serif">----------------------------</font>
<br><font size=2 face="sans-serif">[glddb-slave1 csync2]# csync2 -iivvv</font>
<br><font size=2 face="sans-serif">Csync2 daemon running. Waiting for connections.</font>
<br><font size=2 face="sans-serif">&lt;11462&gt; New connection from 192.168.1.132:43675.</font>
<br><font size=2 face="sans-serif">Peer&gt; </font>
<br>
<br><font size=2 face="sans-serif">From the master server I type:</font>
<br><font size=2 face="sans-serif">[root at glddb-master sbin]#<b> csync2
-xvv</b></font>
<br><font size=2 face="sans-serif">My hostname is glddb-master.</font>
<br><font size=2 face="sans-serif">Database-File: /var/lib/csync2/glddb-master.db</font>
<br><font size=2 face="sans-serif">Config-File: &nbsp; /etc/csync2.cfg</font>
<br><font size=2 face="sans-serif">Running recursive check for / ...</font>
<br><font size=2 face="sans-serif">SQL: SELECT filename from file where
filename = '/' or 1 ORDER BY filename</font>
<br><font size=2 face="sans-serif">SQL Query finished.</font>
<br><font size=2 face="sans-serif">Checking /* ..</font>
<br><font size=2 face="sans-serif">Don't check at all: /var</font>
<br><font size=2 face="sans-serif">Don't check at all: /usr</font>
<br><font size=2 face="sans-serif">Don't check at all: /tmp</font>
<br><font size=2 face="sans-serif">Don't check at all: /tftpboot</font>
<br><font size=2 face="sans-serif">Don't check at all: /sys</font>
<br><font size=2 face="sans-serif">Don't check at all: /srv</font>
<br><font size=2 face="sans-serif">Don't check at all: /selinux</font>
<br><font size=2 face="sans-serif">Don't check at all: /sbin</font>
<br><font size=2 face="sans-serif">Don't check at all: /root</font>
<br><font size=2 face="sans-serif">Don't check at all: /proc</font>
<br><font size=2 face="sans-serif">Don't check at all: /opt</font>
<br><font size=2 face="sans-serif">Don't check at all: /net</font>
<br><font size=2 face="sans-serif">Don't check at all: /mnt</font>
<br><font size=2 face="sans-serif">Don't check at all: /misc</font>
<br><font size=2 face="sans-serif">Don't check at all: /media</font>
<br><font size=2 face="sans-serif">Don't check at all: /lost+found</font>
<br><font size=2 face="sans-serif">Don't check at all: /lib</font>
<br><font size=2 face="sans-serif">Checking /home/* ..</font>
<br><font size=2 face="sans-serif">Checking /home/www/* ..</font>
<br><font size=2 face="sans-serif">Don't check at all: /home/www/ehp.wr</font>
<br><font size=2 face="sans-serif">Don't check at all: /home/mysql</font>
<br><font size=2 face="sans-serif">Don't check at all: /etc</font>
<br><font size=2 face="sans-serif">Don't check at all: /dev</font>
<br><font size=2 face="sans-serif">Don't check at all: /chroot</font>
<br><font size=2 face="sans-serif">Don't check at all: /boot</font>
<br><font size=2 face="sans-serif">Don't check at all: /bin</font>
<br><font size=2 face="sans-serif">Don't check at all: /.autorelabel</font>
<br><font size=2 face="sans-serif">Don't check at all: /.autofsck</font>
<br><font size=2 face="sans-serif">SQL: SELECT peername FROM dirty GROUP
BY peername ORDER BY random()</font>
<br><font size=2 face="sans-serif">SQL Query finished.</font>
<br><font size=2 face="sans-serif">SQL: SELECT filename, myname, force
FROM dirty WHERE peername = 'glddb-slave1' ORDER by filename ASC</font>
<br><font size=2 face="sans-serif">SQL Query finished.</font>
<br><font size=2 face="sans-serif">Connecting to host glddb-slave1 (SSL)
...</font>
<br><font size=2 face="sans-serif"><b>ERROR: Config request SSL but this
csync2 is built without SSL support.</b></font>
<br><font size=2 face="sans-serif">ERROR: Connection to remote host failed.</font>
<br><font size=2 face="sans-serif">Host stays in dirty state. Try again
later...</font>
<br><font size=2 face="sans-serif">SQL: SELECT command, logfile FROM action
GROUP BY command, logfile</font>
<br><font size=2 face="sans-serif">SQL Query finished.</font>
<br><font size=2 face="sans-serif">Finished with 2 errors.</font>
<br><font size=2 face="sans-serif">----------------------------------------</font>
<br><font size=2 face="sans-serif">I know that slave1 is compiled with
SSL:</font>
<br><font size=2 face="sans-serif">[root at glddb-slave1 sbin]# ldd csync2</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; linux-gate.so.1
=&gt; &nbsp;(0x00a5e000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libgnutls-openssl.so.26
=&gt; /usr/lib/libgnutls-openssl.so.26 (0x00e35000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libsqlite.so.0
=&gt; /usr/lib/libsqlite.so.0 (0x009f0000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libgnutls.so.26
=&gt; /usr/lib/libgnutls.so.26 (0x00183000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libgcrypt.so.11
=&gt; /usr/lib/libgcrypt.so.11 (0x036f0000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libdl.so.2
=&gt; /lib/libdl.so.2 (0x0030a000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libgpg-error.so.0
=&gt; /usr/lib/libgpg-error.so.0 (0x009c2000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libtasn1.so.3
=&gt; /usr/lib/libtasn1.so.3 (0x00110000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libc.so.6
=&gt; /lib/libc.so.6 (0x0030f000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; libz.so.1
=&gt; /usr/lib/libz.so.1 (0x00120000)</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; /lib/ld-linux.so.2
(0x00166000)</font>
<br>
<br><font size=2 face="sans-serif">Not sure what I'm missing.</font>
<br><font size=2 face="sans-serif">----------------<br>
Thank you,<br>
Chris<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Fabricio Cannini &lt;fcannini at gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">csync2 at lists.linbit.com</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">10/05/2010 12:50 PM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [Csync2] Errors when running csync2</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">csync2-bounces at lists.linbit.com</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Tuesday 05 October 2010 14:53:47 you wrote:<br>
 <br>
&gt; Also, you should use the same key and ssl cert on both hosts.<br>
&gt; ( Took me quite a while to figure this one out )<br>
&gt; <br>
&gt; [ ]'s<br>
<br>
&gt; Okay, so each host shouldn't generate its own ssl cert?<br>
&gt; --------------<br>
&gt; Thanks,<br>
<br>
i'm using csync2 1.34 in a HPC cluster, and that's how i made it to work;<br>
Copying the key and ssl cert generated on the head node to all nodes.<br>
After that, it went fine.<br>
<br>
[ ]'s<br>
_______________________________________________<br>
Csync2 mailing list<br>
Csync2 at lists.linbit.com<br>
</font></tt><a href=http://lists.linbit.com/mailman/listinfo/csync2><tt><font size=2>http://lists.linbit.com/mailman/listinfo/csync2</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>
--=_alternative 006A748D872577B3_=--


More information about the Csync2 mailing list