<html><head></head><body><div class="ydp655475c5yahoo-style-wrap" style="font-family:courier new, courier, monaco, monospace, sans-serif;font-size:16px;"><div></div>
        <div dir="ltr" data-setdir="false">A resource group is a perfect candidate for a group and should work quite well.</div><div dir="ltr" data-setdir="false">Keep in mind that:</div><div dir="ltr" data-setdir="false">1. This systemd service must be disabled on both nodes as the cluster will controll it</div><div dir="ltr" data-setdir="false">2. Test in advance that the systemd service can start on each node</div><div dir="ltr" data-setdir="false">3. You can add run_arping=true for the IP resource in order to learn if there is an IP collision.</div><div dir="ltr" data-setdir="false">4. You can also consider adding default resource stickiness.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">What do you mean that the setup is not acting as expected?</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="ydp2602d4eayahoo_quoted_2233005822" class="ydp2602d4eayahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    В петък, 25 октомври 2019 г., 09:03:37 ч. Гринуич+3, jyd <471204256@qq.com> написа:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="ydp2602d4eayiv6653294560"><div>Hi:</div><div>    I want to user pacemaker to mange a resource named A,i want A only started on one node,</div><div>only when the node is down or A can not started in this node,the A resource will started on other nodes.</div><div>And config a virtual ip resource for A,the virtual ip only started on the node which A is runnind.</div><div>so how to config that?i trid like this but it didn't act as i expected.</div><div><br></div><div>------------------</div><div>pcs resource create A systemd:myservice   op  start  interval=0s  timeout=20s   monitor  interval=10s  timeout=20s   stop  interval=0s timeout=20s meta migration-threshold=3  failure-timeout=60<br><br>pcs resource create vip ocf:heartbeat:IPaddr2 ip=192.168.2.87 cidr_netmask=24 op monitor interval=20s  meta resource-stickiness=100<br><br>pcs constraint colocation add vip A INFINITY<br><br>pcs constraint order A then vip<br></div></div>_______________________________________________<br>Manage your subscription:<br><a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="nofollow" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br><br>ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="nofollow" target="_blank">https://www.clusterlabs.org/</a></div>
            </div>
        </div></body></html>