<div dir="ltr">







<p class=""><span class="">This is what crm_mon shows</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Last updated: Wed Jul  1 10:35:40 2015</span></p>
<p class=""><span class="">Last change: Wed Jul  1 09:52:46 2015</span></p>
<p class=""><span class="">Stack: classic openais (with plugin)</span></p>
<p class=""><span class="">Current DC: host2 - partition with quorum</span></p>
<p class=""><span class="">Version: 1.1.11-97629de</span></p>
<p class=""><span class="">2 Nodes configured, 2 expected votes</span></p>
<p class=""><span class="">4 Resources configured</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">Online: [ host1 host2 ]</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">ClusterIP<span class="">        </span>(ocf::heartbeat:IPaddr2):<span class="">        </span>Started host2</span></p>
<p class=""><span class=""> Master/Slave Set: redis_clone [redis]</span></p>
<p class=""><span class="">     Masters: [ host2 ]</span></p>
<p class=""><span class="">     Slaves: [ host1 ]</span></p>
<p class=""><span class="">pcmk-fencing    (stonith:fence_pcmk):   Started host2</span></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 3:37 PM, alex austin <span dir="ltr">&lt;<a href="mailto:alexixalex@gmail.com" target="_blank">alexixalex@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am running version 1.4.7 of corosync<div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 3:25 PM, Ken Gaillot <span dir="ltr">&lt;<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 07/01/2015 08:57 AM, alex austin wrote:<br>
&gt; I have now configured stonith-enabled=true. What device should I use for<br>
&gt; fencing given the fact that it&#39;s a virtual machine but I don&#39;t have access<br>
&gt; to its configuration. would fence_pcmk do? if so, what parameters should I<br>
&gt; configure for it to work properly?<br>
<br>
</span>No, fence_pcmk is not for using in pacemaker, but for using in RHEL6&#39;s<br>
CMAN to redirect its fencing requests to pacemaker.<br>
<br>
For a virtual machine, ideally you&#39;d use fence_virtd running on the<br>
physical host, but I&#39;m guessing from your comment that you can&#39;t do<br>
that. Does whoever provides your VM also provide an API for controlling<br>
it (starting/stopping/rebooting)?<br>
<br>
Regarding your original problem, it sounds like the surviving node<br>
doesn&#39;t have quorum. What version of corosync are you using? If you&#39;re<br>
using corosync 2, you need &quot;two_node: 1&quot; in corosync.conf, in addition<br>
to configuring fencing in pacemaker.<br>
<div><div><br>
&gt; This is my new config:<br>
&gt;<br>
&gt;<br>
&gt; node <a href="http://dcwbpvmuas004.edc.nam.gm.com" rel="noreferrer" target="_blank">dcwbpvmuas004.edc.nam.gm.com</a> \<br>
&gt;<br>
&gt;         attributes standby=off<br>
&gt;<br>
&gt; node <a href="http://dcwbpvmuas005.edc.nam.gm.com" rel="noreferrer" target="_blank">dcwbpvmuas005.edc.nam.gm.com</a> \<br>
&gt;<br>
&gt;         attributes standby=off<br>
&gt;<br>
&gt; primitive ClusterIP IPaddr2 \<br>
&gt;<br>
&gt;         params ip=198.208.86.242 cidr_netmask=23 \<br>
&gt;<br>
&gt;         op monitor interval=1s timeout=20s \<br>
&gt;<br>
&gt;         op start interval=0 timeout=20s \<br>
&gt;<br>
&gt;         op stop interval=0 timeout=20s \<br>
&gt;<br>
&gt;         meta is-managed=true target-role=Started resource-stickiness=500<br>
&gt;<br>
&gt; primitive pcmk-fencing stonith:fence_pcmk \<br>
&gt;<br>
&gt;         params pcmk_host_list=&quot;<a href="http://dcwbpvmuas004.edc.nam.gm.com" rel="noreferrer" target="_blank">dcwbpvmuas004.edc.nam.gm.com</a><br>
&gt; <a href="http://dcwbpvmuas005.edc.nam.gm.com" rel="noreferrer" target="_blank">dcwbpvmuas005.edc.nam.gm.com</a>&quot; \<br>
&gt;<br>
&gt;         op monitor interval=10s \<br>
&gt;<br>
&gt;         meta target-role=Started<br>
&gt;<br>
&gt; primitive redis redis \<br>
&gt;<br>
&gt;         meta target-role=Master is-managed=true \<br>
&gt;<br>
&gt;         op monitor interval=1s role=Master timeout=5s on-fail=restart<br>
&gt;<br>
&gt; ms redis_clone redis \<br>
&gt;<br>
&gt;         meta notify=true is-managed=true ordered=false interleave=false<br>
&gt; globally-unique=false target-role=Master migration-threshold=1<br>
&gt;<br>
&gt; colocation ClusterIP-on-redis inf: ClusterIP redis_clone:Master<br>
&gt;<br>
&gt; colocation ip-on-redis inf: ClusterIP redis_clone:Master<br>
&gt;<br>
&gt; colocation pcmk-fencing-on-redis inf: pcmk-fencing redis_clone:Master<br>
&gt;<br>
&gt; property cib-bootstrap-options: \<br>
&gt;<br>
&gt;         dc-version=1.1.11-97629de \<br>
&gt;<br>
&gt;         cluster-infrastructure=&quot;classic openais (with plugin)&quot; \<br>
&gt;<br>
&gt;         expected-quorum-votes=2 \<br>
&gt;<br>
&gt;         stonith-enabled=true<br>
&gt;<br>
&gt; property redis_replication: \<br>
&gt;<br>
&gt;         redis_REPL_INFO=<a href="http://dcwbpvmuas005.edc.nam.gm.com" rel="noreferrer" target="_blank">dcwbpvmuas005.edc.nam.gm.com</a><br>
&gt;<br>
&gt; On Wed, Jul 1, 2015 at 2:53 PM, Nekrasov, Alexander &lt;<br>
&gt; <a href="mailto:alexander.nekrasov@emc.com" target="_blank">alexander.nekrasov@emc.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; stonith-enabled=false<br>
&gt;&gt;<br>
&gt;&gt; this might be the issue. The way peer node death is resolved, the<br>
&gt;&gt; surviving node must call STONITH on the peer. If it’s disabled it might not<br>
&gt;&gt; be able to resolve the event<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Alex<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
</div></div>&gt;&gt; *From:* alex austin [mailto:<a href="mailto:alexixalex@gmail.com" target="_blank">alexixalex@gmail.com</a>]<br>
&gt;&gt; *Sent:* Wednesday, July 01, 2015 9:51 AM<br>
&gt;&gt; *To:* <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
&gt;&gt; *Subject:* Re: [ClusterLabs] Pacemaker failover failure<br>
<div><div>&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So I noticed that if I kill redis on one node, it starts on the other, no<br>
&gt;&gt; problem, but if I actually kill pacemaker itself on one node, the other<br>
&gt;&gt; doesn&#39;t &quot;sense&quot; it so it doesn&#39;t fail over.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jul 1, 2015 at 12:42 PM, alex austin &lt;<a href="mailto:alexixalex@gmail.com" target="_blank">alexixalex@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I have configured a virtual ip and redis in master-slave with corosync<br>
&gt;&gt; pacemaker. If redis fails, then the failover is successful, and redis gets<br>
&gt;&gt; promoted on the other node. However if pacemaker itself fails on the active<br>
&gt;&gt; node, the failover is not performed. Is there anything I missed in the<br>
&gt;&gt; configuration?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Here&#39;s my configuration (i have hashed the ip address out):<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; node <a href="http://host1.com" rel="noreferrer" target="_blank">host1.com</a><br>
&gt;&gt;<br>
&gt;&gt; node <a href="http://host2.com" rel="noreferrer" target="_blank">host2.com</a><br>
&gt;&gt;<br>
&gt;&gt; primitive ClusterIP IPaddr2 \<br>
&gt;&gt;<br>
&gt;&gt; params ip=xxx.xxx.xxx.xxx cidr_netmask=23 \<br>
&gt;&gt;<br>
&gt;&gt; op monitor interval=1s timeout=20s \<br>
&gt;&gt;<br>
&gt;&gt; op start interval=0 timeout=20s \<br>
&gt;&gt;<br>
&gt;&gt; op stop interval=0 timeout=20s \<br>
&gt;&gt;<br>
&gt;&gt; meta is-managed=true target-role=Started resource-stickiness=500<br>
&gt;&gt;<br>
&gt;&gt; primitive redis redis \<br>
&gt;&gt;<br>
&gt;&gt; meta target-role=Master is-managed=true \<br>
&gt;&gt;<br>
&gt;&gt; op monitor interval=1s role=Master timeout=5s on-fail=restart<br>
&gt;&gt;<br>
&gt;&gt; ms redis_clone redis \<br>
&gt;&gt;<br>
&gt;&gt; meta notify=true is-managed=true ordered=false interleave=false<br>
&gt;&gt; globally-unique=false target-role=Master migration-threshold=1<br>
&gt;&gt;<br>
&gt;&gt; colocation ClusterIP-on-redis inf: ClusterIP redis_clone:Master<br>
&gt;&gt;<br>
&gt;&gt; colocation ip-on-redis inf: ClusterIP redis_clone:Master<br>
&gt;&gt;<br>
&gt;&gt; property cib-bootstrap-options: \<br>
&gt;&gt;<br>
&gt;&gt; dc-version=1.1.11-97629de \<br>
&gt;&gt;<br>
&gt;&gt; cluster-infrastructure=&quot;classic openais (with plugin)&quot; \<br>
&gt;&gt;<br>
&gt;&gt; expected-quorum-votes=2 \<br>
&gt;&gt;<br>
&gt;&gt; stonith-enabled=false<br>
&gt;&gt;<br>
&gt;&gt; property redis_replication: \<br>
&gt;&gt;<br>
&gt;&gt; redis_REPL_INFO=<a href="http://host.com" rel="noreferrer" target="_blank">host.com</a><br>
<br>
<br>
<br>
</div></div><div><div>_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>