If something moves in/out in a non-expected way, always check:<div id="yMail_cursorElementTracker_1620902514828">pcs constraint location --full | grep cli</div><div id="yMail_cursorElementTracker_1620902529332"><br></div><div id="yMail_cursorElementTracker_1620902529530">Best Regards,</div><div id="yMail_cursorElementTracker_1620902533160">Strahil Nikolov<br> <br> <blockquote style="margin: 0 0 20px 0;"> <div style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>On Thu, May 13, 2021 at 10: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 Wed, May 12, 2021 at 8:15 PM Alastair Basden <<a shape="rect" ymailto="mailto:a.g.basden@durham.ac.uk" href="mailto:a.g.basden@durham.ac.uk">a.g.basden@durham.ac.uk</a>> wrote:<br clear="none">><br clear="none">><br clear="none">> > On 12.05.2021 20:02, Alastair Basden wrote:<br clear="none">> >>>> Oddly enough, if I:<br clear="none">> >>>> pcs resource move resourcedrbdClone node2<br clear="none">> >>>> it moves it to node 2 okay.<br clear="none">> >>>><br clear="none">> >>>> But then if I<br clear="none">> >>>> pcs resource clear resourcedrbdClone<br clear="none">> >>>> it moves it back to node1.<br clear="none">> >>>><br clear="none">> >>>> Which is odd, given its score for role Master is higher on node 2.<br clear="none">> >>>><br clear="none">> >>><br clear="none">> >>> How do you know it?<br clear="none">> >> Because I have set score=100 for node2, and score=50 for node1.<br clear="none">> >><br clear="none">> ><br clear="none">> > I told you several time that resource agent sets promotion scores. If<br clear="none">> > you want to see actual scores, use crm_simulate -Ls.<br clear="none">><br clear="none">> Thanks, yes, but I was talking about MY score.<br clear="none"><br clear="none">Pacemaker combines scores from multiple sources and it is the final<br clear="none">total that is used for deciding resource placement.<br clear="none"><br clear="none">>  I have set a higher score<br clear="none">> for the node where I want it, and therefore, I would expect it to move<br clear="none">> back there (or at least, stay there), not move away from it!<br clear="none">><br clear="none">> The fact that it isn't presumably means that something is wrong in the<br clear="none">> configuration that I posted.  The question is, what.  i.e. how does one<br clear="none">> specify a preferred node for the master of a master/slave clone.<br clear="none">><br clear="none">> Once I can work this out, it will all work correctly!<br clear="none">><br clear="none">> >>> Every transaction is saved in a file and you can replay it with<br clear="none">> >>> crm_simulate. Check logs for these file names.<br clear="none">> >><br clear="none">> >> Which logs should be checked?<br clear="none">> ><br clear="none">> > pacemaker logs.<br clear="none">> Thanks.  So:<br clear="none">> /var/log/pacemaker.log, which then suggests /var/log/cluster/corosync.log.<br clear="none">><br clear="none">> Thanks,<br clear="none">> Alastair.<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><div class="yqt9583110533" id="yqtfd76509"><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>