public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Lon Hohberger <lon@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: STABLE3 - rgmanager: Fix up multiple Oracle instance handling
Date: Thu, 21 May 2009 14:54:00 -0000 [thread overview]
Message-ID: <20090521145341.3439912022C@lists.fedorahosted.org> (raw)
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6c667e94643927342df40e90d0100a07c95286dd
Commit: 6c667e94643927342df40e90d0100a07c95286dd
Parent: 0427055c4f10c37daed21dc56ea499b18f016cc5
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Thu May 21 09:37:15 2009 -0400
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu May 21 10:53:15 2009 -0400
rgmanager: Fix up multiple Oracle instance handling
Note that you can only have one instance start/manage
Enterprise Manager. You must set all other instances
to "base" type (see metadata).
Resolvs: 471226
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/src/resources/oracledb.sh.in | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/rgmanager/src/resources/oracledb.sh.in b/rgmanager/src/resources/oracledb.sh.in
index b702052..6bf382d 100644
--- a/rgmanager/src/resources/oracledb.sh.in
+++ b/rgmanager/src/resources/oracledb.sh.in
@@ -217,8 +217,8 @@ meta_data()
<action name="status" timeout="10"/>
<action name="monitor" timeout="10"/>
- <action name="status" depth="10" timeout="30" interval="5m"/>
- <action name="monitor" depth="10" timeout="30" interval="5m"/>
+ <action name="status" depth="10" timeout="30" interval="30"/>
+ <action name="monitor" depth="10" timeout="30" interval="30"/>
<action name="meta-data" timeout="5"/>
<action name="validate-all" timeout="5"/>
@@ -294,6 +294,7 @@ start_db()
grep -q "failure" $logfile
if [ $? -eq 0 ]; then
echo "ORACLE_SID Incorrectly set?"
+ rm -f $tmpfile
echo "See $logfile for more information."
return 1
fi
@@ -356,7 +357,8 @@ force_cleanup()
declare pids
declare pid
- pids=`ps ax | grep $ORACLE_HOME | grep -v grep | awk '{print $1}'`
+ # Patch from Shane Bradley to fix 471266
+ pids=`ps ax | grep $ORACLE_HOME | grep "ora_.*_${ORACLE_SID}" | grep -v grep | awk '{print $1}'`
initlog -n $SCRIPT -s "<err> Not all Oracle processes exited cleanly, killing"
@@ -804,7 +806,6 @@ status_oracle()
{
declare -i subsys_lock=1
declare -i last
- declare -i depth=$1
#
# Check for lock file. Crude and rudimentary, but it works
reply other threads:[~2009-05-21 14:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090521145341.3439912022C@lists.fedorahosted.org \
--to=lon@fedoraproject.org \
--cc=cluster-cvs-relay@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).