<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-18 0:47 GMT+01:00 Andrew Beekhof <span dir="ltr">&lt;<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>&gt;</span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On 17 Feb 2014, at 10:34 pm, Néstor C. &lt;<a href="mailto:xalabin@gmail.com">xalabin@gmail.com</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2014-02-17 1:22 GMT+01:00 Andrew Beekhof &lt;<a href="mailto:andrew@beekhof.net">andrew@beekhof.net</a>&gt;:<br>
&gt;<br>
&gt; On 21 Jan 2014, at 10:50 pm, Néstor C. &lt;<a href="mailto:xalabin@gmail.com">xalabin@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt;&gt; Hello.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; When you need that some primitives switch in block you can use a group.<br>
&gt;<br>
&gt; &gt;Groups are just a syntactic shortcut for ordering and colocation constraints.<br>
&gt;<br>
&gt; There is a manner of view this &quot;hyde&quot; contraints?<br>
&gt;<br>
&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; There is a manner to get this when you have a clone or a master/slave involved?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; For example:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Imagine a drbd disk (DR), a filesystem over ti (FS) and a service over all (SRV).<br>
&gt; &gt;&gt; The first one is a ms resource, and the other, primitives.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; The colocation rules are:<br>
&gt; &gt;&gt; colocation fs_on_dr inf: FS DR:Master<br>
&gt; &gt;&gt; colocation srv_on_fs inf: SRV FS<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; The order rules are:<br>
&gt; &gt;&gt; order fs_after_dr inf: DR:promote FS:start<br>
&gt; &gt;&gt; order srv_after_fs inf: FS:start SRV:start<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; How can switch the entire cluster to other node if SRV fails? (like if all was in a group)<br>
&gt;<br>
&gt; &gt;In what way does it not do so already with the above constraints?<br>
&gt;<br>
&gt; I want some kind of  &quot;circular constraint&quot;<br>
<br>
</div>We actively detect and prevent colocation and ordering loops.<br>
What version of pacemaker is this?<br>
<div class=""><br></div></blockquote><div><br></div><div>Pacemaker 1.1.9 on Suse sles 11 sp3</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">


&gt; like if srv fails move the entire stack to other node.<br>
&gt; If i add other constraint like:<br>
&gt; colocation dr on srv inf: DR:Master SRV<br>
&gt;<br>
&gt; It doesn&#39;t start.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
</div>&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>
<br></blockquote></div><br></div></div>