<div><br><br><div class="gmail_quote">On Wed, Nov 24, 2010 at 2:37 PM, Dejan Muhamedagic <span dir="ltr"><<a href="mailto:dejanmm@fastmail.fm">dejanmm@fastmail.fm</a>></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>
> Hi,<br>
><br>
><br>
><br>
> I am trying to configure a service (ftp for proof of concept) to run in an<br>
> active / active configuration. A floating IP is used to access this service.<br>
> What I am trying to achieve is that a floating IP would move to second node,<br>
> if service fails on the first node. After that service should be restarted.<br>
><br>
> I am able to achieve all but the restart of the service with the following<br>
> 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">
> node $id="34d5eba9-130f-4c64-9460-4a5310ac510c" <a href="http://jesenice.iskratel.si" target="_blank">jesenice.iskratel.si</a> \<br>
><br>
>         attributes standby="off"<br>
><br>
> node $id="5fdf23a5-61c4-4a57-80fb-c764954a5f14" <a href="http://olimpija.iskratel.si" target="_blank">olimpija.iskratel.si</a> \<br>
><br>
>         attributes standby="off"<br>
><br>
> *primitive res_ftp lsb:vsftpd \*<br>
><br>
> *        meta migration-threshold="1" \*<br>
><br>
> *        op monitor on-fail="restart" interval="10s"*<br>
><br>
> *primitive res_ip_ftp ocf:heartbeat:IPaddr2 \*<br>
><br>
> *        params ip="172.18.251.6" cidr_netmask="24" \*<br>
><br>
> *        op monitor interval="15s" timeout="30s"*<br>
><br>
> *clone c_ftp res_ftp \*<br>
><br>
> *        meta clone-max="2" clone-node-max="1" globally-unique="false"<br>
> target-role="Started"*<br>
><br>
> *colocation c_ip_on_ftp inf: res_ip_ftp c_ftp*<br>
><br>
> property $id="cib-bootstrap-options" \<br>
><br>
>         dc-version="1.0.8-9881a7350d6182bae9e8e557cf20a3cc5dac3ee7" \<br>
><br>
>         cluster-infrastructure="Heartbeat" \<br>
><br>
>         stonith-enabled="false" \<br>
><br>
>         default-resource-stickiness="200" \<br>
><br>
>         no-quorum-policy="ignore" \<br>
><br>
>         last-lrm-refresh="1290440895"<br>
><br>
><br>
><br>
> If I up the migration-threshold then service restarts n times, but floating<br>
> IP doesn’t move to another node. Do you have any idea how to achieve the<br>
> desired configuration?<br>
<br>
</div>Sorry, didn'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>
><br>
><br>
><br>
> Regards,<br>
><br>
><br>
> Marko<br>
><br>
> *<br>
<div><div></div><div class="h5">> *<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>
<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>