<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>I am
using RHEL4 with CS4 to manage a 2 node cluster with
services like</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>HTTPD,
MYSQLD, etc...</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>I have
successfully set up CS4 using IPMI as a fence device and I
am</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2>creating various scripts to control the different resources (as known
</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>you
can't use those in /etc/init.d due to failures in stop-after-stop
scenarios).</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>As a
test I have created script that always return error on status, and set up a
service</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>with
the failing script as the single resource.</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2>------- snip ------</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2>#!/bin/bash</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>case
"$1" in<BR>   
start)<BR>        exit
0<BR>        ;;<BR>   
stop)<BR>        exit
0<BR>        ;;<BR>   
status)<BR>        exit
1<BR>        ;;<BR>esac<BR>------ snip
-------</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>Now my
cluster keeps restarting that resource or, if I change the
recover</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2>policy, keeps relocating it forever. If I choose disable as recover
policy,</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>the
reource get disabled whitout even trying to restart/recover.</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>Is
this the expected behaviour?</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>Is
there a way to configure CS4 to first try to restart locally,
then</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>to try
relocate and finally disable the service?</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff size=2>Marco
Lusini</FONT></SPAN></DIV>
<DIV><SPAN class=234483110-29032006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV></SPAN></DIV></BODY></HTML>

<table><tr><td bgcolor=#ffffff><font color=#000000>_______________________________________________________<br>
Messaggio analizzato e protetto da tecnologia antivirus<br>
<br>
Servizio erogato dal sistema informativo della <br>
Presidenza del Consiglio dei Ministri<br>
</font></td></tr></table>