<div dir="ltr">I think I have to use pcs instead of crmsh. Please correct me if am wrong, I see this pdf document�<a href="http://clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>�hope this is the correct one. Please direct me whether I can follow the document.�<div>

<br></div><div>thanks.�</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 6:22 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">While verifying I got this error, crm_verify -L -V<div><div>�error: unpack_resources: � � Resource start-up disabled since no STONITH resources have been defined</div>

<div>� �error: unpack_resources: � � Either configure some or disable STONITH with the stonith-enabled option</div>
<div>� �error: unpack_resources: � � NOTE: Clusters with shared data need STONITH to ensure data integrity</div></div><div><br></div><div>Looks like stonith has to be configured. Also to do that I don't have CRM application.�</div>


<div><br></div><div>I think I have to install from here "<span style="font-size:15px;white-space:pre-wrap;background-color:rgb(238,238,238);font-family:Consolas">wget -P /etc/yum.repos.d/ <a href="http://download.opensuse.org/repositories/network:/ha-clustering/CentOS_CentOS-6/network:ha-clustering.repo" target="_blank">http://download.opensuse.org/repositories/network:/ha-clustering/CentOS_CentOS-6/network:ha-clustering.repo</a>" and then </span><span style="font-size:15px;white-space:pre-wrap;background-color:rgb(238,238,238);font-family:Consolas">#yum install crmsh.x86_64</span></div>


<div><span style="font-size:15px;white-space:pre-wrap;background-color:rgb(238,238,238);font-family:Consolas"><br></span></div>But it didn't worked for me. I stuck in here with this stonith.�<br><div>
<br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 5:29 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">But now pacemaker not able to connect with cib, connection refused,<div><div><div>[root@test01 ~]# crm_mon -1</div>


</div><div>Could not establish cib_ro connection: Connection refused (111)</div><div><br></div><div>Connection to cluster failed: Transport endpoint is not connected</div>
</div><div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 5:26 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Now am able to see both nodes are registered...�<div><br></div><div><div><div>Node �Sts � Inc � Joined � � � � � � � Name</div>



</div><div>� �1 � M � �124 � 2013-09-17 22:05:31 �<a href="http://test01.iopextech.com" target="_blank">test01.iopextech.com</a></div>
<div>� �2 � M � �132 � 2013-09-17 22:31:33 �<a href="http://test02.iopextech.com" target="_blank">test02.iopextech.com</a></div></div><div><br></div><div>Is there any timeout option, where i can increase or decrease based on this?</div>



<div>
<br></div><div>Thanks..�</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 17, 2013 at 4:53 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Even after giving FQDN in my /etc/hosts and /etc/sysconf/network also updated in cluster.conf, propogated to other node as well, but still its showing only one node. And muticast also enabled in my switch.�<div>





<br></div><div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 16, 2013 at 11:52 PM, Gopalakrishnan N <span dir="ltr"><<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My /etc/hosts is like this,<div><div>cat /etc/hosts</div><div>127.0.0.1 � localhost localhost.localdomain localhost4 localhost4.localdomain4</div>





<div>::1 � � � � localhost localhost.localdomain localhost6 localhost6.localdomain6</div>
<div>10.30.2.98 �<a href="http://test01.iopextech.com" target="_blank">test01.iopextech.com</a> test01</div><div>10.30.2.99 �<a href="http://test02.iopextech.com" target="_blank">test02.iopextech.com</a> test02</div><div>





<br></div></div><div><br></div><div>
and in my cluster.conf i have given the short name. So what you are saying better to use FQDN...!</div><div><br></div><div>I will try to give FQDN in all my configuration files.�</div><div><br></div><div>And will try. Let's see.�</div>






<div><br></div><div>Thanks for your comments.�</div><div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 16, 2013 at 11:41 PM, Florian Crouzat <span dir="ltr"><<a href="mailto:gentoo@floriancrouzat.net" target="_blank">gentoo@floriancrouzat.net</a>></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 17:30, Gopalakrishnan N a �crit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hey Guys,<br>
<br>
The OS am running is CentOS 6.4 (64bit) and I have disabled IPtables and<br>
SeLinux.<br>
<br>
My goal is to make Apache Tomcat as HA. As a first step thought of<br>
testing with Apache.<br>
<br>
My network setup is like this,<br>
Node1 is connected to switch<br>
Note2 is connected to switch.<br>
<br>
My cluster.conf file is as follows,<br>
[root@test01 ~]# cat /etc/cluster/cluster.conf<br>
<?xml version="1.0"?><br>
<cluster config_version="1" name="mycluster1"><br>
� �<logging debug="off"/><br>
� �<clusternodes><br>
� � �<clusternode name="test01" nodeid="1"><br>
� � � �<fence><br>
� � � � �<method name="pcmk-redirect"><br>
� � � � � �<device name="pcmk" port="test01"/><br>
� � � � �</method><br>
� � � �</fence><br>
� � �</clusternode><br>
� � �<clusternode name="test02" nodeid="2"><br>
� � � �<fence><br>
� � � � �<method name="pcmk-redirect"><br>
� � � � � �<device name="pcmk" port="test02"/><br>
� � � � �</method><br>
� � � �</fence><br>
� � �</clusternode><br>
� �</clusternodes><br>
� �<fencedevices><br>
� � �<fencedevice name="pcmk" agent="fence_pcmk"/><br>
� �</fencedevices><br>
</cluster><br>
<br>
<br>
And @some point of time am able to see both nodes are registered,<br>
[root@test01 ~]# cman_tool nodes<br>
Node �Sts � Inc � Joined � � � � � � � Name<br>
� � 1 � M � �104 � 2013-09-17 02:01:11 �test01<br>
� � 2 � M � �108 � 2013-09-17 02:15:07 �test02<br>
<br>
And @sometimes with crm_mon -1, I get the following<br>
<br>
[root@test01 ~]# crm_mon -1<br>
Last updated: Tue Sep 17 02:47:27 2013<br>
Last change: Tue Sep 17 00:42:43 2013 via crmd on test01<br>
Stack: cman<br>
Current DC: NONE<br>
4 Nodes configured, 2 expected votes<br>
0 Resources configured.<br>
<br>
<br>
Node test01: UNCLEAN (offline)<br></div></div>
Node <a href="http://test01.iopextech.com" target="_blank">test01.iopextech.com</a> <<a href="http://test01.iopextech.com" target="_blank">http://test01.iopextech.com</a>>: UNCLEAN (offline)<br>
Node test02: UNCLEAN (offline)<br>
Node <a href="http://test02.iopextech.com" target="_blank">test02.iopextech.com</a> <<a href="http://test02.iopextech.com" target="_blank">http://test02.iopextech.com</a>>: UNCLEAN (offline)<br>
<br>
Thanks.<br>
<br>
</blockquote>
<br>
Ok, if you are still unhappy with CMAN check your switch for multicast.<br>
<br>
>From there, I assume you are happy with cman otherwise there are no reasons to start pacemaker, but you did, so you get my point ;)<br>
<br>
This kind of errors often indicates that your /etc/hosts or DNS is wrong and pacemaker has a hard time to map hostnames and IPs, etc (not sure about the internals there...)<br>
Get rid of the invalid nodes by editing the configuration; stop pacemaker; fix your resolutions and retry.<br>
<br>
In the entire process, I usually use FQDN in my cluster.conf file, and I add them and the corresponding ring IP in my /etc/hosts file on all nodes. I also use the same FQDN in my pacemaker configuration.<br>
<br>
Cheers<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
<br>
<br>
On Mon, Sep 16, 2013 at 8:40 PM, Florian Crouzat<br></div><div>
<<a href="mailto:gentoo@floriancrouzat.net" target="_blank">gentoo@floriancrouzat.net</a> <mailto:<a href="mailto:gentoo@floriancrouzat.net" target="_blank">gentoo@floriancrouzat.<u></u>net</a>>> wrote:<br>
<br>
� � Le 16/09/2013 14:18, Gopalakrishnan N a �crit :<br>
<br>
� � � � Do I need to have a cross over cable between each node? Is it<br>
� � � � mandatory?<br>
<br>
<br>
� � Nop it doesn't.<br>
� � In your case, I'd check the network architecture and/or firewalling<br>
� � regarding multicast. You probably either have wrong iptables and/or<br>
� � a switch dropping your multicast corosync ring(s).<br>
<br>
� � Also, please, as Andreas said: try to communicate with us in a more<br>
� � efficient way: more context, more informations and more output<br>
� � (pasted somewhere).<br>
<br>
� � We are happy to help people, but we don't have to waste our time<br>
� � trying to understand what these exact people doesn't tell us because<br>
� � they are lazy.<br>
<br>
� � ps: also use 'corosync-objctl' ; it's a good command to debug rings<br>
� � and configurations.<br>
<br>
� � Cheers,<br>
� � Florian.<br>
<br>
<br>
<br>
� � � � On Mon, Sep 16, 2013 at 8:01 PM, Gopalakrishnan N<br>
� � � � <<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a><br>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>><br></div>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@" target="_blank">gopalakrishnan.an@</a>__<a href="http://gmail.com" target="_blank">gm<u></u>ail.com</a><div><br>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>>>> wrote:<br>
<br>
� � � � � � �Again the when i restarted the pacemaker and cman not the<br>
� � � � nodes are<br>
� � � � � � �not in online, back to square 1.<br>
<br>
� � � � � � �node1 shows only node1 online, and node2 says node2 online.<br>
� � � � I don't<br>
� � � � � � �know what'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>
� � � � � � �<<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a><br>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>><br></div>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@" target="_blank">gopalakrishnan.an@</a>__<a href="http://gmail.com" target="_blank">gm<u></u>ail.com</a><div><br>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>>>><br>
<br>
� � � � � � �wrote:<br>
<br>
� � � � � � � � �Hi guys,<br>
<br>
� � � � � � � � �I got it, basically it tool some time to propogate and<br>
� � � � 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>
� � � � � � � � �<<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@gmail.com</a><br>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>><br></div>
� � � � � � � � �<mailto:<a href="mailto:gopalakrishnan.an@" target="_blank">gopalakrishnan.an@</a>__<a href="http://gmail.com" target="_blank">gm<u></u>ail.com</a><div><br>
� � � � <mailto:<a href="mailto:gopalakrishnan.an@gmail.com" target="_blank">gopalakrishnan.an@<u></u>gmail.com</a>>>> wrote:<br>
<br>
� � � � � � � � � � �I have configured CMAN as per the link<br></div>
� � � � <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/<u></u>html-__single/Clusters_from_<u></u>Scratch/__index.html#_<u></u>configuring_cman</a><div>






<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/<u></u>en-US/Pacemaker/1.1-plugin/<u></u>html-single/Clusters_from_<u></u>Scratch/index.html#_<u></u>configuring_cman</a>><br>







� � � � but<br>
� � � � � � � � � � �when I type cman_tools nodes only one node is<br>
� � � � online even<br>
� � � � � � � � � � �thought the cluster.conf is propogated in other<br>
� � � � node as well.<br>
<br>
� � � � � � � � � � �what could be the reason, in node1, cman_tool nodes<br>
� � � � shows<br>
� � � � � � � � � � �only node1 online, in node2 it shows only node2 is<br>
� � � � online.<br>
� � � � � � � � � � �How to make two nodes as online, even thought CMAN<br>
� � � � 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>
� � � � <mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>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><div><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:<br></div>
� � � � <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><div><br>
� � � � <<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>
<br>
<br>
� � --<br>
� � Cheers,<br>
� � Florian Crouzat<br>
<br></div>
� � ______________________________<u></u>___________________<br>
� � Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
� � <mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>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><div><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:<br></div>
� � <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><div><br>
� � <<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>
<br>
<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>
<br>
</div></blockquote><div><div>
<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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>