<span style="font-family: sans-serif;">Here is the example I had promised:</span><div id="yiv4681767983yMail_cursorElementTracker_1620730068266" style="overflow-wrap: break-word; font-family: sans-serif;"><br clear="none" style="overflow-wrap: break-word;"></div><div id="yiv4681767983yMail_cursorElementTracker_1620730068385" style="overflow-wrap: break-word; font-family: sans-serif;">pcs node attribute server1 city=LA</div><div id="yiv4681767983yMail_cursorElementTracker_1620730092714" style="overflow-wrap: break-word; font-family: sans-serif;">pcs node attribute server2 city=NY</div><div id="yiv4681767983yMail_cursorElementTracker_1620730107633" style="overflow-wrap: break-word; font-family: sans-serif;"><br clear="none" style="overflow-wrap: break-word;"></div><div id="yiv4681767983yMail_cursorElementTracker_1620730217312" style="overflow-wrap: break-word; font-family: sans-serif;"># Don't run on any node that is not in LA</div><div id="yiv4681767983yMail_cursorElementTracker_1620730162714" style="overflow-wrap: break-word; font-family: sans-serif;">pcs constraint location DummyRes1 rule score=-INFINITY city ne LA<br clear="none" style="overflow-wrap: break-word;"><br clear="none" style="overflow-wrap: break-word;">#Don't run on any node that is not in NY</div><div id="yiv4681767983yMail_cursorElementTracker_1620730245634" style="overflow-wrap: break-word; font-family: sans-serif;">pcs constraint location DummyRes2 rule score=-INFINITY city ne NY</div><div id="yiv4681767983yMail_cursorElementTracker_1620730289159" style="overflow-wrap: break-word; font-family: sans-serif;"><br clear="none" style="overflow-wrap: break-word;"></div><div id="yiv4681767983yMail_cursorElementTracker_1620730289332" style="overflow-wrap: break-word; font-family: sans-serif;">The idea is that if you add a node and you forget to specify the attribute with the name 'city' , DummyRes1 & DummyRes2 won't be started on it.</div><div id="yiv4681767983yMail_cursorElementTracker_1620730361321" style="overflow-wrap: break-word; font-family: sans-serif;"><br clear="none" style="overflow-wrap: break-word;"></div><div id="yiv4681767983yMail_cursorElementTracker_1620730361483" style="overflow-wrap: break-word; font-family: sans-serif;"><br clear="none" style="overflow-wrap: break-word;"></div><div id="yiv4681767983yMail_cursorElementTracker_1620730361667" style="overflow-wrap: break-word; font-family: sans-serif;">For resources that do not have a constraint based on the city -> they will run everywhere unless you specify a colocation constraint between the resources.</div><div id="yiv4681767983yMail_cursorElementTracker_1620730410065" style="overflow-wrap: break-word; font-family: sans-serif;"><br clear="none" style="overflow-wrap: break-word;"></div><div id="yiv4681767983yMail_cursorElementTracker_1620730410257" style="overflow-wrap: break-word; font-family: sans-serif;">Best Regards,</div><div id="yiv4681767983yMail_cursorElementTracker_1620730413472" style="overflow-wrap: break-word; font-family: sans-serif;">Strahil Nikolov</div><div id="yMail_cursorElementTracker_1620730552051" style="overflow-wrap: break-word; font-family: sans-serif;"><br></div> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Mon, May 10, 2021 at 17:53, Antony Stone</div><div><Antony.Stone@ha.open.source.it> wrote:</div> </div> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> On Monday 10 May 2021 at 16:49:07, Strahil Nikolov wrote:<br clear="none"><br clear="none">> You can use  node attributes to define in which  city is each host and then<br clear="none">> use a location constraint to control in which city to run/not run the<br clear="none">> resources. I will try to provide an example tomorrow.<br clear="none"><br clear="none">Thank you - that would be helpful.<br clear="none"><br clear="none">I did think that a location constraint could be a way to do this, but I wasn't <br clear="none">sure how to label three machines in one cluster as a "single location".<br clear="none"><br clear="none">Any pointers most welcome :)<br clear="none"><br clear="none">>   On Mon, May 10, 2021 at 15:52, Antony Stone wrote:<br clear="none">> >   On Monday 10 May 2021 at 14:41:37, Klaus Wenninger wrote:<br clear="none">> > On 5/10/21 2:32 PM, Antony Stone wrote:<br clear="none">> > > Hi.<br clear="none">> > > <br clear="none">> > > I'm using corosync 3.0.1 and pacemaker 2.0.1, currently in the<br clear="none">> > > following way:<br clear="none">> > > <br clear="none">> > > I have two separate clusters of three machines each, one in a data<br clear="none">> > > centre in city A, and one in a data centre in city B.<br clear="none">> > > <br clear="none">> > > Several of the resources being managed by these clusters are based on<br clear="none">> > > floating IP addresses, which are tied to the data centre, therefore the<br clear="none">> > > resources in city A can run on any of the three machines there (alfa,<br clear="none">> > > bravo and charlie), but cannot run on any machine in city B (delta,<br clear="none">> > > echo and foxtrot).<br clear="none">> > > <br clear="none">> > > I now have a need to create a couple of additional resources which can<br clear="none">> > > operate from anywhere, so I'm wondering if there is a way to configure<br clear="none">> > > corosync / pacemaker so that:<br clear="none">> > > <br clear="none">> > > Machines alfa, bravo, charlie live in city A and manage resources X, Y<br clear="none">> > > and Z between them.<br clear="none">> > > <br clear="none">> > > Machines delta, echo and foxtrot live in city B and manage resources U,<br clear="none">> > > V and W between them.<br clear="none">> > > <br clear="none">> > > All of alpha to foxtrot are also in a "super-cluster" managing<br clear="none">> > > resources P and Q, so these two can be running on any of the 6<br clear="none">> > > machines.<br clear="none">> > > <br clear="none">> > > <br clear="none">> > > I hope the question is clear.  Is there an answer :) ?<br clear="none">> > <br clear="none">> > Sounds like a use-case for <a shape="rect" href="https://github.com/ClusterLabs/booth" target="_blank">https://github.com/ClusterLabs/booth</a><br clear="none">> <br clear="none">> Interesting - hadn't come across that feature before.<br clear="none">> <br clear="none">> Thanks - I'll look into further documentation.<br clear="none">> <br clear="none">> If anyone else has any other suggestions I'm happy to see whether something<br clear="none">> else might work better for my setup.<br clear="none">> <br clear="none">> <br clear="none">> Antony.<br clear="none"><br clear="none">-- <br clear="none">90% of networking problems are routing problems.<br clear="none">9 of the remaining 10% are routing problems in the other direction.<br clear="none">The remaining 1% might be something else, but check the routing anyway.<div class="yqt4020313869" id="yqtfd16822"><br clear="none"><br clear="none">                                                   Please reply to the list;<br clear="none">                                                         please *don't* CC me.<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>