HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- MC Service Guard Package Dependencies
Operating System - HP-UX
1833838
Members
2510
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-02-2001 11:20 AM
04-02-2001 11:20 AM
MC Service Guard Package Dependencies
Hi everyone-
I would like to discuss with your guys regarding package dependencies in Service Guard. For example, I start a new cluster with package A, B and C. Package B will be functionally dependent on package A. Also package C will functionally dependent on package B. Make a more simple life, I would like to start package A first. The cluster cannot start package B until package A is completely done.
I just think about to put everything together in the same package. But, you know, what if you have to locate your packages on different nodes? For example, I plan to create a oracle package and third-party application package running in node A and B respectively in the same cluster. For this point, I have to definitely start package A with Oracle before I start package B with third-party package. If package B start first, application would not work correctly.
Well, any idea?
PS. I do not like the way to call sleep(). But well:) I might use them, if I cannot find the good solution, anyway.
I would like to discuss with your guys regarding package dependencies in Service Guard. For example, I start a new cluster with package A, B and C. Package B will be functionally dependent on package A. Also package C will functionally dependent on package B. Make a more simple life, I would like to start package A first. The cluster cannot start package B until package A is completely done.
I just think about to put everything together in the same package. But, you know, what if you have to locate your packages on different nodes? For example, I plan to create a oracle package and third-party application package running in node A and B respectively in the same cluster. For this point, I have to definitely start package A with Oracle before I start package B with third-party package. If package B start first, application would not work correctly.
Well, any idea?
PS. I do not like the way to call sleep(). But well:) I might use them, if I cannot find the good solution, anyway.
Boonchu Ngampairoijpibul
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2001 06:29 AM
04-03-2001 06:29 AM
Re: MC Service Guard Package Dependencies
The best way to implement this is to create lock files like /etc/cmcluster/packageA_is_starting and to check in the dependent package scripts for their existence. This is perhaps the easiest way to implement it.
One could also define package services that check periodically for files like /etc/cmcluster/packageA_down.
Another way to do this is to use EMS HA Monitors and to configure a deferred resource (starting with SG 11.08, see also SG 11.08 RelNotes on http://docs.fc.hp.com/hpux/pdf/B3935-90021.pdf) /cluster/package/package_status/packageA as a package dependency. This resource would be monitored for UP status once packageB/C started. However, due to timing issues, I recommend against this.
The first method to create lock files is much more reliable and can be easily built in the package control script.
Carsten
One could also define package services that check periodically for files like /etc/cmcluster/packageA_down.
Another way to do this is to use EMS HA Monitors and to configure a deferred resource (starting with SG 11.08, see also SG 11.08 RelNotes on http://docs.fc.hp.com/hpux/pdf/B3935-90021.pdf) /cluster/package/package_status/packageA as a package dependency. This resource would be monitored for UP status once packageB/C started. However, due to timing issues, I recommend against this.
The first method to create lock files is much more reliable and can be easily built in the package control script.
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
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
04-03-2001 06:55 AM
04-03-2001 06:55 AM
Re: MC Service Guard Package Dependencies
Hi,
I'm not sure that testing a package is best way.
What you really need ? a running database or running package ?
Here is a part of my cluster :
Package pkgnfs (export data via NFS)
Package pkgdb (oracle database)
Package pkgapp (oracle application)
pkgapp needs that the database is up and running and data which are exported from NFS.
In the start script of pkgapp, I test that :
- I can use data exported via NFS or locally if pkgnfs is on the same server
- I can connect to the database (su - oracle ; sqlplus ....@database).
If something is unvailaible, I wait 30s and I test again during 10 minutes.
A running package doesn't mean that everything is OK. A real test is the best way.
Regards,
Patrice.
I'm not sure that testing a package is best way.
What you really need ? a running database or running package ?
Here is a part of my cluster :
Package pkgnfs (export data via NFS)
Package pkgdb (oracle database)
Package pkgapp (oracle application)
pkgapp needs that the database is up and running and data which are exported from NFS.
In the start script of pkgapp, I test that :
- I can use data exported via NFS or locally if pkgnfs is on the same server
- I can connect to the database (su - oracle ; sqlplus ....@database).
If something is unvailaible, I wait 30s and I test again during 10 minutes.
A running package doesn't mean that everything is OK. A real test is the best way.
Regards,
Patrice.
Patrice MARTINACHE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2001 09:24 AM
04-03-2001 09:24 AM
Re: MC Service Guard Package Dependencies
Thanks for all responses-
I think about checking processes runing or not are very good idea to implement.
I think I will implement small script like checking all processes of oracle database. If it's up and running, I will add in script to check with lsnrctl command to check SQL*Net status also. If it does not completely activate, its script will wait until it done.
I think about checking processes runing or not are very good idea to implement.
I think I will implement small script like checking all processes of oracle database. If it's up and running, I will add in script to check with lsnrctl command to check SQL*Net status also. If it does not completely activate, its script will wait until it done.
Boonchu Ngampairoijpibul
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP