<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=gb2312">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@ËÎÌå";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
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;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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-CN link=blue vlink=purple style='text-justify-trim:punctuation'>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US>H<span style='color:#1F497D'>i</span>,<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 have a cluster 3 nodes (CentOS 5.2) using
pacemaker<span style='color:#1F497D'>-</span>1.0.11<span style='color:#1F497D'>(also
1.0.12),</span> with heartbeat<span style='color:#1F497D'>-</span>3.0.3.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>You can see the 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>#crm configure show:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>node
$id="85e0ca02-7aa4-45c8-9911-4035e1e6ee15" node-2<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>node
$id="a046bd1e-6267-49e5-902d-c87b6ed1dcb9" node-0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>node
$id="d0f0b2ab-f243-4f78-b541-314fa7d6b346" node-1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>primitive failover-ip ocf:heartbeat:IPaddr2
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
params ip="10.10.5.83" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op monitor interval="5s"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>primitive master-app-rsc lsb:cluster-master
\<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op monitor interval="5s"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>primitive node-app-rsc lsb:cluster-node \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
op monitor interval="5s"<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>group group-dc failover-ip master-app-rsc<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>clone clone-node-app-rsc node-app-rsc<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>location rule-group-dc group-dc \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
rule $id="rule-group-dc-rule" -inf: #is_dc eq false<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>
start-failure-is-fatal="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>
symmetric-cluster="true" \<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>
dc-version="1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87" \<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
cluster-infrastructure="Heartbeat"<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>#crm_mon -n -1:<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>Last updated: Sat Oct 29 08:44:14 2011<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Stack: Heartbeat<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Current DC: node-0
(a046bd1e-6267-49e5-902d-c87b6ed1dcb9) - partition with quorum<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Version:
1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>3 Nodes configured, unknown expected votes<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>2 Resources configured.<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><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Node node-0
(a046bd1e-6267-49e5-902d-c87b6ed1dcb9): online<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
master-app-rsc (lsb:cluster-master) Started<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
failover-ip (ocf::heartbeat:IPaddr2) Started<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
node-app-rsc:0 (lsb:cluster-node) Started<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Node node-1
(d0f0b2ab-f243-4f78-b541-314fa7d6b346): online<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
node-app-rsc:1 (lsb:cluster-node) Started<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Node node-2
(85e0ca02-7aa4-45c8-9911-4035e1e6ee15): online<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
node-app-rsc:2 (lsb:cluster-node) Started<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>
<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>The problem:<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>After stopping heartbeat service on node-1,
if I remove node-1 with command "hb_delnode node-1 && crm node
delete node-1", then <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>the clone resource(node-app-rsc:2) running
on the node-2 will restart and change to "node-app-rsc:1". <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>You know, the node-app-rsc is my
application, and I don't want it to restart.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>How could I do, Please?<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>Any help will be very appreciated. :)<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><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Best Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>
Fanghao Sha<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><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>