<div dir="ltr">so did another test:<div><br></div><div>two nodes: node1 and node2</div><div><br></div><div>Case: node1 is the active node</div><div>node2: is pasive</div><div><br></div><div>if I killall -9 pacemakerd corosync on node 1 the services do not fail over to node2, but if I start corosync and pacemaker on node1 then it fails over to node 2.</div><div><br></div><div>Where am I mistaking?</div><div><br></div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 12:42 PM, alex austin <span dir="ltr"><<a href="mailto:alexixalex@gmail.com" target="_blank">alexixalex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I have configured a virtual ip and redis in master-slave with corosync pacemaker. If redis fails, then the failover is successful, and redis gets promoted on the other node. However if pacemaker itself fails on the active node, the failover is not performed. Is there anything I missed in the configuration?</div><div><br></div><div>Here's my configuration (i have hashed the ip address out):</div><div><br></div><div>
<p><span>node</span><span> <a href="http://host1.com" target="_blank">host1.com</a></span></p>
<p><span>node</span><span> <a href="http://host2.com" target="_blank">host2.com</a></span></p>
<p><span>primitive</span><span> ClusterIP IPaddr2 \</span></p>
<p><span> </span><span>params</span><span> </span><span>ip</span><span>=xxx.xxx.xxx.xxx </span><span>cidr_netmask</span><span>=</span><span>23</span><span> \</span></p>
<p><span> </span><span>op</span><span> monitor </span><span>interval</span><span>=</span><span>1s</span><span> </span><span>timeout</span><span>=</span><span>20s</span><span> \</span></p>
<p><span> </span><span>op</span><span> start </span><span>interval</span><span>=</span><span>0</span><span> </span><span>timeout</span><span>=</span><span>20s</span><span> \</span></p>
<p><span> </span><span>op</span><span> stop </span><span>interval</span><span>=</span><span>0</span><span> </span><span>timeout</span><span>=</span><span>20s</span><span> \</span></p>
<p><span> </span><span>meta</span><span> </span><span>is-managed</span><span>=</span><span>true</span><span> </span><span>target-role</span><span>=</span><span>Started</span><span> </span><span>resource-stickiness</span><span>=</span><span>500</span></p>
<p><span>primitive</span><span> redis redis \</span></p>
<p><span> </span><span>meta</span><span> </span><span>target-role</span><span>=</span><span>Master</span><span> </span><span>is-managed</span><span>=</span><span>true</span><span> \</span></p>
<p><span> </span><span>op</span><span> monitor </span><span>interval</span><span>=</span><span>1s</span><span> </span><span>role</span><span>=</span><span>Master</span><span> </span><span>timeout</span><span>=</span><span>5s</span><span> </span><span>on-fail</span><span>=</span><span>restart</span></p>
<p><span>ms</span><span> redis_clone </span><span>redis</span><span> \</span></p>
<p><span> </span><span>meta</span><span> </span><span>notify</span><span>=</span><span>true</span><span> </span><span>is-managed</span><span>=</span><span>true</span><span> </span><span>ordered</span><span>=</span><span>false</span><span> </span><span>interleave</span><span>=</span><span>false</span><span> </span><span>globally-unique</span><span>=</span><span>false</span><span> </span><span>target-role</span><span>=</span><span>Master</span><span> </span><span>migration-threshold</span><span>=</span><span>1</span></p>
<p><span>colocation</span><span> ClusterIP-on-redis </span><span>inf</span><span>: </span><span>ClusterIP</span><span> </span><span>redis_clone</span><span>:Master</span></p>
<p><span>colocation</span><span> ip-on-redis </span><span>inf</span><span>: </span><span>ClusterIP</span><span> </span><span>redis_clone</span><span>:Master</span></p>
<p><span>property</span><span> </span><span>cib-bootstrap-options</span><span>: \</span></p>
<p><span> </span><span>dc-version</span><span>=</span><span>1.1.11-97629de</span><span> \</span></p>
<p><span> </span><span>cluster-infrastructure</span><span>=</span><span>"classic openais (with plugin)"</span><span> \</span></p>
<p><span> </span><span>expected-quorum-votes</span><span>=</span><span>2</span><span> \</span></p>
<p><span> </span><span>stonith-enabled</span><span>=</span><span>false</span></p>
<p><span>property</span><span> </span><span>redis_replication</span><span>: \</span></p>
<p><span> </span><span>redis_REPL_INFO</span><span>=</span><span><a href="http://host.com" target="_blank">host.com</a></span></p><p><span><br></span></p><p><span>thank you in advance</span></p><p><span><br></span></p><p><span>Kind regards,</span></p><p><span><br></span></p><p><span>Alex </span></p></div></div>
</blockquote></div><br></div>