<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_1461124192763_2965"><span>Hi,</span></div><div id="yui_3_16_0_ym19_1_1461124192763_3075"><br><span></span></div><div id="yui_3_16_0_ym19_1_1461124192763_3074" dir="ltr"><span id="yui_3_16_0_ym19_1_1461124192763_3073">thanks for reply. Yes this is technical limitation because this makes many side effects.</span></div><div id="yui_3_16_0_ym19_1_1461124192763_3089" dir="ltr"><br><span id="yui_3_16_0_ym19_1_1461124192763_3073"></span></div><div id="yui_3_16_0_ym19_1_1461124192763_3193" dir="ltr"><span id="yui_3_16_0_ym19_1_1461124192763_3073">So do you think we can run a script on cluster (App1 and App2) then every time when the moving is happening, script run and stop service X on App 3 or&nbsp; App 4?</span></div><div id="yui_3_16_0_ym19_1_1461124192763_2966" class="qtdSeparateBR"><br><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1461124192763_2859" class="yahoo_quoted">  <div id="yui_3_16_0_ym19_1_1461124192763_2858" style="font-family: Arabic Transparent, Arial; font-size: 13px;"> <div id="yui_3_16_0_ym19_1_1461124192763_2857" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1461124192763_2967" class="y_msg_container"> <font id="yui_3_16_0_ym19_1_1461124192763_2860" face="Arial" size="2"> <hr id="yui_3_16_0_ym19_1_1461124192763_3043" size="1"> <b><span style="font-weight:bold;">From:</span></b> Ken Gaillot &lt;kgaillot@redhat.com&gt;<br> <b id="yui_3_16_0_ym19_1_1461124192763_2971"><span id="yui_3_16_0_ym19_1_1461124192763_2970" style="font-weight: bold;">To:</span></b> ‪H Yavari‬ ‪ &lt;hyavari@rocketmail.com&gt;; Cluster Labs - All topics related to open-source clustering welcomed &lt;users@clusterlabs.org&gt; <br><b id="yui_3_16_0_ym19_1_1461124192763_2969"><span id="yui_3_16_0_ym19_1_1461124192763_2968" style="font-weight: bold;"></span></b></font><br><div id="yui_3_16_0_ym19_1_1461124192763_2972" dir="ltr">On 04/18/2016 10:05 PM, ‪H Yavari‬ ‪ wrote:<br clear="none">&gt; Hi,<br clear="none">&gt; <br clear="none">&gt; This is servers maps:<br clear="none">&gt; <br clear="none">&gt; App 3---------&gt; App 1&nbsp; &nbsp; (Active)<br clear="none">&gt; <br clear="none">&gt; App 4 ---------&gt; App 2&nbsp;  (Standby)<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; Now App1 and App2 are in a cluster with IP failover.<br clear="none">&gt; <br clear="none">&gt; I need when IP failover will run and App2 will be Active node, service<br clear="none">&gt; "X" on server App3 will be stop and App 4 will be Active node.<br clear="none">&gt; In the other words, App1 works only with App3 and App 2 works with App 4.<br clear="none">&gt; <br clear="none">&gt; I have a web application on App1 and some services on App 3 (this is<br clear="none">&gt; same for App2 and App 4)<br clear="none"><br clear="none">This is a difficult situation to model. In particular, you could only<br clear="none">have a dependency one way -- so if we could get App 3 to fail over if<br clear="none">App 1 fails, we couldn't model the other direction (App 1 failing over<br clear="none">if App 3 fails). If each is dependent on the other, there's no way to<br clear="none">start one first.<br clear="none"><br clear="none">Is there a technical reason App 3 can work only with App 1?<br clear="none"><br clear="none">Is it possible for service "X" to stay running on both App 3 and App 4<br clear="none">all the time? If so, this becomes easier.<div class="yqt1900920878" id="yqtfd34643"><br clear="none"><br clear="none">&gt; <br clear="none">&gt; Sorry for heavy description.<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; ------------------------------------------------------------------------<br clear="none">&gt; *From:* Ken Gaillot &lt;<a shape="rect" ymailto="mailto:kgaillot@redhat.com" href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>&gt;<br clear="none">&gt; *To:* <a shape="rect" ymailto="mailto:users@clusterlabs.org" href="mailto:users@clusterlabs.org">users@clusterlabs.org</a><br clear="none">&gt; **<br clear="none">&gt; On 04/18/2016 02:34 AM, ‪H Yavari‬ ‪ wrote:<br clear="none">&gt; <br clear="none">&gt;&gt; Hi,<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; I have 4 CentOS servers (App1,App2.App3 and App4). I created a cluster<br clear="none">&gt;&gt; for App1 and App2 with a IP float and it works well.<br clear="none">&gt;&gt; In our infrastructure App1 works only with App3 and App2 only works with<br clear="none">&gt;&gt; App4. I mean we have 2 server sets (App1 and App3) , (App2 and App4).<br clear="none">&gt;&gt; So I want when server app1 is down and app2 will Online node, App3 will<br clear="none">&gt;&gt; offline too and App4 will Online and vice versa, I mean when App3 is<br clear="none">&gt;&gt; down and App4 will Online, App1 will offline too.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; How can I do with pacemaker ? we have our self service on servers so how<br clear="none">&gt;&gt; can I user Pacemaker for monitoring these services?<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; Thanks for reply.<br clear="none">&gt;&gt;<br clear="none">&gt;&gt; Regards.<br clear="none">&gt;&gt; H.Yavari<br clear="none">&gt; <br clear="none">&gt; <br clear="none">&gt; I'm not sure I understand your requirements.<br clear="none">&gt; <br clear="none">&gt; There's no way to tell one node to leave the cluster when another node<br clear="none">&gt; is down, and it would be a bad idea if you could: the nodes could never<br clear="none">&gt; start up, because each would wait to see the other before starting; and<br clear="none">&gt; in your cluster, two nodes shutting down would make the cluster lose<br clear="none">&gt; quorum, so the other nodes would refuse to run any resources.<br clear="none">&gt; <br clear="none">&gt; However, it is usually possible to use constraints to enforce any<br clear="none">&gt; desired behavior. So even those the node might not leave the cluster,<br clear="none">&gt; you could make the cluster not place any resources on that node.<br clear="none">&gt; <br clear="none">&gt; Can you give more information about your resources and what nodes they<br clear="none">&gt; are allowed to run on? What makes App1 and App3 dependent on each other?<br clear="none"><br clear="none"></div></div><br><br></div> </div> </div>  </div></div></body></html>