Hy Sufyan<br><br>Morning, I forgot nombrar the source that I 've followed to made a cluster<br>this is <a href="http://people.redhat.com/lhh/oracle-rhel5-notes-0.6/oracle-notes.html">http://people.redhat.com/lhh/oracle-rhel5-notes-0.6/oracle-notes.html</a><br>
Good Luck!<br>Regards,<br><br><div class="gmail_quote">2011/5/16 Robert Hayden <span dir="ltr"><<a href="mailto:rhayden.public@gmail.com">rhayden.public@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sat, May 14, 2011 at 2:21 PM, Sufyan Khan <<a href="mailto:sufyan.khan@its.ws">sufyan.khan@its.ws</a>> wrote:<br>
><br>
> Yes , you can see in attached script<br>
<br>
</div>I can very well be miss reading the script, but with the status<br>
function, you are returning a "0" or a "1" appropriately, but I am not<br>
sure that return value is the return value for the script_db.sh.<br>
Isn't that just the return value for the status function?  Meaning,<br>
you need to set the RETVAL variable in the status function to be then<br>
returned at the end of the bash script.  I don't code in bash much, so<br>
RETVAL may be a special variable.  I attempted to boil down the script<br>
to test.<br>
<br>
#!/bin/bash<br>
. /etc/rc.d/init.d/functions<br>
<br>
status() {<br>
return 1<br>
}<br>
<br>
case "$1" in<br>
status)<br>
   status<br>
   ;;<br>
*)<br>
   echo $" Not Applicable"<br>
   exit 1<br>
esac<br>
<br>
When I run the above, I see the "0" being returned.<br>
[root ~]# ./status.ksh<br>
 Not Applicable<br>
[root ~]# ./status.ksh status<br>
exiting script with<br>
[root ~]# echo $?<br>
0<br>
<br>
<br>
echo "exiting script with $RETVAL"<br>
exit $RETVAL<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
><br>
><br>
><br>
> From: <a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a> [mailto:<a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a>] On Behalf Of Parvez Shaikh<br>

> Sent: Saturday, May 14, 2011 6:37 PM<br>
> To: linux clustering<br>
> Subject: Re: [Linux-cluster] oracle DB is not failing over on killin PMON deamon<br>
><br>
><br>
><br>
> Hi Sufyan<br>
><br>
> Does your status function r! eturn 0 o down respectively (i.e. have you tested it works outside script_db.sh) when run as "root"?<br>
><br>
> On Thu, May 12, 2011 at 12:52 PM, Sufyan Khan <<a href="mailto:sufyan.khan@its.ws">sufyan.khan@its.ws</a>> wrote:<br>
><br>
> First of all thanks for you quick response.<br>
><br>
> Secondly please note:  the working "cluster.conf" file is attached here, the<br>
> previous file was not correct.<br>
> Yes the  orainfra is the user name.<br>
><br>
> Any othere clue please.<br>
><br>
> sufyan<br>
><br>
><br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a><br>
><br>
> [mailto:<a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a>] On Behalf Of Jankowski, Chris<br>
> Sent: Thursday, May 12, 2011 9:44 AM<br>
> To: linux clustering<br>
> Subject: Re: [! Linux-clu iling over on killin PMON<br>
><br>
> deamon<br>
><br>
> Sufyan,<br>
><br>
> What username does the instance of Oracle DB run as? Is this "orainfra" or<br>
> some other username?<br>
><br>
> The scripts assume a user named "orainfra".<br>
> If you use a different username then you need to modify the scripts<br>
> accordingly.<br>
><br>
> Regards,<br>
><br>
> Chris Jankowski<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a><br>
> [mailto:<a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a>] On Behalf Of Sufyan Khan<br>
> Sent: Thursday, 12 May 2011 16:27<br>
> To: 'linux clustering'<br>
> Subject: [Linux-cluster] oracle DB is not failing over on killin PMON deamon<br>
><br>
> Dear All<br>
><br>
> I need to setup HA cluster for mu oracle dabase.<br>
> I have setup two node cluster using "System-Config-Cluster .." on RHEL 5.5 I<br>
> created RG a  shared fil! e system shared IP and DB script to<br>
> monitor the DB.<br>
> My cluster starts perfectly and fail over on shutting down primary node,<br>
> also stopping shared IP  fails node to failover node.<br>
> But on kill PMON , or LSNR process the node does not fails and keep showing<br>
> the status services running on primary node.<br>
><br>
> I JUST NEED TO KNOW WHERE IS THE PROBLEM.<br>
><br>
> ATTACHED IS DB scripts and "cluster.conf" file.<br>
><br>
> Thanks in advance for help.<br>
><br>
> Sufyan<br>
><br>
><br>
><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>
><br>
> --<br>
> Linux-cluster mailing list<br>
> <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
> https://! www.redha nux-cluster<br>
><br>
><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>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Marcelo Guazzardo<br><a href="mailto:mguazzardo76@gmail.com" target="_blank">mguazzardo76@gmail.com</a><br><a href="http://mguazzardo.blogspot.com" target="_blank">http://mguazzardo.blogspot.com</a><br>
<br><br>