- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Serviceguard - how to stop existing package on fai...
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
01-05-2009 09:41 AM
01-05-2009 09:41 AM
I'm a bit rusty with service-guard but seem to remember this was a relatively simple solution.
I have a production and development server each have a single package. All I want to do is ensure that when a failover occurs from production the dev servers package shuts down 1st. Is this a policy I configure within the packages or do I simply call the appropriate SG command within the startup process.
Cheers
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2009 10:18 AM
01-05-2009 10:18 AM
Re: Serviceguard - how to stop existing package on failover
See more here - http://docs.hp.com/en/B3936-90100/ch06s02.html
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2009 06:18 AM
01-07-2009 06:18 AM
Re: Serviceguard - how to stop existing package on failover
Therefore, it is necesary to script a test into the package control script to shutdown the dev package should the production package find it running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2009 10:35 AM
01-08-2009 10:35 AM
Re: Serviceguard - how to stop existing package on failover
If you have full ITRC knowledge base access, take a look at this KB article which might help:
http://www13.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01182371-1
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2009 12:36 PM
01-08-2009 12:36 PM
Re: Serviceguard - how to stop existing package on failover
/usr/sbin/cmhaltpkg -n $(/usr/bin/uname -n)
Now copy this over to your Dev box, like you would do normally for any change to your .cntl file.
So if your Prod pkg fails over the first thing it will do is look and see if on that box (now the Dev box) it is running the Dev-pkg - halt it.
Relax, you can stop & restart the prod pkg running on the prod box and it won't hurt dev.
Is that simple enough......got this from a former HP employee Ed Jones.
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2009 05:50 AM
01-09-2009 05:50 AM
SolutionHN=`uname -n`
if [ $HN =
/usr/sbin/cmhaltpkg -n $HN
fi