<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 21, 2023 at 12:24 PM fs3000 via Users <<a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">Hello all,</div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">I'm configuring a two node cluster. <span>Pacemaker 0.9.169</span> on Centos 7.</div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></div></blockquote><div>guess this is rather the pcs-version ...</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">How can i configure a specific service to run just on one node and avoid having it running on more than one node simultaneously. If i start the service on the other node, it keeps running, pacemaker does not kill it. I have googled and searched the docs, but can't find a solution. This is for systemd resources. Any ideas please?</div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">Example:</div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">node1# <span>pcs resource create httpd_service systemd:httpd op monitor interval=10s</span><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">node2# <span>systemctl start httpd</span><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">httpd keeps running on both nodes. Ideally, pacemaker should kill a second instance of that service.<br></div></blockquote><div><br></div><div>When you start pacemaker on a node it will check which resources are running there (called 'probe')</div><div>and thus if you had multiple instances of a primitive running (without a clone) pacemaker would</div><div>take care of that.</div><div>But you are starting the systemd-unit after pacemaker.</div><div>The checking for a running resource that isn't expected to be running isn't done periodically (at</div><div>least not per default and I don't know a way to achieve that from the top of my mind).</div><div>Resources that have been started by pacemaker (or found running legitimate on startup) are of course</div><div>monitored using that interval you have given.</div><div><br></div><div>Klaus</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)"><br></div><div style="font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0)">Thanks in advance for any tips you might have.<br></div>_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
</blockquote></div></div>