<div dir="ltr">I tried the location -INFINITY trick and it seems to work quite well. Thanks for the advice.<div><br></div><div>It seems to me that if I am not failing over automatically, then there is no good reason to run a stonith resource. Is this correct or is it still needed for some reason?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 11:02 AM, 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"><div class="HOEnZb"><div class="h5">On 05/24/2016 04:13 AM, Klaus Wenninger wrote:<br>
&gt; On 05/24/2016 09:50 AM, Jehan-Guillaume de Rorthais wrote:<br>
&gt;&gt; Le Tue, 24 May 2016 01:53:22 -0400,<br>
&gt;&gt; Digimer &lt;<a href="mailto:lists@alteeve.ca">lists@alteeve.ca</a>&gt; a écrit :<br>
&gt;&gt;<br>
&gt;&gt;&gt; On 23/05/16 03:03 PM, Stephano-Shachter, Dylan wrote:<br>
&gt;&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I am using pacemaker 1.1.14 with pcs 0.9.149. I have successfully<br>
&gt;&gt;&gt;&gt; configured pacemaker for highly available nfs with drbd. Pacemaker<br>
&gt;&gt;&gt;&gt; allows me to easily failover without interrupting nfs connections. I,<br>
&gt;&gt;&gt;&gt; however, am only interested in failing over manually (currently I use<br>
&gt;&gt;&gt;&gt; &quot;pcs resource move &lt;drbd_rsc&gt; &lt;target_node&gt; --master&quot;). I would like for<br>
&gt;&gt;&gt;&gt; the cluster to do nothing when a node fails unexpectedly.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Right now the solution I am going with is to run<br>
&gt;&gt;&gt;&gt; &quot;pcs property set is-managed-default=no&quot;<br>
&gt;&gt;&gt;&gt; until I need to failover, at which point I set is-managed-default=yes,<br>
&gt;&gt;&gt;&gt; then failover, then set it back to no.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; While this method works for me, it can be unpredictable if people run<br>
&gt;&gt;&gt;&gt; move commands at the wrong time.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Is there a way to disable automatic failover permanently while still<br>
&gt;&gt;&gt;&gt; allowing manual failover (with &quot;pcs resource move&quot; or with something else)?<br>
&gt;&gt; Try to set up your cluster without the &quot;interval&quot; parameter on the monitor<br>
&gt;&gt; action? The resource will be probed during the target-action (start/promote I<br>
&gt;&gt; suppose), but then it should not get monitored anymore.<br>
&gt;<br>
&gt; Ignoring the general cluster yes/no question a simple solution would<br>
&gt; be to bind the master-role to a node-attribute that you move around<br>
&gt; manually.<br>
<br>
</div></div>This is the right track. There are a number of ways you could do it, but<br>
the basic idea is to use constraints to only allow the resources to run<br>
on one node. When you want to fail over, flip the constraints.<br>
<br>
I&#39;d colocate everything with one (most basic) resource, so then all you<br>
need is one constraint for that resource to flip. It could be as simple<br>
as a -INFINITY location constraint on the node you don&#39;t want to run on.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">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>