I&#39;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&#39;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">&lt;<a href="mailto:misch@clusterbau.com">misch@clusterbau.com</a>&gt;</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>
&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<br>
&gt; service. What I am trying to achieve is that a floating IP would move to<br>
&gt; second node, if service fails on the first node. After that service should<br>
&gt; 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>
&gt;<br>
&gt;<br>
&gt;<br>
&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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt;<br>
&gt; 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>