<div dir="ltr">Hey Guys,<div><br></div><div>The OS am running is CentOS 6.4 (64bit) and I have disabled IPtables and SeLinux. </div><div><br></div><div>My goal is to make Apache Tomcat as HA. As a first step thought of testing with Apache. </div>

<div><br></div><div>My network setup is like this,</div><div>Node1 is connected to switch</div><div>Note2 is connected to switch.</div><div><br></div><div>My cluster.conf file is as follows,</div><div><div>[root@test01 ~]# cat /etc/cluster/cluster.conf</div>

<div>&lt;?xml version=&quot;1.0&quot;?&gt;</div><div>&lt;cluster config_version=&quot;1&quot; name=&quot;mycluster1&quot;&gt;</div><div>  &lt;logging debug=&quot;off&quot;/&gt;</div><div>  &lt;clusternodes&gt;</div><div>
    &lt;clusternode name=&quot;test01&quot; nodeid=&quot;1&quot;&gt;</div>
<div>      &lt;fence&gt;</div><div>        &lt;method name=&quot;pcmk-redirect&quot;&gt;</div><div>          &lt;device name=&quot;pcmk&quot; port=&quot;test01&quot;/&gt;</div><div>        &lt;/method&gt;</div><div>      &lt;/fence&gt;</div>

<div>    &lt;/clusternode&gt;</div><div>    &lt;clusternode name=&quot;test02&quot; nodeid=&quot;2&quot;&gt;</div><div>      &lt;fence&gt;</div><div>        &lt;method name=&quot;pcmk-redirect&quot;&gt;</div><div>          &lt;device name=&quot;pcmk&quot; port=&quot;test02&quot;/&gt;</div>

<div>        &lt;/method&gt;</div><div>      &lt;/fence&gt;</div><div>    &lt;/clusternode&gt;</div><div>  &lt;/clusternodes&gt;</div><div>  &lt;fencedevices&gt;</div><div>    &lt;fencedevice name=&quot;pcmk&quot; agent=&quot;fence_pcmk&quot;/&gt;</div>

<div>  &lt;/fencedevices&gt;</div><div>&lt;/cluster&gt;</div></div><div><br></div><div><br></div><div>And @some point of time am able to see both nodes are registered,</div><div><div>[root@test01 ~]# cman_tool nodes</div>

<div>Node  Sts   Inc   Joined               Name</div><div>   1   M    104   2013-09-17 02:01:11  test01</div><div>   2   M    108   2013-09-17 02:15:07  test02</div><div><br></div><div>And @sometimes with crm_mon -1, I get the following</div>

<div><br></div><div>[root@test01 ~]# crm_mon -1<br></div><div>Last updated: Tue Sep 17 02:47:27 2013</div><div>Last change: Tue Sep 17 00:42:43 2013 via crmd on test01</div><div>Stack: cman</div><div>Current DC: NONE</div>

<div>4 Nodes configured, 2 expected votes</div><div>0 Resources configured.</div><div><br></div><div><br></div><div>Node test01: UNCLEAN (offline)</div><div>Node <a href="http://test01.iopextech.com">test01.iopextech.com</a>: UNCLEAN (offline)</div>

<div>Node test02: UNCLEAN (offline)</div><div>Node <a href="http://test02.iopextech.com">test02.iopextech.com</a>: UNCLEAN (offline)</div><div><br></div></div><div>Thanks.</div><div><br></div><div><br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Mon, Sep 16, 2013 at 8:40 PM, Florian Crouzat <span dir="ltr">&lt;<a href="mailto:gentoo@floriancrouzat.net" target="_blank">gentoo@floriancrouzat.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Le 16/09/2013 14:18, Gopalakrishnan N a écrit :<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do I need to have a cross over cable between each node? Is it mandatory?<br>
</blockquote>
<br></div>
Nop it doesn&#39;t.<br>
In your case, I&#39;d check the network architecture and/or firewalling regarding multicast. You probably either have wrong iptables and/or a switch dropping your multicast corosync ring(s).<br>
<br>
Also, please, as Andreas said: try to communicate with us in a more efficient way: more context, more informations and more output (pasted somewhere).<br>
<br>
We are happy to help people, but we don&#39;t have to waste our time trying to understand what these exact people doesn&#39;t tell us because they are lazy.<br>
<br>
ps: also use &#39;corosync-objctl&#39; ; it&#39;s a good command to debug rings and configurations.<br>
<br>
Cheers,<br>
Florian.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
On Mon, Sep 16, 2013 at 8:01 PM, Gopalakrishnan N<br></div><div class="im">
&lt;<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a> &lt;mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>&gt;&gt; wrote:<br>


<br>
    Again the when i restarted the pacemaker and cman not the nodes are<br>
    not in online, back to square 1.<br>
<br>
    node1 shows only node1 online, and node2 says node2 online. I don&#39;t<br>
    know what&#39;s happening in the background...<br>
<br>
    Any advice would be appreciated..<br>
<br>
    Thanks.<br>
<br>
<br>
    On Mon, Sep 16, 2013 at 6:47 PM, Gopalakrishnan N<br></div>
    &lt;<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a> &lt;mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>&gt;&gt;<div class="im">

<br>
    wrote:<br>
<br>
        Hi guys,<br>
<br>
        I got it, basically it tool some time to propogate and now two<br>
        nodes are showing online...<br>
<br>
        Thanks.<br>
<br>
<br>
        On Mon, Sep 16, 2013 at 6:39 PM, Gopalakrishnan N<br>
        &lt;<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a><br></div><div class="im">
        &lt;mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>&gt;&gt; wrote:<br>
<br>
            I have configured CMAN as per the link<br>
            <a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html-single/Clusters_from_Scratch/index.html#_configuring_cman" target="_blank">http://clusterlabs.org/doc/en-<u></u>US/Pacemaker/1.1-plugin/html-<u></u>single/Clusters_from_Scratch/<u></u>index.html#_configuring_cman</a> but<br>


            when I type cman_tools nodes only one node is online even<br>
            thought the cluster.conf is propogated in other node as well.<br>
<br>
            what could be the reason, in node1, cman_tool nodes shows<br>
            only node1 online, in node2 it shows only node2 is online.<br>
            How to make two nodes as online, even thought CMAN service<br>
            is running in both nodes.<br>
<br>
            Thanks in advance.<br>
<br>
            Regards,<br>
            Gopal<br>
<br>
<br>
<br>
<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Cheers,<br>
Florian Crouzat<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</font></span></blockquote></div><br></div>