<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 July 2013 04:11, Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net" target="_blank">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"><br>
On 08/07/2013, at 11:35 PM, Andrew Morgan &lt;<a href="mailto:andrewjamesmorgan@gmail.com">andrewjamesmorgan@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Thanks Florian.<br>
&gt;<br>
&gt; The problem I have is that I&#39;d like to define a HA configuration that isn&#39;t dependent on a specific set of fencing hardware (or any fencing hardware at all for that matter) and as the stack has the quorum capability included I&#39;m hoping that this is an option.<br>

&gt;<br>
&gt; I&#39;ve not been able to find any quorum commands within pcs; the closest I&#39;ve found is setting a node to &quot;standby&quot; but when I do that, it appears to have lost its quorum vote<br>
<br>
</div>This is not the case.<br></blockquote><div><br></div><div>My test was to have 3 nodes, node 3 defined as being on standby. My resources were running on node 2. I then dropped the network connection on node 2 hoping that node 1 and node 3 would maintain a quorum and that the resources would start on node 1 - instead the resources were stopped.</div>
<div><br></div><div>I have quorum enabled but on pcs status it says that the number of votes required is unknown - is there something else that I need to configure?</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
&gt; - this seems at odds with the help text....<br>
&gt;<br>
&gt; standby &lt;node&gt;<br>
&gt;         Put specified node into standby mode (the node specified will no longer be able to host resources<br>
&gt;<br>
&gt; Regards, Andrew.<br>
&gt;<br>
&gt;<br>
&gt; On 8 July 2013 10:23, Florian Crouzat &lt;<a href="mailto:gentoo@floriancrouzat.net">gentoo@floriancrouzat.net</a>&gt; wrote:<br>
&gt; Le 08/07/2013 09:49, Andrew Morgan a écrit :<br>
&gt;<br>
&gt; I&#39;m attempting to implement a 3 node cluster where only 2 nodes are<br>
&gt; there to actually run the services and the 3rd is there to form a quorum<br>
&gt; (so that the cluster stays up when one of the 2 &#39;workload&#39; nodes fails).<br>
&gt;<br>
&gt; To this end, I added a location avoids contraint so that the services<br>
&gt; (including drbd) don&#39;t get placed on the 3rd node (drbd3)...<br>
&gt;<br>
&gt; pcs constraint location ms_drbd avoids drbd3.localdomain<br>
&gt;<br>
&gt; the problem is that this constraint doesn&#39;t appear to be enforced and I<br>
&gt; see failed actions where Pacemaker has attempted to start the services<br>
&gt; on drbd3. In most cases I can just ignore the error but if I attempt to<br>
&gt; migrate the services using &quot;pcs move&quot; then it causes a fatal startup<br>
&gt; loop for drbd. If I migrate by adding an extra location contraint<br>
&gt; preferring the other workload node then I can migrate ok.<br>
&gt;<br>
&gt; I&#39;m using Oracle Linux 6.4; drbd83-utils 8.3.11; corosync 1.4.1; cman<br>
&gt; 3.0.12.1; Pacemaker 1.1.8 &amp; pcs 1.1.8<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m no quorum-node expert but I believe your initial design isn&#39;t optimal.<br>
&gt; You could probably even run with only two nodes (real nodes) and no-quorum-policy=ignore + fencing (for data integrity) [1]<br>
&gt; This is what most (all?) people with two nodes clusters do.<br>
&gt;<br>
&gt; But if you really believe you need to be quorate, then I think you need to define your third node as quorum-node in corosync/cman (not sure how since EL6.4 and CMAN) and I cannot find a valid link. IIRC with such definition, you won&#39;t need the location constraints.<br>

&gt;<br>
&gt;<br>
&gt; [1] <a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_perform_a_failover.html#_quorum_and_two_node_clusters" target="_blank">http://clusterlabs.org/doc/en-US/Pacemaker/1.1-plugin/html/Clusters_from_Scratch/_perform_a_failover.html#_quorum_and_two_node_clusters</a><br>

&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Cheers,<br>
&gt; Florian Crouzat<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: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><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: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<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://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div></div>