- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Having trouble disabling monitoring of processess ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:11 AM
11-13-2001 08:11 AM
Having trouble disabling monitoring of processess for a backup
I added a Function called: no_monitor_processes
This gives us the desired result, but we wind up with multiple copies of ilogp_oracle.sh running (as I call itself back with the monitor option).
If you kill any of the ilogp_oracle.sh pids, the package fail overs. Is there an easy way to fork a child process, kill the parent, but leave the child running?
I've attached the script.
Any ideas are welcome.
Thanks...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:13 AM
11-13-2001 08:13 AM
Re: Having trouble disabling monitoring of processess for a backup
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 08:16 AM
11-13-2001 08:16 AM
Re: Having trouble disabling monitoring of processess for a backup
Yes, that is what I am doing now:
nohup ${0} monitor & # The script calls itself with the monitor option.
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 09:57 AM
11-13-2001 09:57 AM
Re: Having trouble disabling monitoring of processess for a backup
Instead of restarting the script with nohup, I just recreate the array that holds the oracle pids.
If anyone is interested, I attached the script.
Here's the parts I changed:
###############################################################################
# Function: monitor_processes
#
# Monitor the Oracle processes by making sure that all required processes are
# running.
##############################################################################
function monitor_processes
{
print "\n *** getting pids ***"
get_monitor_processes_pid
sleep ${MONITOR_INTERVAL}
while true
do
if [[ -f ${NOMON} ]]
then
no_monitor_processes
else
for i in ${MONITOR_PROCESSES_PID[@]}
do
kill -s 0 ${i} > /dev/null
if [[ $? != 0 ]]
then
print "\n\n"
ps -ef
print "\n *** ${i} has failed. Aborting Oracle. ***"
set -m
nohup ${0} fault & # The script calls itself with the fault option.
set +m
sleep 999999
fi
done
sleep ${MONITOR_INTERVAL}
fi
done
}
###############################################################################
# Function: no_monitor_processes
#
# Do NOT Monitor the Oracle processes
#
##############################################################################
function no_monitor_processes
{
while true
do
if [[ -f ${LOCKF} ]]
then
print "\n *** $LOCKF exists - backup is running? - monitoring disabled. ***"
sleep ${MONITOR_INTERVAL}
else
print "\n *** getting new pids ***"
get_monitor_processes_pid
sleep ${MONITOR_INTERVAL}
fi
done
}
###############################################################################
# Function: get_monitor_processes_pid
#
# get the pid's of all the processes we are using
#
##############################################################################
function get_monitor_processes_pid
{
typeset -i n=0
for i in ${MONITOR_PROCESSES[@]}
do
MONITOR_PROCESSES_PID[$n]=`ps -fu oracle | awk '/'${i}$'/ { print $2 }'` #JAGad06432
print "Monitored process = ${i}, pid = ${MONITOR_PROCESSES_PID[$n]}"
if [[ ${MONITOR_PROCESSES_PID[$n]} = "" ]]
then
print "\n\n"
ps -ef
print "\n *** ${i} has failed at startup time. Aborting Oracle. ***"
set -m
nohup ${0} fault & # The script calls itself with the fault option.
set +m
sleep 999999
fi
(( n = n + 1 ))
done
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 11:51 AM
11-13-2001 11:51 AM
Re: Having trouble disabling monitoring of processess for a backup
http://education.hp.com/datasheets/h4310s.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 02:02 PM
11-13-2001 02:02 PM
Re: Having trouble disabling monitoring of processess for a backup
I looked at the "Hands On MC/Service Gaurd" there was only a simple test case in it - put me in the right direction.
BTW:
I changed the Function: no_monitor_processes
so that it didn't get stuck in its own loop by changing the while true to while [[ -f${LOCKF} ]]
Rgds...Geoff
###############################################################################
# Function: no_monitor_processes
#
# Do NOT Monitor the Oracle processes
#
##############################################################################
function no_monitor_processes
{
while [[ -f ${LOCKF} ]]
do
print "\n *** $LOCKF exists - backup is running? - monitoring disabled. ***"
sleep ${MONITOR_INTERVAL}
done
print "\n *** getting new pids ***"
get_monitor_processes_pid
sleep ${MONITOR_INTERVAL}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 01:00 PM
11-14-2001 01:00 PM
Re: Having trouble disabling monitoring of processess for a backup
UXSGKBQA00000030
How to keep package file systems mounted after a package halt
-Stephen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 01:16 PM
11-14-2001 01:16 PM
Re: Having trouble disabling monitoring of processess for a backup
Just so you know, this is solved.
I did try to search for that document - couldn't find it....
The title may not be what I was looking for - we are not halting the package - we are disabling monitoring....
If you knoe where that document is online - then I wouldn't mine having a look....
Thanks...Geoff