I mistyped. Actually I want the service to be controlled by pacemaker, the service should run on both nodes (hot-standby, I achieved this using clones), service should be restarted if it fails on any node, IP should move if service on the same node fails. (and service should be restarted).<br>
<br><div class="gmail_quote">On Wed, Nov 24, 2010 at 11:02 PM, Devin Reade <span dir="ltr"><<a href="mailto:gdr@gno.org">gdr@gno.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
--On Tuesday, November 23, 2010 10:21:04 AM +0100 Marko Potocnik<br>
<div class="im"><<a href="mailto:marko.potocnik@gmail.com">marko.potocnik@gmail.com</a>> wrote:<br>
<br>
> I'm using ftp just for test. I want a service to run on both nodes and<br>
> only IP to move in case a service fails.<br>
> I don't want to stop / start service if node fails.<br>
<br>
</div>You might be able to use the behavior of sshd as a hint on how to<br>
proceed. In that case, if you have sshd running on both nodes and<br>
bound to the wildcard address, then you can have the floating IP<br>
move around under the control of the cluter, but leave sshd starting<br>
and stopping in the normal fashion (via rc scripts).<br>
<br>
To a client, it *looks* like the sshd service moves back and forth<br>
between the nodes, even though sshd itself is unmanaged.<br>
<br>
On the other hand, if sshd binds to a specific IP, this mechanism<br>
breaks.<br>
<br>
(In the particular case of sshd, this only works of course if both<br>
hosts have the same host key, otherwise the client will get warnings<br>
about inconsistent server keys.)<br>
<font color="#888888"><br>
Devin<br>
</font><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>
</div></div></blockquote></div><br>