I'm using ftp just for test. I want a service to run on both nodes and only IP to move in case a service fails.<div>I don't want to stop / start service if node fails.</div><div><br></div><div><br><br><div class="gmail_quote">
On Tue, Nov 23, 2010 at 9:55 AM, Michael Schwartzkopff <span dir="ltr"><<a href="mailto:misch@clusterbau.com">misch@clusterbau.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Tuesday 23 November 2010 09:10:58 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<br>
> service. What I am trying to achieve is that a floating IP would move to<br>
> second node, if service fails on the first node. After that service should<br>
> be restarted.<br>
><br>
> I am able to achieve all but the restart of the service with the following<br>
> configuration:<br>
><br>
><br>
><br>
> 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>
><br>
><br>
> Regards,<br>
><br>
><br>
> Marko<br>
<br>
</div></div>Why do you clone the FTP server? Use a simple FTP server resource and make a<br>
group from IP and FTP.<br>
<font color="#888888"><br>
--<br>
Dr. Michael Schwartzkopff<br>
Guardinistr. 63<br>
81375 München<br>
<br>
Tel: (0163) 172 50 98<br>
</font><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></blockquote></div><br></div>