<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 5:05 PM, Igor Cicimov <span dir="ltr">&lt;<a href="mailto:icicimov@gmail.com" target="_blank">icicimov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr"><span class=""><br>
On 27/02/2016 4:10 pm, &quot;Eric Robinson&quot; &lt;<a href="mailto:eric.robinson@psmnv.com" target="_blank">eric.robinson@psmnv.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Can you please try following constraints instead the ones you have:<br>
&gt;<br>
&gt; &gt; group g_drbd0 p_lvm_drbd0 p_fs_clust17 p_vip_clust17<br>
&gt; &gt; group g_drbd1 p_lvm_drbd1 p_fs_clust18 p_vip_clust18<br>
&gt; &gt; colocation c_clust17 inf: g_drbd0 ms_drbd0:Master<br>
&gt; &gt; colocation c_clust18 inf: g_drbd1 ms_drbd1:Master<br>
&gt; &gt; order o_clust17 inf: ms_drbd0:promote g_drbd0:start<br>
&gt; &gt; order o_clust18 inf: ms_drbd1:promote g_drbd1:start<br>
&gt;<br>
&gt; Those constraints seem to be working great. I can move the g_drbd0 and g_drbd1 resource groups freely back and forth between the nodes. However, this creates a problem for me because there will be a number of mysql resources on the servers (p_mysql_001, p_mysql_002, p_mysql_003, p_mysql_004, etc.).  In the past when I used resource groups, stopping any one mysql resource stopped all of the others, and removing one mysql resource from the group did the same thing. That&#39;s why I stopped using groups.<br>
&gt;<br></span>
That&#39;s exactly what this configuration gives you right? Each group is collocated with one and only one drbd device on the master node.</p></blockquote><div>Regarding starting/stopping of the resources tied up together in the same group. I guess after adding MySQL the user case would be:<br><br><span class="">group g_drbd0 p_lvm_drbd0 p_fs_clust17 p_vip_clust17 </span><span class="">p_mysql_001</span><br><br>Well all resources in the group are dedicated to the mysql resource so stopping them together with mysql should not be of any issue at all. Apart from the fact they have to be started again, the ip the lvm and the fs, together with mysql which takes a second to get executed in case you are concern about any latency. What&#39;s the purpose of those resources running without their top mysql resource anyway?<br><br>However, if the mysql VIP in the group is being used by something else on the server then yes you might have a problem with this. But as long as you keep everything grouped and isolated I don&#39;t see what might go wrong. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p dir="ltr"><span class="">&gt; I don&#39;t mind going back to using groups for the p_lvm, p_fs and p_vip resources, but the end result must be this: each of the mysql resources should be dependent on one of the g_drbd resource groups, but  independent of all the other mysql resources. What syntax should I use for that?<br>
&gt;<br>
&gt; And what was wrong with my constraints? <br></span>
You had left the Filesystem out of the picture. If you look carefully you will see that really the only difference between mine and yours constraints, apart from groups, is the filesystem primitives.</p><div class=""><div class="h5">
<p dir="ltr">Those work on my other clusters (but none of the others have LVM on drbd).<br>
&gt;<br>
&gt; --Eric<br>
</p>
</div></div></blockquote></div><br></div></div>