Disregard the previous one... it needs 'pcs constraint colocation add' to work.<div id="yMail_cursorElementTracker_1617167356129"><br></div><div id="yMail_cursorElementTracker_1617167356314">Best Regards,</div><div id="yMail_cursorElementTracker_1617167359956">Strahil Nikolov<br> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Wed, Mar 31, 2021 at 8:08, Strahil Nikolov</div><div><hunter86_bg@yahoo.com> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div id="yiv0616901321"><div>I guess that feature was added in a later version (still on RHEL 8.2).<div id="yiv0616901321yMail_cursorElementTracker_1617167072101"><br clear="none"></div><div id="yiv0616901321yMail_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="yiv0616901321yMail_cursorElementTracker_1617167194499"><br clear="none"></div><div id="yiv0616901321yMail_cursorElementTracker_1617167194701">It seems that it doesn't like the syntax.</div><div id="yiv0616901321yMail_cursorElementTracker_1617167207775"><br clear="none"></div><div id="yiv0616901321yMail_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="yiv0616901321yMail_cursorElementTracker_1617167213195"><br clear="none"></div><div id="yiv0616901321yMail_cursorElementTracker_1617167213358">Best Regards,</div><div id="yiv0616901321yMail_cursorElementTracker_1617167217325">Strahil Nikolov<br clear="none"> <br clear="none"> <div class="yiv0616901321yqt1143634303" id="yiv0616901321yqt53643"><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="yiv0616901321yqt5954346218" id="yiv0616901321yqtfd44360"><br clear="none">_______________________________________________<br clear="none">Manage your subscription:<br clear="none"><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://lists.clusterlabs.org/mailman/listinfo/users">https://lists.clusterlabs.org/mailman/listinfo/users</a><br clear="none"><br clear="none">ClusterLabs home: <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://www.clusterlabs.org/">https://www.clusterlabs.org/</a><br clear="none"></div> </div> </blockquote></div></div></div></div> </div> </blockquote></div>