- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I set some kind of order in package fail
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
12-17-2001 01:05 PM
12-17-2001 01:05 PM
Someone know how MC/SG start package on the host because some of my package need to start after some other package (A kind or requisite)...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:10 PM
12-17-2001 01:10 PM
Re: How can I set some kind of order in package fail
there is no order in packge failure and startup. Each packge is expected to behave independently and is not expected to be dependent on another package.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:11 PM
12-17-2001 01:11 PM
Re: How can I set some kind of order in package fail
Unfortunately, we cannot specify the order in which the packages are to be started. You need to put it in your package run/halt scripts. It will be bit complicated.
For ex., if you have package1 and package2 and package 2 is dependent on package1, then you will put checks in each package script.
package 1:
Check to see if package 2 is running. If so, bring it down and start the processes of package 1.
package 2:
check to see if package 1 is running. If so, start the processes of package 2. Otherwise, do not start.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:11 PM
12-17-2001 01:11 PM
Re: How can I set some kind of order in package fail
For controling sequence for the package starting look at this thread.
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=2e5335621631482a88/screen=ckiDisplayDocument?docId=200000056929660
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:13 PM
12-17-2001 01:13 PM
Re: How can I set some kind of order in package fail
STATUS='init'
if [ $STATUS != 'running']
then
sleep 5
STATUS=`cmviewcl | grep packagename | awk '{print $3}'`
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:16 PM
12-17-2001 01:16 PM
Re: How can I set some kind of order in package fail
ServiceGuard currently does not have configuration parameters to control
package start-up sequence. There are no parameters in the cluster ASCII
configuration file (CONF) nor the package ASCII configuration files
(conf) to handle this.
See this document in Knowledge base for a possible try: #UMCSGKBRC00008166
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:17 PM
12-17-2001 01:17 PM
Solutionif [[ $1 = "start" ]]
then
print "\n\t########### Node \"$(hostname)\": Starting package at $(date) ###########"
check_prereq
activate_volume_group
check_and_mount
then add the code from above into this function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2001 01:22 PM
12-17-2001 01:22 PM
Re: How can I set some kind of order in package fail
I solved this problem some time ago in a rather unusual way. I created a package that simply runs a Perl script which is nothing more than a listener on a dedicated port. The listener is intentionally single threaded so that only one connection at a time is serviced. All of the other packages have a startup/shutdown scripts which wait for this server to respond. When it can respond, it returns things like pkgA up or pkgB down. The perl clients all have timeouts which prevent the scripts from hanging (they actually retry every 30 seconds until one gets a good response). I typically use it to make sure that the database package is up before the ERP application kicks off. There is a 3rd package which in turns depends upon the ERP application.