<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Arabic Transparent, Arial;font-size:13px"><div id="yui_3_16_0_ym19_1_1461034658864_2853"><span>Hi,</span></div><div id="yui_3_16_0_ym19_1_1461034658864_3387"><br><span></span></div><div id="yui_3_16_0_ym19_1_1461034658864_3388"><span>This is servers maps:</span></div><div id="yui_3_16_0_ym19_1_1461034658864_3389"><br><span></span></div><div id="yui_3_16_0_ym19_1_1461034658864_3391" dir="ltr"><span id="yui_3_16_0_ym19_1_1461034658864_3390">App 3---------> App 1    (Active)</span></div><div id="yui_3_16_0_ym19_1_1461034658864_3112" dir="ltr"><span><br></span></div><div id="yui_3_16_0_ym19_1_1461034658864_3042" dir="ltr"><span id="yui_3_16_0_ym19_1_1461034658864_3057">App 4 ---------> App 2   (Standby)<br></span></div><div id="yui_3_16_0_ym19_1_1461034658864_3040" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1461034658864_3113" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1461034658864_3114" dir="ltr">Now App1 and App2 are in a cluster with IP failover. <br></div><div id="yui_3_16_0_ym19_1_1461034658864_3130" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1461034658864_3380" dir="ltr">I need when IP failover will run and App2 will be Active node, service "X" on server App3 will be stop and App 4 will be Active node.</div><div id="yui_3_16_0_ym19_1_1461034658864_3381" dir="ltr">In the other words, App1 works only with App3 and App 2 works with App 4.</div><div id="yui_3_16_0_ym19_1_1461034658864_3382" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1461034658864_3383" dir="ltr">I have a web application on App1 and some services on App 3 (this is same for App2 and App 4)</div><div id="yui_3_16_0_ym19_1_1461034658864_3384" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1461034658864_3385" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1461034658864_3386" dir="ltr">Sorry for heavy description.<br><span></span></div><div id="yui_3_16_0_ym19_1_1461034658864_3041" dir="ltr"><span></span></div><div id="yui_3_16_0_ym19_1_1461034658864_2854" class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1461034658864_2775" class="yahoo_quoted">  <div id="yui_3_16_0_ym19_1_1461034658864_2774" style="font-family: Arabic Transparent, Arial; font-size: 13px;"> <div id="yui_3_16_0_ym19_1_1461034658864_2773" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1461034658864_2791" class="y_msg_container"> <font id="yui_3_16_0_ym19_1_1461034658864_2771" face="Arial" size="2"> <hr id="yui_3_16_0_ym19_1_1461034658864_2855" size="1"> <b><span style="font-weight:bold;">From:</span></b> Ken Gaillot <kgaillot@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> users@clusterlabs.org <br><b id="yui_3_16_0_ym19_1_1461034658864_2818"><span id="yui_3_16_0_ym19_1_1461034658864_2817" style="font-weight: bold;"></span></b></font><br><div id="yui_3_16_0_ym19_1_1461034658864_2793" dir="ltr">On 04/18/2016 02:34 AM, ‪H Yavari‬ ‪ wrote:<div class="yqt8456863094" id="yqtfd00189"><br clear="none">> Hi,<br clear="none">> <br clear="none">> I have 4 CentOS servers (App1,App2.App3 and App4). I created a cluster<br clear="none">> for App1 and App2 with a IP float and it works well.<br clear="none">> In our infrastructure App1 works only with App3 and App2 only works with<br clear="none">> App4. I mean we have 2 server sets (App1 and App3) , (App2 and App4).<br clear="none">> So I want when server app1 is down and app2 will Online node, App3 will<br clear="none">> offline too and App4 will Online and vice versa, I mean when App3 is<br clear="none">> down and App4 will Online, App1 will offline too.<br clear="none">> <br clear="none">> <br clear="none">> How can I do with pacemaker ? we have our self service on servers so how<br clear="none">> can I user Pacemaker for monitoring these services?<br clear="none">> <br clear="none">> Thanks for reply.<br clear="none">> <br clear="none">> Regards.<br clear="none">> H.Yavari</div><br clear="none"><br clear="none">I'm not sure I understand your requirements.<br clear="none"><br clear="none">There's no way to tell one node to leave the cluster when another node<br clear="none">is down, and it would be a bad idea if you could: the nodes could never<br clear="none">start up, because each would wait to see the other before starting; and<br clear="none">in your cluster, two nodes shutting down would make the cluster lose<br clear="none">quorum, so the other nodes would refuse to run any resources.<br clear="none"><br clear="none">However, it is usually possible to use constraints to enforce any<br clear="none">desired behavior. So even those the node might not leave the cluster,<br clear="none">you could make the cluster not place any resources on that node.<br clear="none"><br clear="none">Can you give more information about your resources and what nodes they<br clear="none">are allowed to run on? What makes App1 and App3 dependent on each other?<br clear="none"><br clear="none">_______________________________________________<br clear="none">Users mailing list: <a shape="rect" ymailto="mailto:Users@clusterlabs.org" href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br clear="none"><a shape="rect" href="http://clusterlabs.org/mailman/listinfo/users" target="_blank">http://clusterlabs.org/mailman/listinfo/users</a><br clear="none"><br clear="none">Project Home: <a shape="rect" href="http://www.clusterlabs.org/" target="_blank">http://www.clusterlabs.org</a><br clear="none">Getting started: <a shape="rect" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br clear="none">Bugs: <a shape="rect" href="http://bugs.clusterlabs.org/" target="_blank">http://bugs.clusterlabs.org</a><div class="yqt8456863094" id="yqtfd32414"><br clear="none"></div></div><br><br></div> </div> </div>  </div></div></body></html>