<html><head></head><body><div class="ydpe4e83338yahoo-style-wrap" style="font-family:courier new, courier, monaco, monospace, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">Why not setting up a resource group? After all this setup is a perfect candidate for group and adding resources afterwards is a peace of cake.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Also, you can consider either MailTo or ClusterMon are also a good option for monitoring.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Best Regards,</div><div dir="ltr" data-setdir="false">Strahil Nikolov</div><div><br></div>
</div><div id="ydpb56f0b84yahoo_quoted_2593560621" class="ydpb56f0b84yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
В петък, 25 октомври 2019 г., 16:09:17 ч. Гринуич+3, Sherrard Burton <sb-clusterlabs@allafrica.com> написа:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr"><br clear="none"><br clear="none">On 10/25/19 2:03 AM, jyd wrote:<br clear="none">> Hi:<br clear="none">> I want to user pacemaker to mange a resource named A,i want A only <br clear="none">> started on one node,<br clear="none">> only when the node is down or A can not started in this node,the A <br clear="none">> resource will started on other nodes.<br clear="none">> And config a virtual ip resource for A,the virtual ip only started on <br clear="none">> the node which A is runnind.<br clear="none">> so how to config that?i trid like this but it didn't act as i expected.<br clear="none">> <br clear="none">> ------------------<br clear="none">> pcs resource create A systemd:myservice op start interval=0s <br clear="none">> timeout=20s monitor interval=10s timeout=20s stop interval=0s <br clear="none">> timeout=20s meta migration-threshold=3 failure-timeout=60<br clear="none">> <br clear="none">> pcs resource create vip ocf:heartbeat:IPaddr2 ip=192.168.2.87 <br clear="none">> cidr_netmask=24 op monitor interval=20s meta resource-stickiness=100<br clear="none">> <br clear="none">> pcs constraint colocation add vip A INFINITY<br clear="none">> <br clear="none">> pcs constraint order A then vip<br clear="none"><br clear="none">it looks like you are missing the colocation constraint that ties vip <br clear="none">and myservice together<br clear="none"><br clear="none"><a shape="rect" href="https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/_ensuring_resources_run_on_the_same_host.html" rel="nofollow" target="_blank">https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/_ensuring_resources_run_on_the_same_host.html</a><div class="ydpb56f0b84yqt6972162166" id="ydpb56f0b84yqtfd54026"><br clear="none">_______________________________________________<br clear="none">Manage your subscription:<br clear="none"><a shape="rect" href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="nofollow" 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/" rel="nofollow" target="_blank">https://www.clusterlabs.org/</a></div></div></div>
</div>
</div></body></html>