<div dir="ltr">&gt;&gt;&gt; On 19 Nov 2013, at 6:00 am, Rob Thomas &lt;<a href="mailto:xrobau@gmail.com">xrobau@gmail.com</a>&gt; wrote:<br>&gt;&gt;&gt;&gt; So... What&#39;s the -right- way to do it then? 8)<br>&gt;&gt;&gt;<br>
&gt;&gt;&gt;      &lt;rsc_colocation id=&quot;pcs_rsc_colocation&quot;&gt;<br>&gt;&gt;&gt;        &lt;resource_set id=&quot;pcs_rsc_set&quot;&gt;<br>&gt;&gt;&gt;          &lt;resource_ref id=&quot;httpd&quot;/&gt;<br>&gt;&gt;&gt;          &lt;resource_ref id=&quot;asterisk&quot;/&gt;<br>
&gt;&gt;&gt;        &lt;/resource_set&gt;<br>&gt;&gt;&gt;      &lt;/rsc_colocation&gt;<br><br>... <br><br>&gt;&gt; I&#39;ll have a try with the setoptions and see if that works. Thanks!<br><br>Without adding the ms resource, it won&#39;t fail the other service over completely.<br>
<br>This works (which is a LITTLE bit more pleasing to the eyes, hopefully! I even set the font to monospace!)<br><br><font face="courier new, monospace">&lt;rsc_colocation id=&quot;pcs_rsc_colocation&quot; score=&quot;INFINITY&quot;&gt;<br>
  &lt;resource_set id=&quot;pcs_rsc_set-1&quot;&gt;<br>    &lt;resource_ref id=&quot;httpd&quot;/&gt;<br>    &lt;resource_ref id=&quot;asterisk&quot;/&gt;</font><div><font face="courier new, monospace">  &lt;/resource_set&gt;<br>
  &lt;resource_set id=&quot;pcs_rsc_set-2&quot; role=&quot;Master&quot;&gt;<br>     &lt;resource_ref id=&quot;ms-asterisk&quot;/&gt;<br>     &lt;resource_ref id=&quot;ms-httpd&quot;/&gt;<br>  &lt;/resource_set&gt;<br>&lt;/rsc_colocation&gt;<br>
</font><br>I&#39;m still pretty sure you can&#39;t do that through pcs. </div><div><br></div><div>And the reason why (I believe) I need them, to go into a bit more depth - (sorry for everyone else who&#39;s getting bored with this incredibly arcane and in-depth discussion, that has degenerated into pasting XML snippets everywhere) here&#39;s the relevant associated constraints:</div>
<div><br></div><div><div>&lt;rsc_colocation id=&quot;c-1&quot; rsc=&quot;asterisk_fs&quot; score=&quot;INFINITY&quot; with-rsc=&quot;ms-asterisk&quot; with-rsc-role=&quot;Master&quot;/&gt;</div><div>&lt;rsc_order first=&quot;ms-asterisk&quot; first-action=&quot;promote&quot; id=&quot;o-1&quot; score=&quot;INFINITY&quot; then=&quot;asterisk_fs&quot; then-action=&quot;start&quot;/&gt;</div>
<div>&lt;rsc_colocation id=&quot;c-2&quot; rsc=&quot;httpd_fs&quot; score=&quot;INFINITY&quot; with-rsc=&quot;ms-httpd&quot; with-rsc-role=&quot;Master&quot;/&gt;<br></div><div>&lt;rsc_order first=&quot;ms-httpd&quot; first-action=&quot;promote&quot; id=&quot;o-2&quot; score=&quot;INFINITY&quot; then=&quot;httpd_fs&quot; then-action=&quot;start&quot;/&gt;</div>
<div><br></div></div><div>(id&#39;s changed to aid reading) </div><div><br></div><div>Without pcs_rsc_set-2 before failing:</div><div><br></div><div><div> Master/Slave Set: ms-asterisk [drbd_asterisk]</div><div>     Masters: [ freepbx-a ]</div>
<div>     Slaves: [ freepbx-b ]</div></div><div> Master/Slave Set: ms-httpd [drbd_httpd]<br></div><div><div>     Masters: [ freepbx-a ]</div><div>     Slaves: [ freepbx-b ]</div></div><div><div> Resource Group: httpd</div>
<div>     httpd_fs   (ocf::heartbeat:Filesystem):    Started freepbx-a</div><div>     httpd_ip   (ocf::heartbeat:IPaddr2):       Started freepbx-a</div><div>     httpd_service      (ocf::heartbeat:apache):        Started freepbx-a</div>
<div><div> Resource Group: asterisk</div><div>     asterisk_fs        (ocf::heartbeat:Filesystem):    Started freepbx-a</div><div>     asterisk_ip        (ocf::heartbeat:IPaddr2):       Started freepbx-a</div><div>     asterisk_service   (ocf::heartbeat:freepbx):       Started freepbx-a</div>
<div>     isymphony_service  (lsb:iSymphonyServer):  Started freepbx-a</div></div><div><br></div><div>AFTER failing:</div><div><br></div><div><div> Master/Slave Set: ms-asterisk [drbd_asterisk]</div><div>     Masters: [ freepbx-a ]  &lt;---------- THIS IS WRONG</div>
<div>     Slaves: [ freepbx-b ]</div></div><div><div> Master/Slave Set: ms-httpd [drbd_httpd]</div><div>     Masters: [ freepbx-b ]</div><div>     Slaves: [ freepbx-a ]</div></div><div><div> Resource Group: asterisk</div>
<div>     asterisk_fs        (ocf::heartbeat:Filesystem):    Stopped</div><div>     asterisk_ip        (ocf::heartbeat:IPaddr2):       Stopped</div><div>     asterisk_service   (ocf::heartbeat:freepbx):       Stopped</div>
<div>     isymphony_service  (lsb:iSymphonyServer):  Stopped</div><div> Resource Group: httpd</div><div>     httpd_fs   (ocf::heartbeat:Filesystem):    Started freepbx-b</div><div>     httpd_ip   (ocf::heartbeat:IPaddr2):       Started freepbx-b</div>
<div>     httpd_service      (ocf::heartbeat:apache):        Started freepbx-b</div></div><div><br></div><div>The asterisk group isn&#39;t starting because - obviously - it&#39;s not the master for ms-asterisk.  So the constraint worked, BUT, because I don&#39;t have the resource in there, I can&#39;t tell it to shut down.</div>
<div><br></div><div>My other idea was having the ms- ordering start the group, but that doesn&#39;t work either. </div><div><br></div></div><div>--Rob</div></div>