- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dependencies between packages with ServiceGuard
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
05-05-2004 12:48 AM
05-05-2004 12:48 AM
dependencies between packages with ServiceGuard
I have an oracle pkg running on box A and another pkg running on box A that requires oracle be up.
I start up the cluster manually. So I manually cope with the dependency.
But I don't control the order in which pkgs are restarted in case of fail over on box B.
Is there any way to ?
Should I use a resource to synchronize the two packages ?
Thanks,
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 12:55 AM
05-05-2004 12:55 AM
Re: dependencies between packages with ServiceGuard
You put a shell script that check for the Online status of pkg1 and in case it is done then proceed with the startup of pkg2.
It would be helpful if you closely monitor the startup time of other package and accordingly frame your script with sleep statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 12:59 AM - last edited on 09-16-2024 02:20 AM by support_s
05-05-2004 12:59 AM - last edited on 09-16-2024 02:20 AM by support_s
Re: dependencies between packages with ServiceGuard
I am not sure of the start order.
What you can do create a script that does a check of the package it depends on in runnin, if not start the package and continue, if so continue right away. And add that script in the custome_defined_run_cmds section of the package. This way you are sure package 1 is started first.
You can also add a check in node name.
something file this
NODE=`hostname`
cmviewcl -p
if [ $? -ne 0]
then
cmrunpkg -n $NODE
fi
HTH,
Gideon
- Tags:
- logical drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 01:27 AM
05-05-2004 01:27 AM
Re: dependencies between packages with ServiceGuard
If I understand your question correctly, the concern is if any of these crash, needs to be switched to another node.
In that case, you can put some code in control script of noth packages in such a way that if anyone of them crashes, it checks if other is running and shuts it down and brings both packages up on another node in the order you want.
The trick here is that code which will go in each packages control scripts.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 01:28 AM
05-05-2004 01:28 AM
Re: dependencies between packages with ServiceGuard
If I wait for oracle to come up in my customer_defined_run_cmds, it means I have to increase the RUN_SCRIPT_TIMEOUT by the time oracle needs to come up.
Typically, oracle may need 120 seconds while the pkg it depends on (let's call it PKG_D) may need only 10.
So I'm not reactive anymore to detecting quickly failures on PKG_D when I start up the cluster manually.
But I guess I'll be forced to that trade-off!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 02:05 AM
05-05-2004 02:05 AM
Re: dependencies between packages with ServiceGuard
when I have package dependencies what I do is during the DB package startup , I explicity define in customer defined section , to halt the application package irrespective of whether its up or not . when the DB package is up it starts up the dependent package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 05:47 PM
05-05-2004 05:47 PM
Re: dependencies between packages with ServiceGuard
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 11:37 PM
05-05-2004 11:37 PM
Re: dependencies between packages with ServiceGuard
http://www2.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=UMCSGKBRC00008166&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&search.x=19&search.y=8
UMCSGKBRC00008166
TITLE: Dependent packages, can the order of package startup be controlled?
-sd-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 12:14 AM
05-06-2004 12:14 AM
Re: dependencies between packages with ServiceGuard
It seems as though you could also do this by nesting scripts.
Lets call them Package A (oracle) and Package B (dependent package).
Have Package B start up a script that calls the "real startup script" and then loops.
If it dies then SG will restart it so you will have to have logic in that script to check to see if both oracle and the real process are already up.
So if you are starting up "myapplication" in Package B then the logic would look like this:
Service Guard Script logic:
Start application script
Application_script logic:
If myapplication is not running
LOOP: if oracle is running
start my application
else
sleep and then do LOOP again
else (application is running)
sleep forever
Best regards,
Kent M. Ostby