<div dir="ltr"><div>$cat /etc/redhat-release</div><div>CentOS release 6.4 (Final)</div><div>$rpm -qa | grep -i pcs</div><div>pcs-0.9.26-10.el6_4.1.noarch</div><div class="gmail_extra"><br></div><div class="gmail_extra">So look like I might have an older version of pcs ..  </div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><div>--</div><div>                         !!!!!</div><div>                       ( o o )</div><div> --------------oOO----(_)----OOo--------------</div>
<div>   Luc Paulin</div><div>   email: paulinster(at)<a href="http://gmail.com" target="_blank">gmail.com</a></div><div>   Skype: paulinster</div></div><div><br></div></div></div>
<br><br><div class="gmail_quote">2014/1/2 Chris Feist <span dir="ltr"><<a href="mailto:cfeist@redhat.com" target="_blank">cfeist@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On 01/02/2014 01:54 PM, Luc Paulin wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thanx for the syntax, however it does not seem to work.<br>
When I try it, it immediately return the help syntax menu, as if the command not<br>
suported.<br>
<br>
[root@fwcorp-01 (NEW FW HOST) ~]$pcs constraint colocation set vip_v253_178<br>
vip_v253_179 vip_v253<br>
</blockquote>
<br></div>
Which version of pcs are you using?  (colocation sets were included in 0.9.62)<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">
<br>
Usage: pcs constraint [constraints]...<br>
Manage resource constraints<br>
<br>
Commands:<br>
[...cut...]<br>
<br>
<br>
The only possible syntax look to be:<br>
pcs constraint colocation [show [all]]<br>
pcs constraint colocation add <source resource> <target resource> [score] [options]<br>
pcs constraint colocation rm <source resource> <target resource><br>
<br>
I found the following link that refer to the constraint colocation set<br>
(<a href="http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-sets-collocation.html" target="_blank">http://clusterlabs.org/doc/<u></u>en-US/Pacemaker/1.1/html/<u></u>Pacemaker_Explained/s-<u></u>resource-sets-collocation.html</a><u></u>)<br>

however there's no reference to the pcs command<br>
<br>
<br>
<br>
<br>
<br>
--<br>
                          !!!!!<br>
                        ( o o )<br>
  --------------oOO----(_)----<u></u>OOo--------------<br>
    Luc Paulin<br></div>
    email: paulinster(at)<a href="http://gmail.com" target="_blank">gmail.com</a> <<a href="http://gmail.com" target="_blank">http://gmail.com</a>><br>
    Skype: paulinster<br>
<br>
<br>
<br>
2014/1/2 Chris Feist <<a href="mailto:cfeist@redhat.com" target="_blank">cfeist@redhat.com</a> <mailto:<a href="mailto:cfeist@redhat.com" target="_blank">cfeist@redhat.com</a>>><div class="im"><br>
<br>
    On 01/02/2014 10:37 AM, Lars Marowsky-Bree wrote:<br>
<br>
        On 2014-01-02T11:22:01, Luc Paulin <<a href="mailto:paulinster@gmail.com" target="_blank">paulinster@gmail.com</a><br></div><div class="im">
        <mailto:<a href="mailto:paulinster@gmail.com" target="_blank">paulinster@gmail.com</a>>> wrote:<br>
<br>
            That make sense to use the colocation. So I guess that I should define a<br>
            "master" resource and tell each other resource that they should<br>
            colocated<br>
            on the same node at the "master" resource.<br>
<br>
<br>
        You could also use a resource set to achieve this, but I don't know the<br>
        pcs syntax for it.<br>
<br>
<br>
    You can create a resource set with pcs like this:<br>
    pcs constraint colocation set resourceA resourceB ...<br>
<br>
    Thanks!<br>
    Chris<br>
<br>
<br>
<br>
        Regards,<br>
              Lars<br>
<br>
<br>
<br></div>
    ______________________________<u></u>___________________<br>
    Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
    <mailto:<a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.<u></u>clusterlabs.org</a>><br>
    <a href="http://oss.clusterlabs.org/__mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/__<u></u>mailman/listinfo/pacemaker</a><div class="im"><br>
    <<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>mailman/listinfo/pacemaker</a>><br>
<br>
    Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br></div>
    Getting started: <a href="http://www.clusterlabs.org/__doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/__<u></u>doc/Cluster_from_Scratch.pdf</a><div class="im"><br>
    <<a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/<u></u>doc/Cluster_from_Scratch.pdf</a>><br>
    Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>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/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
</div></blockquote><div class=""><div class="h5">
<br>
<br>
______________________________<u></u>_________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org" target="_blank">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/<u></u>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/<u></u>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div></div>