On 19 Nov 2013, at 6:00 am, Rob Thomas <xro...@gmail.com> wrote:

> On Mon, Nov 18, 2013 at 9:17 PM, Andrew Beekhof <and...@beekhof.net> wrote:
> 
>> my eyes! my eyes!
> 
> So... What's the -right- way to do it then? 8)


http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-sets-collocation.html

      <rsc_colocation id="pcs_rsc_colocation">
        <resource_set id="pcs_rsc_set">
          <resource_ref id="httpd"/>
          <resource_ref id="asterisk"/>
        </resource_set>
      </rsc_colocation>

is almost right, but misses score=INFINITY in the rsc_colocation tag.
You can do that with:

   pcs constraint colocation set httpd asterisk setoptions score=INFINITY

Note that this is very different to the command I asked you about:

   pcs constraint colocation add asterisk with httpd

Which creates something more like:

   <rsc_colocation id="pcs_rsc_colocation" rsc="asterisk" with-rsc="httpd" 
score="INFINITY"/>
   
See 
http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_mandatory_placement.html

> 
> --Rob
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to