I know the cluster agent /usr/share/cluster/ip.sh cannot check the gateway<br><br>I resolved this problem with one script in my service group, so when the script fail the resource switch<br><br>========================================================<br>
 <script file="/usr/share/cluster/neighbour_RMAN.bash" name="neigh_gtw_rman"/><br>========================================================<br>script<br>========================================================<br>
#!/bin/bash<br><br><br><br>NEIGHBOUR=xx.xxx.xxx.x<br><br>LC_ALL=C<br>LANG=C<br>PATH=/bin:/sbin:/usr/bin:/usr/sbin<br>export LC_ALL LANG PATH<br><br>. $(dirname $0)/ocf-shellfuncs<br><br><br>case $1 in<br>start)<br>        exit $OCF_SUCCESS<br>
        ;;<br>stop)<br>        exit $OCF_SUCCESS<br>        ;;<br>status|monitor)<br>        /bin/ping -c 5 -w 6 -t 4 $NEIGHBOUR<br>        if [ $? -ne 0 ];<br>        then<br>                ocf_log warn "Damn, failed to ping $NEIGHBOUR"<br>
                exit $OCF_ERR_GENERIC<br>        fi<br><br>        ocf_log debug "Ping to $NEIGHBOUR succeeded :]"<br>        exit $OCF_SUCCESS<br>        ;;<br>restart)<br>        exit $OCF_SUCCESS<br>        ;;<br>
*)<br>        echo "usage: $0 [start|stop|status|restart|meta-data]"<br>        exit $OCF_ERR_ARGS<br>        ;;<br>esac<br>=====================================================<br><br><div class="gmail_quote">Il giorno 12 marzo 2012 12:26, Gianluca Cecchi <span dir="ltr"><<a href="mailto:gianluca.cecchi@gmail.com">gianluca.cecchi@gmail.com</a>></span> ha scritto:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 9 Mar 2012 17:29:06 +0100 emmanuel segura wrote:<br>
> i'll try to be more clear<br>
> i work on redhat cluster from 2 years and i seen this topic so much times<br>
<br>
Sorry, I didn't want to offend anyone.<br>
I have been working on rhcs (and other companions from other OSes) for<br>
many years too...<br>
<br>
> I think it's normal my services switch if have the public network  down on the node where<br>
> the resource group was running,But But But with ping as heuristic you get a node fence<br>
<br>
AFAIK rhcs is not able to switch service if the server looses its connectivity.<br>
Better: the /usr/share/cluster/ip.sh resource definition contains the<br>
parameter monitor_link, but it is only for dead link on the nic..<br>
And I have to manage rhcs...<br>
<br>
So in my opinion if you want to test gateway reachability (that means<br>
production lan where you deliver a cluster service) you are at the<br>
moment forced to use heuristic or write your own resource to add to<br>
the ones composing the service and so causing a service switch in case<br>
of problems with this custom resource...<br>
but I could be wrong in my assumption...<br>
<br>
Cheers,<br>
<br>
Gianluca<br>
<br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>esta es mi vida e me la vivo hasta que dios quiera<br>