I guess that feature was added in a later version (still on RHEL 8.2).<div id="yMail_cursorElementTracker_1617167072101"><br></div><div id="yMail_cursorElementTracker_1617167072273">pcs constraint colocation bkp2 with Master rsc_SAPHana_<SID>_HDB<inst. number> score=INFINITY node-attribute=hana_<sid>_site (or using any other attribute) brings 'pcs constraint help' output.</div><div id="yMail_cursorElementTracker_1617167194499"><br></div><div id="yMail_cursorElementTracker_1617167194701">It seems that it doesn't like the syntax.</div><div id="yMail_cursorElementTracker_1617167207775"><br></div><div id="yMail_cursorElementTracker_1617167208019">Maybe someone can share the 'pcs cluster edit' xml section, so I can try to push it directly into the cib ?</div><div id="yMail_cursorElementTracker_1617167213195"><br></div><div id="yMail_cursorElementTracker_1617167213358">Best Regards,</div><div id="yMail_cursorElementTracker_1617167217325">Strahil Nikolov<br> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Tue, Mar 30, 2021 at 19:45, Andrei Borzenkov</div><div><arvidjaar@gmail.com> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> On 30.03.2021 17:42, Ken Gaillot wrote:<br clear="none">>><br clear="none">>> Colocation does not work, this will force everything on the same node<br clear="none">>> where master is active and that is not what we want.<br clear="none">> <br clear="none">> Nope, you can colocate by node attribute instead of node.<br clear="none">> <br clear="none">> Colocating by node attribute says "put this resource on a node that has<br clear="none">> the same value of this node attribute as the node running this other<br clear="none">> resource". So if site is the node attribute, colocating A with B by<br clear="none">> site means that A has to run on a node that has the same value for site<br clear="none">> as wherever B is.<br clear="none">> <br clear="none">> Simple colocation by node is actually implemented internally as<br clear="none">> colocation by node attribute where the attribute is the node name.<br clear="none">> <br clear="none"><br clear="none">Oh! Thank you!<br clear="none"><br clear="none">Indeed, this is exactly what OP needs. No custom scripting is needed.<br clear="none"><br clear="none">Thank you for your patience.<div class="yqt5954346218" id="yqtfd44360"><br clear="none">_______________________________________________<br clear="none">Manage your subscription:<br clear="none"><a shape="rect" href="https://lists.clusterlabs.org/mailman/listinfo/users" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br clear="none"><br clear="none">ClusterLabs home: <a shape="rect" href="https://www.clusterlabs.org/" target="_blank">https://www.clusterlabs.org/</a><br clear="none"></div> </div> </blockquote></div>