Is the rebooted node host2? Then it makes sense because location score is INFINITE in host2.<br><br>hj<br><br><div class="gmail_quote">On Thu, Aug 20, 2009 at 10:14 AM, Gerry kernan <span dir="ltr"><<a href="mailto:gerry.kernan@infinityit.ie">gerry.kernan@infinityit.ie</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">














<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hi </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">I have a 2 node cluster using openais & pacemaker,</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">If I reboot the standby node when the node comes back up all
resources migrate automatically to that node from the node they where running
on. Is this normal behavior or how do I stop this happening.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">[root@host1 ~]# crm configure show</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">node host1.localdomain</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">node host2.localdomain \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        attributes standby="off"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">primitive res_drbd_credit heartbeat:drbddisk \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        operations
$id="res_drbd_credit-operations" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        op monitor interval="59"
role="Master" timeout="30" start-delay="15" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        op monitor interval="60"
role="Slave" timeout="30" start-delay="15" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        params 1="credit" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        meta $id="res_drbd_credit-meta_attributes"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">primitive res_filesystem_credit ocf:heartbeat:Filesystem \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        meta target-role="started" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        operations
$id="res_filesystem_credit-operations" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        op monitor interval="20"
timeout="40" start-delay="10" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        params device="/dev/drbd0"
directory="/credit" fstype="ext3"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">primitive res_icobol_credit lsb:icobol \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        meta is-managed="true" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        operations
$id="res_icobol_credit-operations" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        op monitor interval="15"
timeout="15" start-delay="15"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">primitive res_ip_credit ocf:heartbeat:IPaddr2 \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        meta $id="res_ip_credit-meta_attributes" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        operations $id="res_ip_credit-operations"
\</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        op monitor interval="10s"
timeout="20s" start-delay="5s" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        params ip="192.168.200.1"
cidr_netmask="255.255.255.0"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">primitive res_pingd ocf:pacemaker:pingd \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        operations $id="res_pingd-operations" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        op monitor interval="10"
timeout="20" start-delay="1m" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        params host_list="192.168.200.7"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">group grp_credit res_drbd_credit res_filesystem_credit
res_ip_credit res_icobol_                                                                             credit
res_pingd \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        meta target-role="started"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">location cli-prefer-grp_credit grp_credit \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        rule $id="cli-prefer-rule-grp_credit" inf:
#uname eq host2.localdomain</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">location res_creditfs grp_credit inf: host2.localdomain</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">property $id="cib-bootstrap-options" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">       
dc-version="1.0.4-6dede86d6105786af3a5321ccf66b44b6914f0aa" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        cluster-infrastructure="openais" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        expected-quorum-votes="2" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        last-lrm-refresh="1250783233"
\</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        node-health-red="0" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        stonith-enabled="false" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        default-resource-stickiness="1000" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        no-quorum-policy="ignore" \</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">        stonith-action="poweroff"</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">[root@host1 ~]#   </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Best regards,</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Gerry kernan</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Infinity Integration technology</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Suite</span></font><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> 17</span></font><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> The mall Beacon Court</span></font></p>


<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Sandyford </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Dublin</span></font><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> 18</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"><a href="http://www.infinityit.ie" target="_blank">www.infinityit.ie</a></span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">P. +35312930090</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">F. +35312930137</span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font><font color="red" size="2" face="Consolas"><span style="font-size: 10.5pt; font-family: Consolas; color: red;" lang="EN-IE"><img src="cid:image002.jpg@01CA21B9.B28E7F70" alt="menu_r1_c1" border="0" width="266" height="60"></span></font></p>


<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

</div>


<br>_______________________________________________<br>
Pacemaker mailing list<br>
<a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Dream with longterm vision!<br>kerdosa<br>