[prev in list] [next in list] [prev in thread] [next in thread] 

List:       veritas-ha
Subject:    RE: [Veritas-ha] resource getting online on both nodes within clu
From:       Jim Senicka <jsenicka () veritas ! com>
Date:       2000-11-01 16:49:25
[Download RAW message or body]

The online should return it's own exit code.
It is the responsibility of the monitor to see
if online actually worked.

Have your script exit 0.


remember, VCS uses the exit code from the online
not as a determination of worked or not,
but rather how many seconds to wait before
launching monitor.


PS, I don't know if exit $? works anyway.
try running your online with sh -x and test.

in anycase, Online should return a known value to
agent, not what the actual app passes back.....




-----Original Message-----
From: Asim Zuberi [mailto:asim@colltech.com]
Sent: Wednesday, November 01, 2000 8:35 AM
To: Jim Senicka
Cc: veritas-ha@mailman.eng.auburn.edu
Subject: RE: [Veritas-ha] resource getting online on both nodes within
clu ster



Jim:

Thanks for your quick and accurate response. You're right that my monitor
script was
getting a return code of 110. Anyway, I fixed that, and now the resource
seems to be
working just fine. 

However, along the same lines, I have another question...

I need to start a process thru VCS. From the command line it works just
fine and once executed,
I do get return code "0", but for some reason thru the "online" script it
doesn't give
me return code "0", therefore VCS waits for the resource to come online
(whereas in reality
process does starts).

here is the process I want to start thru VCS. It does RC=0 (when gets
executed thru the command
line).

su - bbro -c \
"(/bin/sh /export/home/bbro/BB/bin/bbrun-vcs.sh
/export/home/bbro/BB/ext/bb-mercator.sh)&"



here is my online script
========================

ProcessOwner=$2
BBRunScript=$3
BBApplicationScript=$4

su - $ProcessOwner -c "(/bin/sh $BBRunScript $BBApplicationScript)&"
exit $?

here is my resource
===================

RESapps_bbmqm_proc ProcessOwner        global    bbro
RESapps_bbmqm_proc BBRunScript         global  
/export/home/bbro/BB/bin/bbrun-vcs.sh
RESapps_bbmqm_proc BBApplicationScript global  
/export/home/bbro/BB/ext/bb-mqm.sh


thanks for your help,

Asim;


_______________________________________________
Veritas-ha maillist  -  Veritas-ha@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-ha

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic