<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#0050d0">
Sent: Mon Nov 29 2010 03:42:41 GMT-0700 (Mountain Standard Time)<br>
From: Dejan Muhamedagic <a class="moz-txt-link-rfc2396E" href="mailto:dejanmm@fastmail.fm"><dejanmm@fastmail.fm></a><br>
To: The Pacemaker cluster resource manager
<a class="moz-txt-link-rfc2396E" href="mailto:pacemaker@oss.clusterlabs.org"><pacemaker@oss.clusterlabs.org></a> <br>
Subject: Re: [Pacemaker] colocation rule not obeyed
<blockquote cite="mid:20101129104240.GA2820@rondo.homenet" type="cite">
<pre wrap="">Hi,
On Mon, Nov 29, 2010 at 08:43:48AM +0100, Andrew Beekhof wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Mon, Nov 29, 2010 at 6:55 AM, Patrick H. <a class="moz-txt-link-rfc2396E" href="mailto:pacemaker@feystorm.net"><pacemaker@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
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
Shouldn't this read:
colocation co_mysql inf: ms_mysql:Master vip:Started
Thanks,
Dejan
</pre>
</blockquote>
I tried that and it made no difference. All the configuration examples
I've seen with the IPaddr2 resource being in a colocation rule dont
have a state specified on it.<br>
<br>
Thanks for the idea though<br>
<br>
-Patrick<br>
</body>
</html>