<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, all,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US> I
encounter a problem to let my resource failover when active node is failed to
ping default gateway. Below is my configuration:<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> 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>
meta migration-threshold="1" failure-timeout="90"<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" migration-threshold="1"
failure-timeout="90"<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="default_gw" multiplier="100" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op monitor interval="60s" timeout="50s" \<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" migration-threshold="1"
failure-timeout="90"<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>colocation tomcat-with-ip inf: Tomcat
ClusterIP<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>order tomcat-after-ip inf: ClusterIP Tomcat<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="1283328391"<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> When
I test my configure, I changed the default_gw from my hosts table to invalid
IP. However, my resource didn’t failover. I checked
/var/log/cluster/corosync.log and it showed the default_gw is unreachable.<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> Can
anyone tell what’s wrong with my configuration?<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>
</body>
</html>