<div><br><br><div class="gmail_quote">On Wed, Nov 24, 2010 at 2:37 PM, Dejan Muhamedagic <span dir="ltr">&lt;<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class="im"><br>
On Tue, Nov 23, 2010 at 09:10:58AM +0100, Marko Potocnik wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I am trying to configure a service (ftp for proof of concept) to run in an<br>
&gt; active / active configuration. A floating IP is used to access this service.<br>
&gt; What I am trying to achieve is that a floating IP would move to second node,<br>
&gt; if service fails on the first node. After that service should be restarted.<br>
&gt;<br>
&gt; I am able to achieve all but the restart of the service with the following<br>
&gt; configuration:<br>
<br>
</div>You want some kind of hot-standby service? Why would you want to<br>
restart it then?<br>
<div class="im"><br></div></blockquote><div class="gmail_quote"><br></div>Yes, I want a hot-standby service, so that the failover time is as low as possible (just move the IP).</div><div class="gmail_quote">I would like to restart it so that the automatic failback is possible.<br>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
&gt; node $id=&quot;34d5eba9-130f-4c64-9460-4a5310ac510c&quot; <a href="http://jesenice.iskratel.si" target="_blank">jesenice.iskratel.si</a> \<br>
&gt;<br>
&gt;         attributes standby=&quot;off&quot;<br>
&gt;<br>
&gt; node $id=&quot;5fdf23a5-61c4-4a57-80fb-c764954a5f14&quot; <a href="http://olimpija.iskratel.si" target="_blank">olimpija.iskratel.si</a> \<br>
&gt;<br>
&gt;         attributes standby=&quot;off&quot;<br>
&gt;<br>
&gt; *primitive res_ftp lsb:vsftpd \*<br>
&gt;<br>
&gt; *        meta migration-threshold=&quot;1&quot; \*<br>
&gt;<br>
&gt; *        op monitor on-fail=&quot;restart&quot; interval=&quot;10s&quot;*<br>
&gt;<br>
&gt; *primitive res_ip_ftp ocf:heartbeat:IPaddr2 \*<br>
&gt;<br>
&gt; *        params ip=&quot;172.18.251.6&quot; cidr_netmask=&quot;24&quot; \*<br>
&gt;<br>
&gt; *        op monitor interval=&quot;15s&quot; timeout=&quot;30s&quot;*<br>
&gt;<br>
&gt; *clone c_ftp res_ftp \*<br>
&gt;<br>
&gt; *        meta clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; globally-unique=&quot;false&quot;<br>
&gt; target-role=&quot;Started&quot;*<br>
&gt;<br>
&gt; *colocation c_ip_on_ftp inf: res_ip_ftp c_ftp*<br>
&gt;<br>
&gt; property $id=&quot;cib-bootstrap-options&quot; \<br>
&gt;<br>
&gt;         dc-version=&quot;1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7&quot; \<br>
&gt;<br>
&gt;         cluster-infrastructure=&quot;Heartbeat&quot; \<br>
&gt;<br>
&gt;         stonith-enabled=&quot;false&quot; \<br>
&gt;<br>
&gt;         default-resource-stickiness=&quot;200&quot; \<br>
&gt;<br>
&gt;         no-quorum-policy=&quot;ignore&quot; \<br>
&gt;<br>
&gt;         last-lrm-refresh=&quot;1290440895&quot;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; If I up the migration-threshold then service restarts n times, but floating<br>
&gt; IP doesn’t move to another node. Do you have any idea how to achieve the<br>
&gt; desired configuration?<br>
<br>
</div>Sorry, didn&#39;t quite understand what you want to achieve. Can you<br>
please rephrase.<br></blockquote><div><br></div><div>I would like the IP to move and ftp service to restart in case of service failure. But I can only get IP to move and service stays stoped.</div><div>If I up the migration-threshold then service restarts and IP does not move until migration-threshold is reached.</div>
<div>I am guessing this could maybe be achieved with some location rule ?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thanks,<br>
<br>
Dejan<br>
<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt;<br>
&gt; Marko<br>
&gt;<br>
&gt; *<br>
<div><div></div><div class="h5">&gt; *<br>
<br>
&gt; _______________________________________________<br>
&gt; Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
&gt; <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
&gt;<br>
&gt; Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
&gt; Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
&gt; Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker" target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><br>
</div></div></blockquote></div><br></div>