No subject
Thu Sep 30 11:38:38 UTC 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 moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:andrew at beekhof.net"><andrew at beekhof.net></a><br>
To: The Pacemaker cluster resource manager
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:pacemaker at oss.clusterlabs.org"><pacemaker at oss.clusterlabs.org></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
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:pacemaker at feystorm.net"><pacemaker at feystorm.net></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 ]
vip (ocf::heartbeat:IPaddr2): Started devms01
Master/Slave Set: ms_mysql
Masters: [ devms02 ]
Slaves: [ devms01 devms03 ]
# crm configure show
node devms01 \
attributes standby="off"
node devms02 \
attributes standby="off"
node devms03
primitive mysql ocf:etc:mysql \
params master_host="165.212.101.96" user="mailsafe_rep"
pass="replicate" \
op monitor interval="10s" role="Master" \
op monitor interval="60s" role="Slave"
primitive vip ocf:heartbeat:IPaddr2 \
params nic="eth0" iflabel="0" ip="165.212.101.96" cidr_netmask="24"
broadcast="165.212.101.255" \
meta target-role="Started" is-managed="true"
ms ms_mysql mysql \
meta target-role="Master" is-managed="true"
colocation co_mysql inf: ms_mysql:Master vip
property $id="cib-bootstrap-options" \
dc-version="1.0.9-89bd754939df5150de7cd76835f98fe90851b677" \
cluster-infrastructure="openais" \
expected-quorum-votes="3" \
stonith-enabled="false" \
no-quorum-policy="ignore" \
default-resource-stickiness="INFINITY" \
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 moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:Pacemaker at oss.clusterlabs.org">Pacemaker at oss.clusterlabs.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>
Project Home: <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a moz-do-not-send="true" 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 moz-do-not-send="true" 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>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>
--------------060909010407080306090704--
--------------020708080506010800030600
Content-Type: text/xml; name="cibadmin.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="cibadmin.xml"
<cib validate-with="pacemaker-1.0" crm_feature_set="3.0.1" have-quorum="1" admin_epoch="0" epoch="58" num_updates="18" cib-last-written="Mon Nov 29 15:26:09 2010" dc-uuid="devms01">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.9-89bd754939df5150de7cd76835f98fe90851b677"/>
<nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/>
<nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="3"/>
<nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
<nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
<nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="INFINITY"/>
<nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-refresh" value="1291008843"/>
</cluster_property_set>
</crm_config>
<nodes>
<node type="normal" uname="devms01" id="devms01">
<instance_attributes id="nodes-devms01">
<nvpair name="standby" id="nodes-devms01-standby" value="off"/>
</instance_attributes>
</node>
<node type="normal" uname="devms02" id="devms02">
<instance_attributes id="nodes-devms02">
<nvpair name="standby" id="nodes-devms02-standby" value="off"/>
</instance_attributes>
</node>
<node id="devms03" uname="devms03" type="normal"/>
</nodes>
<resources>
<primitive class="ocf" id="vip" provider="heartbeat" type="IPaddr2">
<instance_attributes id="vip-instance_attributes">
<nvpair id="vip-instance_attributes-nic" name="nic" value="eth0"/>
<nvpair id="vip-instance_attributes-iflabel" name="iflabel" value="0"/>
<nvpair id="vip-instance_attributes-ip" name="ip" value="165.212.101.96"/>
<nvpair id="vip-instance_attributes-cidr_netmask" name="cidr_netmask" value="24"/>
<nvpair id="vip-instance_attributes-broadcast" name="broadcast" value="165.212.101.255"/>
</instance_attributes>
<meta_attributes id="vip-meta_attributes">
<nvpair id="vip-meta_attributes-target-role" name="target-role" value="Started"/>
<nvpair id="vip-meta_attributes-is-managed" name="is-managed" value="true"/>
</meta_attributes>
</primitive>
<master id="ms_mysql">
<meta_attributes id="ms_mysql-meta_attributes">
<nvpair id="ms_mysql-meta_attributes-target-role" name="target-role" value="Master"/>
<nvpair id="ms_mysql-meta_attributes-is-managed" name="is-managed" value="true"/>
</meta_attributes>
<primitive class="ocf" id="mysql" provider="etc" type="mysql">
<instance_attributes id="mysql-instance_attributes">
<nvpair id="mysql-instance_attributes-master_host" name="master_host" value="165.212.101.96"/>
<nvpair id="mysql-instance_attributes-user" name="user" value="mailsafe_rep"/>
<nvpair id="mysql-instance_attributes-pass" name="pass" value="replicate"/>
</instance_attributes>
<operations>
<op id="mysql-monitor-10s" interval="10s" name="monitor" role="Master"/>
<op id="mysql-monitor-60s" interval="60s" name="monitor" role="Slave"/>
</operations>
</primitive>
</master>
</resources>
<constraints>
<rsc_colocation id="co_mysql" rsc="ms_mysql" rsc-role="Master" score="INFINITY" with-rsc="vip" with-rsc-role="Started"/>
</constraints>
<op_defaults/>
<rsc_defaults/>
</configuration>
<status>
<node_state id="devms03" uname="devms03" ha="active" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="do_update_resource" shutdown="0">
<lrm id="devms03">
<lrm_resources>
<lrm_resource id="vip" type="IPaddr2" class="ocf" provider="heartbeat">
<lrm_rsc_op id="vip_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="10:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:7;10:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="2" rc-code="7" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="220" queue-time="0" op-digest="ccff01c5bbd941b9f523be00dba94624"/>
</lrm_resource>
<lrm_resource id="mysql:2" type="mysql" class="ocf" provider="etc">
<lrm_rsc_op id="mysql:2_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="11:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:7;11:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="3" rc-code="7" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="230" queue-time="0" op-digest="82c12dd22ef6a25c2a2a7bac334c66ff"/>
<lrm_rsc_op id="mysql:2_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="12:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:0;12:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="4" rc-code="0" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="1270" queue-time="0" op-digest="82c12dd22ef6a25c2a2a7bac334c66ff"/>
<lrm_rsc_op id="mysql:2_monitor_60000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="20:3:0:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:0;20:3:0:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="5" rc-code="0" op-status="0" interval="60000" last-run="1291044457" last-rc-change="1291044457" exec-time="4220" queue-time="0" op-digest="284a7ac53aa59253c663777693e14734"/>
</lrm_resource>
</lrm_resources>
</lrm>
<transient_attributes id="devms03">
<instance_attributes id="status-devms03">
<nvpair id="status-devms03-probe_complete" name="probe_complete" value="true"/>
</instance_attributes>
</transient_attributes>
</node_state>
<node_state id="devms01" uname="devms01" ha="active" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="do_update_resource" shutdown="0">
<lrm id="devms01">
<lrm_resources>
<lrm_resource id="mysql:0" type="mysql" class="ocf" provider="etc">
<lrm_rsc_op id="mysql:0_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="5:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:7;5:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="3" rc-code="7" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="220" queue-time="0" op-digest="82c12dd22ef6a25c2a2a7bac334c66ff"/>
<lrm_rsc_op id="mysql:0_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="7:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:0;7:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="5" rc-code="0" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="1320" queue-time="0" op-digest="82c12dd22ef6a25c2a2a7bac334c66ff"/>
<lrm_rsc_op id="mysql:0_monitor_60000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="11:3:0:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:0;11:3:0:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="6" rc-code="0" op-status="0" interval="60000" last-run="1291044457" last-rc-change="1291044457" exec-time="4210" queue-time="0" op-digest="284a7ac53aa59253c663777693e14734"/>
</lrm_resource>
<lrm_resource id="vip" type="IPaddr2" class="ocf" provider="heartbeat">
<lrm_rsc_op id="vip_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="4:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:7;4:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="2" rc-code="7" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="270" queue-time="0" op-digest="ccff01c5bbd941b9f523be00dba94624"/>
<lrm_rsc_op id="vip_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="6:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:0;6:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="4" rc-code="0" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="140" queue-time="0" op-digest="ccff01c5bbd941b9f523be00dba94624"/>
</lrm_resource>
</lrm_resources>
</lrm>
<transient_attributes id="devms01">
<instance_attributes id="status-devms01">
<nvpair id="status-devms01-probe_complete" name="probe_complete" value="true"/>
</instance_attributes>
</transient_attributes>
</node_state>
<node_state id="devms02" uname="devms02" ha="active" in_ccm="true" crmd="online" join="member" expected="member" crm-debug-origin="do_update_resource" shutdown="0">
<lrm id="devms02">
<lrm_resources>
<lrm_resource id="vip" type="IPaddr2" class="ocf" provider="heartbeat">
<lrm_rsc_op id="vip_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="7:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:7;7:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="2" rc-code="7" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="230" queue-time="0" op-digest="ccff01c5bbd941b9f523be00dba94624"/>
</lrm_resource>
<lrm_resource id="mysql:1" type="mysql" class="ocf" provider="etc">
<lrm_rsc_op id="mysql:1_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="8:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:7;8:1:7:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="3" rc-code="7" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="240" queue-time="0" op-digest="82c12dd22ef6a25c2a2a7bac334c66ff"/>
<lrm_rsc_op id="mysql:1_start_0" operation="start" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="10:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:0;10:2:0:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="4" rc-code="0" op-status="0" interval="0" last-run="1291044455" last-rc-change="1291044455" exec-time="1380" queue-time="0" op-digest="82c12dd22ef6a25c2a2a7bac334c66ff"/>
<lrm_rsc_op id="mysql:1_promote_0" operation="promote" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="15:3:0:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:0;15:3:0:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="5" rc-code="0" op-status="0" interval="0" last-run="1291044457" last-rc-change="1291044457" exec-time="340" queue-time="0" op-digest="82c12dd22ef6a25c2a2a7bac334c66ff"/>
<lrm_rsc_op id="mysql:1_monitor_10000" operation="monitor" crm-debug-origin="do_update_resource" crm_feature_set="3.0.1" transition-key="16:3:8:71578e52-116b-429e-baf8-8a319c23f0fc" transition-magic="0:8;16:3:8:71578e52-116b-429e-baf8-8a319c23f0fc" call-id="6" rc-code="8" op-status="0" interval="10000" last-run="1291044457" last-rc-change="1291044457" exec-time="200" queue-time="0" op-digest="284a7ac53aa59253c663777693e14734"/>
</lrm_resource>
</lrm_resources>
</lrm>
<transient_attributes id="devms02">
<instance_attributes id="status-devms02">
<nvpair id="status-devms02-probe_complete" name="probe_complete" value="true"/>
</instance_attributes>
</transient_attributes>
</node_state>
</status>
</cib>
--------------020708080506010800030600--
More information about the Pacemaker
mailing list