<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2015-06-08 14:23 GMT+02:00 Andrei Borzenkov <span dir="ltr">&lt;<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Mon, Jun 8, 2015 at 3:05 PM, Oscar Salvador<br>
&lt;<a href="mailto:osalvador.vilardaga@gmail.com">osalvador.vilardaga@gmail.com</a>&gt; wrote:<br>
&gt; Hi guys!<br>
&gt;<br>
&gt; I&#39;ve configured two nodes with the stack pacemaker + corosync, with only one<br>
&gt; resource ( just for test purposes ), and I&#39;m having a strange result.<br>
&gt;<br>
&gt; First a little bit of information:<br>
&gt;<br>
&gt; pacemaker version: 1.1.12-1<br>
&gt; corosync version: 2.3.4-1<br>
&gt;<br>
&gt;<br>
&gt; # crm configure show<br>
&gt; node 1053402612: server1 \<br>
&gt; node 1053402613: server2<br>
&gt; primitive IP-rsc_apache IPaddr2 \<br>
&gt; params ip=xx.xx.xx.xy nic=eth0 cidr_netmask=255.255.255.192 \<br>
&gt; meta migration-threshold=2 \<br>
&gt; op monitor interval=20 timeout=60 on-fail=standby<br>
&gt; property cib-bootstrap-options: \<br>
&gt; last-lrm-refresh=1433763004 \<br>
&gt; stonith-enabled=false \<br>
&gt; no-quorum-policy=ignore<br>
&gt;<br>
</span>...<br>
<span class="">&gt;<br>
&gt;<br>
&gt; It seems like pacemaker is assuming that the monitor-operation failed, and<br>
&gt; because of this, decides to mark the node as a standby. But should not be,<br>
&gt; no?<br>
&gt;<br>
<br>
</span>You told it to do exactly that (on-fail=standby).<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" target="_blank">http://clusterlabs.org/mailman/listinfo/users</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://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a></blockquote><div><br></div><div><br></div><div>Yes, I told that: if the monitor-operation failed, put the node in standby. But from my point of view, the monitor-operation doesn&#39;t fail, but the resource itself.</div><div>I&#39;m very stranged with this because as I told, I tested this with and old version of pacemaker, and it didn&#39;t have this behaviour.</div><div>Maybe I was consufed because of that.</div><div><br></div><div>So, somehow is reduntant do something like that:<br></div></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">meta migration-threshold=2<br></div><div class="gmail_extra">op monitor interval=20 timeout=60 on-fail=standby<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">since it will never reach the failcount of 2, no?</div></div>