<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:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.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;
        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 WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></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=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Never mind.  It’s like one of Murphy’s Laws, or at least a Murphy’s Corollary.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>As soon as you ask for help and describe a problem in some detail, the answer becomes obvious.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>It’s the order command.  Duh.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Regards.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'><br></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Mark K Vallevand   <a href="mailto:Mark.Vallevand@Unisys.com">Mark.Vallevand@Unisys.com</a></span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'>May you live in interesting times, may you come to the attention of important people and may all your wishes come true.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Times New Roman","serif";color:#1F497D'>THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D'><o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> linux-cluster-bounces@redhat.com [mailto:linux-cluster-bounces@redhat.com] <b>On Behalf Of </b>Vallevand, Mark K<br><b>Sent:</b> Wednesday, March 19, 2014 02:56 PM<br><b>To:</b> linux clustering<br><b>Subject:</b> [Linux-cluster] Resource instance is getting restarted when a node is rebooted<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m testing my cluster configuration by rebooting nodes to see what happens.  I can’t explain what I see in some cases.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The setup:  I have a cloned resource with its own agent and an IP address resource that is collocated with the cloned resource.  The IP address doesn’t need to run on all of the nodes running an instance of the cloned resource.  It just needs to be on one of the nodes.  It’s not cloned or meant to be load-balanced.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I do something like this:<o:p></o:p></p><p class=MsoNormal>crm -F configure <<EOF <o:p></o:p></p><p class=MsoNormal>                                        primitive IP ocf:heartbeat:IPaddr2 \<o:p></o:p></p><p class=MsoNormal>                                                params ip=10.1.1.1 nic=eth0 cidr_netmask=24 \<o:p></o:p></p><p class=MsoNormal>                                                op monitor interval=30s timeout=20s \<o:p></o:p></p><p class=MsoNormal>                                                op start timeout=30s \<o:p></o:p></p><p class=MsoNormal>                                                op stop timeout=30s <o:p></o:p></p><p class=MsoNormal>                                        primitive P ocf:heartbeat:my_agent \<o:p></o:p></p><p class=MsoNormal>                                                op monitor interval=30s timeout=10s \<o:p></o:p></p><p class=MsoNormal>                                                op start timeout=30s \<o:p></o:p></p><p class=MsoNormal>                                                op stop timeout=30s<o:p></o:p></p><p class=MsoNormal>                                        clone P_clone P \<o:p></o:p></p><p class=MsoNormal>                                                meta clone-max=2 notify="true" clone-node-max=1<o:p></o:p></p><p class=MsoNormal>                                        colocation P_withIP INFINITY: IP P_clone<o:p></o:p></p><p class=MsoNormal>                                        order P_AfterIP INFINITY: IP P_clone <o:p></o:p></p><p class=MsoNormal>                                        commit<o:p></o:p></p><p class=MsoNormal>                                        exit<o:p></o:p></p><p class=MsoNormal>EOF<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This works great.  In my 2 node system, node1 has IP and P:0 on it, node2 has P:1 on it, and node3 has nothing on it.<o:p></o:p></p><p class=MsoNormal>Reboot node2.  I see P:1 start on node3.  Good.<o:p></o:p></p><p class=MsoNormal>Reboot node3.  I see P:1 start on node2.  Good.<o:p></o:p></p><p class=MsoNormal>Reboot node1.  I see P:0 and IP start on node3.  Good.  And I see P:1 restart on node2.  <o:p></o:p></p><p class=MsoNormal>What’s up with that?<o:p></o:p></p><p class=MsoNormal>Have I done my collocation incorrectly?  If I reboot the node that has the IP resource on it, all instances of P_clone move or restart.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any ideas are very welcome.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Regards.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br></span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Mark K Vallevand   <a href="mailto:Mark.Vallevand@Unisys.com">Mark.Vallevand@Unisys.com</a></span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>May you live in interesting times, may you come to the attention of important people and may all your wishes come true.<o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>