<div>Sure....I&#39;ve attached a crm_report to the bug at <a href="http://bugs.clusterlabs.org/show_bug.cgi?id=5007">http://bugs.clusterlabs.org/show_bug.cgi?id=5007</a> </div><div><br></div><div>Thanks!</div><br><div class="gmail_quote">
On Sun, Nov 13, 2011 at 6:00 PM, Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sun, Oct 16, 2011 at 5:43 AM, Chris Redekop &lt;<a href="mailto:chris@replicon.com">chris@replicon.com</a>&gt; wrote:<br>
&gt; Andrew: It&#39;s not that the slave IP doesn&#39;t move back...it&#39;s that the slave<br>
&gt; IP simply doesn&#39;t run *anywhere*....even when both nodes are up, the slave<br>
&gt; ip will not run anywhere.  I&#39;m fairly convinced this is a bug....<br>
<br>
</div>Fair enough, could you grab a crm_report tarball that covers the<br>
scenario and create a new bug (<a href="http://bugs.clusterlabs.org" target="_blank">bugs.clusterlabs.org</a>)?<br>
<div class="HOEnZb"><div class="h5"><br>
&gt;<br>
&gt; On Thu, Sep 29, 2011 at 1:21 AM, Andrew Beekhof &lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sat, Aug 27, 2011 at 9:07 AM, Chris Redekop &lt;<a href="mailto:chris@replicon.com">chris@replicon.com</a>&gt; wrote:<br>
&gt;&gt; &gt; I&#39;m attempting to set up a master/slave database cluster where the<br>
&gt;&gt; &gt; master is<br>
&gt;&gt; &gt; R/W and the slave is R/O.  The master failure scenario works fine (slave<br>
&gt;&gt; &gt; becomes master, master vip moves over)....however when the slave<br>
&gt;&gt; &gt; resource<br>
&gt;&gt; &gt; goes down I want the slave vip to move to the master and then move back<br>
&gt;&gt; &gt; when<br>
&gt;&gt; &gt; the slave comes back up...I can&#39;t seem to get this to work properly.<br>
&gt;&gt; &gt;  Here&#39;s<br>
&gt;&gt; &gt; my test config I&#39;m playing with:<br>
&gt;&gt; &gt; primitive postgresql ocf:custom:pgsql \<br>
&gt;&gt; &gt;         op monitor interval=&quot;30&quot; timeout=&quot;30&quot; depth=&quot;0&quot;<br>
&gt;&gt; &gt; primitive primaryip ocf:heartbeat:IPaddr2 \<br>
&gt;&gt; &gt;         params ip=&quot;10.0.100.102&quot;<br>
&gt;&gt; &gt; primitive slaveip ocf:heartbeat:IPaddr2 \<br>
&gt;&gt; &gt;         params ip=&quot;10.0.100.103&quot;<br>
&gt;&gt; &gt; ms ms_postgresql postgresql \<br>
&gt;&gt; &gt;         meta clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; master-max=&quot;1&quot;<br>
&gt;&gt; &gt; master-node-max=&quot;1&quot; notify=&quot;true&quot; target-role=&quot;Started&quot;<br>
&gt;&gt; &gt; colocation postgres_on_primaryip inf: primaryip ms_postgresql:Master<br>
&gt;&gt; &gt; colocation slaveip_on_master 101: slaveip ms_postgresql:Master<br>
&gt;&gt; &gt; colocation slaveip_on_slave 1000: slaveip ms_postgresql:Slave<br>
&gt;&gt; &gt; property $id=&quot;cib-bootstrap-options&quot; \<br>
&gt;&gt; &gt;         dc-version=&quot;1.0.11-1554a83db0d3c3e546cfd3aaff6af1184f79ee87&quot; \<br>
&gt;&gt; &gt;         cluster-infrastructure=&quot;openais&quot; \<br>
&gt;&gt; &gt;         expected-quorum-votes=&quot;2&quot; \<br>
&gt;&gt; &gt;         stonith-enabled=&quot;false&quot; \<br>
&gt;&gt; &gt;         no-quorum-policy=&quot;ignore&quot; \<br>
&gt;&gt; &gt;         last-lrm-refresh=&quot;1314201732&quot;<br>
&gt;&gt; &gt; rsc_defaults $id=&quot;rsc-options&quot; \<br>
&gt;&gt; &gt;         resource-stickiness=&quot;100&quot;<br>
&gt;&gt; &gt; With the configuration like this it looks pretty straight forward but it<br>
&gt;&gt; &gt; actually results in the slaveip not being run on *either* node.  As far<br>
&gt;&gt; &gt; as I<br>
&gt;&gt; &gt; can figure out it seems when you have a colocation to a specific role it<br>
&gt;&gt; &gt; implicitly generates a -inf record for the other role.  So the :Master<br>
&gt;&gt; &gt; generates a -inf for :Slave, and :Slave generates a -inf for :Master,<br>
&gt;&gt; &gt; and<br>
&gt;&gt; &gt; since slaveip has a colocation record for both they get added together<br>
&gt;&gt; &gt; resulting in a -inf score for both nodes...if I wasn&#39;t so new at this I<br>
&gt;&gt; &gt; would think that is a bug.  If I key the ip off the node&#39;s up/down<br>
&gt;&gt; &gt; status<br>
&gt;&gt; &gt; (like via &#39;colocation whatever -101: slaveip primaryip&#39;) then it works<br>
&gt;&gt; &gt; if I<br>
&gt;&gt; &gt; standby the slave node but of course it doesn&#39;t work if the resource<br>
&gt;&gt; &gt; fails<br>
&gt;&gt; &gt; while the node stays up.  Can anyone shed some light on how to make this<br>
&gt;&gt; &gt; work properly?  Thanks!<br>
&gt;&gt;<br>
&gt;&gt; Are you sure its not just the stickiness value preventing it from<br>
&gt;&gt; moving back to the slave when it returns?<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; &gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; &gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; &gt; Bugs:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt;&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;&gt;<br>
&gt;&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt;&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt;&gt; Bugs:<br>
&gt;&gt; <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs:<br>
&gt; <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <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>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</div></div></blockquote></div><br>