- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cheating MC/Service Guard
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
Forums
Discussions
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
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
09-16-2002 01:51 AM
09-16-2002 01:51 AM
Does anybody know a method to "cheat" MC/Service Guard not to start some Oracle processes? I need to test a new software and that implies to shutdown the database - but MC/ServiceGuard restarts it immediately. I don't want to halt the MC/SG cluster.
Thank you in advance,
ionut
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 01:59 AM
09-16-2002 01:59 AM
Re: cheating MC/Service Guard
Can't you just halt the package where the database resides in, in stead of halting the entire cluster ? Or are there multiple databases in one package ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:04 AM
09-16-2002 02:04 AM
Re: cheating MC/Service Guard
The oracle startup commands for SG are under /etc/cmcluster/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 02:48 AM
09-16-2002 02:48 AM
Re: cheating MC/Service Guard
"Cheat" the MC/SG so that it does not restart Oracle processes:
as root user on the database server, enter:
#touch /tmp/ora_smon_omc_cheating
#tail -f /tmp/ora_smon_omc_cheating &
...that seems weird for me - I simply don't understand how can I cheat the MC/SG with that..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:20 AM
09-16-2002 04:20 AM
Re: cheating MC/Service Guard
Essentialy, your package startup script will be looking for the file that you touch, and if it finds it assumes that you want to do something other than the normal startupp, e.g. start Oracle processes but not teh database.
I suggest you read the instructions further, or contact whoever supplied you with this new software/instructions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:24 AM
09-16-2002 04:24 AM
Re: cheating MC/Service Guard
But thank you anyway for your help!
Have a nice day,
ionut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:43 AM
09-16-2002 04:43 AM
Re: cheating MC/Service Guard
Good Luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2002 04:57 AM
09-16-2002 04:57 AM
Re: cheating MC/Service Guard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 05:54 AM
09-17-2002 05:54 AM
SolutionSounds like you want to shut down oracle instance without shuting down the package. Here is my two cents.
Mc/ServiceGuard monitors the processes in the pacakge by a monitor_service scrpit defined in the package control file. You need to disable this service monitor script in this case, otherwise, mc/sg will automatically start it again once the process it monitors disappears from system.
1, Edit /etc/cmcluster/
2, Find the "Start_Services" line and comment out the script definition following this line.
(The name of the scripts usually is "oracle.sh monitor" but could be another name)
3, Shut down the package: cmhaltpkg -n
4, Restart the package: cmrunpkg -n
5, Shut down oracle instance, and it should not be restarted again. If not, there must be another scripts is monitoring it. And we need detail configure file to analyze it.
Thank,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2002 06:34 AM
09-17-2002 06:34 AM
Re: cheating MC/Service Guard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2002 02:48 AM
09-19-2002 02:48 AM
Re: cheating MC/Service Guard
I don't suggest you to alter the MCSG package scripts for your testing ....
Just halt the package .....
Mount the File systems manually .....
Start your database ....
play all your testing games .....
stop your database ... restart your database ....
once u finished all your testing,
unmount the file systems ....
run MCSG package to resume your normal work ...
i hope this helps ...
-bala-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2002 12:25 AM
11-23-2002 12:25 AM
Re: cheating MC/Service Guard
you can change your monitoring script to check for a maintenance flag, if that flag exists then MC/serviceGuard will NOT run the package on the other node.
for example change your script as follows:
--------
while true
do
# checking for maint flag
if [ -f /etc/cmcluster/pkg name/maint_flag ]
then
sleep 30
else
...
# your normal monitor script
...
...
fi
done
---------------
then when you want to test your software
just do this:
in /etc/cmcluster/pkg name/
# touch maint_flag
and take your application down, and MC/service guard will not switch the package to the other node.