No subject


Thu Sep 30 07:38:38 EDT 2010


resource on the devms01 box, and then ran a 'start' 'promote' on
'ms_mysql' on devms02 :-/<br>
</font></font><br>
Sent: Mon Nov 29 2010 00:43:48 GMT-0700 (Mountain Standard Time)<br>
From: Andrew Beekhof <a class="moz-txt-link-rfc2396E" href="mailto:andrew at beekhof.net">&lt;andrew at beekhof.net&gt;</a><br>
To: The Pacemaker cluster resource manager
<a class="moz-txt-link-rfc2396E" href="mailto:pacemaker at oss.clusterlabs.org">&lt;pacemaker at oss.clusterlabs.org&gt;</a> <br>
Subject: Re: [Pacemaker] colocation rule not obeyed
<blockquote
 cite="mid:AANLkTimThwWzoeC_G_x+vdK8sgqX88Dvo9=fQ+i75uv2 at mail.gmail.com"
 type="cite">
  <pre wrap="">On Mon, Nov 29, 2010 at 6:55 AM, Patrick H. <a class="moz-txt-link-rfc2396E" href="mailto:pacemaker at feystorm.net">&lt;pacemaker at feystorm.net&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I've got a replicated mysql with vip setup i've been trying to create, and
it doesnt seem to be obeying my colocation rule much.

Situation:
I had shut down corosync on all (3) nodes and verified all associated
services were off.
I then started it up an all 3 nodes.
When it came back up, the VIP was running on node1, while the master mysql
service was running on node 2.

# crm status
============
Last updated: Mon Nov 29 05:51:06 2010
Stack: openais
Current DC: devms01 - partition with quorum
Version: 1.0.9-89bd754939df5150de7cd76835f98fe90851b677
3 Nodes configured, 3 expected votes
2 Resources configured.
============

Online: [ devms01 devms02 devms03 ]

&nbsp;vip&nbsp;&nbsp;&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started devms01
&nbsp;Master/Slave Set: ms_mysql
&nbsp;&nbsp;&nbsp;&nbsp; Masters: [ devms02 ]
&nbsp;&nbsp;&nbsp;&nbsp; Slaves: [ devms01 devms03 ]


# crm configure show
node devms01 \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes standby="off"
node devms02 \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attributes standby="off"
node devms03
primitive mysql ocf:etc:mysql \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params master_host="165.212.101.96" user="mailsafe_rep"
pass="replicate" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval="10s" role="Master" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; op monitor interval="60s" role="Slave"
primitive vip ocf:heartbeat:IPaddr2 \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params nic="eth0" iflabel="0" ip="165.212.101.96" cidr_netmask="24"
broadcast="165.212.101.255" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta target-role="Started" is-managed="true"
ms ms_mysql mysql \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; meta target-role="Master" is-managed="true"
colocation co_mysql inf: ms_mysql:Master vip
property $id="cib-bootstrap-options" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cluster-infrastructure="openais" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expected-quorum-votes="3" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stonith-enabled="false" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; no-quorum-policy="ignore" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default-resource-stickiness="INFINITY" \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; last-lrm-refresh="1291008843"



I dont get it. Why did it decide to just ignore the co_mysql rule?
    </pre>
  </blockquote>
  <pre wrap=""><!---->

No idea, cibadmin -Q with the cluster in this state?

_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker at oss.clusterlabs.org">Pacemaker at oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>

Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a>
  </pre>
</blockquote>
</body>
</html>

--------------020906000400090906050305--



More information about the Pacemaker mailing list