<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:\65B0\7D30\660E\9AD4;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:\65B0\7D30\660E\9AD4;
panose-1:2 2 3 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@\65B0\7D30\660E\9AD4";
panose-1:2 2 3 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=ZH-TW link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>Hi, <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I am new to Linux cluster, I have a
question for 2 nodes cluster.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>I want to make cluster with jakarta tomcat,
the node will failover to each other if error detected (e.g. gateway failed to
ping)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>However, in my current setting, once the
node (A) is encountered error, it will failover to another (B). Then if B
encounter failed, it can't fail back to A. <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Can anyone help me to let the resource
failover around once it encountered error? <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Do I have to do something to make a failed
node to be ready to use again? If it is, can anyone tell me how?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Below is my configure:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>[root@nmc01-a ~]# crm configure show<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>node nmc01-a<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>node nmc01-b<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>primitive ClusterIP ocf:heartbeat:IPaddr2 \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
params ip="10.214.65.5" cidr_netmask="24" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op monitor interval="30s"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>primitive Tomcat ocf:heartbeat:tomcat \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
operations $id="Tomcat-operations" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op monitor interval="30" timeout="30" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op start interval="0" timeout="70" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op stop interval="0" timeout="120" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
params catalina_home="/opt/apache-tomcat-6.0.26"
java_home="/usr/java/jdk1.6.0_21" tomcat_user="nmc" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
meta target-role="Started"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>primitive pingd ocf:pacemaker:pingd \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
params host_list="10.214.65.254" multiplier="100" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op monitor interval="60s" timeout="50s"
on_fail="restart" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op start interval="0" timeout="90" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op stop interval="0" timeout="100"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>group nmc_web ClusterIP Tomcat<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>clone pingdclone pingd \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
meta globally-unique="false"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>location nmc_web_connected_node nmc_web \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
rule $id="nmc_web_connected_node-rule" -inf: pingd lte 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>property
$id="cib-bootstrap-options" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
cluster-infrastructure="openais" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> expected-quorum-votes="2"
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
stonith-enabled="false" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
no-quorum-policy="ignore" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
last-lrm-refresh="1283167810"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>rsc_defaults $id="rsc-options" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
resource-stickiness="100"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>By the way, from pingd example in
clusterlab.org.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>What does "not_defined pingd"
mean in below rule setting?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>crm(pingd)configure# location
my_web_cluster_on_connected_node my_web_cluster \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> rule -inf: not_defined pingd or pingd
lte 0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>When I included "not_defined
pingd" in my cluster confgiure, if one of the node hasn't started up. The
pingd in that node won't be started and caused <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>my other resources (Virtual IP and tomcat)
couldn't start up.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thank you.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Alister<o:p></o:p></span></p>
</div>
<BR><BR>__________ Information from ESET NOD32 Antivirus, version of virus signature database 5412 (20100831) __________<BR><BR>The message was checked by ESET NOD32 Antivirus.<BR><BR><A HREF="http://www.eset.com">http://www.eset.com</A><BR> </body>
</html>