<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-17 1:22 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 21 Jan 2014, at 10:50 pm, Néstor C. &lt;<a href="mailto:xalabin@gmail.com">xalabin@gmail.com</a>&gt; wrote:<br>
<br>&gt;&gt; Hello.<br>&gt;&gt;<br>&gt;&gt; When you need that some primitives switch in block you can use a group.<br>
<br>
</div>&gt;Groups are just a syntactic shortcut for ordering and colocation constraints.<br></blockquote><div><br></div><div>There is a manner of view this &quot;hyde&quot; contraints? </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div class=""><br>&gt;&gt;<br>&gt;&gt; There is a manner to get this when you have a clone or a master/slave involved?<br>&gt;&gt;<br>&gt;&gt; For example:<br>&gt;&gt;<br>&gt;&gt; Imagine a drbd disk (DR), a filesystem over ti (FS) and a service over all (SRV).<br>

&gt;&gt; The first one is a ms resource, and the other, primitives.<br>&gt;&gt;<br>&gt;&gt; The colocation rules are:<br>&gt;&gt; colocation fs_on_dr inf: FS DR:Master<br>&gt;&gt; colocation srv_on_fs inf: SRV FS<br>&gt;&gt;<br>

&gt;&gt; The order rules are:<br>&gt;&gt; order fs_after_dr inf: DR:promote FS:start<br>&gt;&gt; order srv_after_fs inf: FS:start SRV:start<br>&gt;&gt;<br>&gt;&gt; How can switch the entire cluster to other node if SRV fails? (like if all was in a group)<br>


<br>
</div>&gt;In what way does it not do so already with the above constraints?</blockquote><div><br></div><div>I want some kind of  &quot;circular constraint&quot; like if srv fails move the entire stack to other node.</div>

<div>If i add other constraint like:</div><div>colocation dr on srv inf: DR:Master SRV</div><div><br></div><div>It doesn&#39;t start.</div><div><br></div><div>Thanks!</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

 </blockquote><div><br></div></div></div></div>