- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ServiceGuard Package Dependencies
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
Discussions
Discussions
Forums
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
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
тАО02-24-2009 12:47 PM
тАО02-24-2009 12:47 PM
BTW: HP-UX 11.31 w/SG 11.18 Integrity SuperDome
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 01:01 PM
тАО02-24-2009 01:01 PM
Re: ServiceGuard Package Dependencies
For simplicity, I would build a single package that does multiple things.
Example.
If daemonA and daemonB must run on the same system, they should be in the same package.
There is nothing in Service Guard that prevents you from calling a script that starts two services.
That would be my approach.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 01:16 PM
тАО02-24-2009 01:16 PM
SolutionI used to implement such functionality in earlier versions of MCSG with code such as the following in the package start script (running before the LVM stuff in the script):
cmviewcl -n `hostname` -p pgkC | grep -i running &&
cmhaltpkg -n `hostname` -p pkgC
(repeat for pkgD & pkgE)
I'm not in front of an MCSG box now, so please check my syntax, but I think it's pretty close.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 03:37 PM
тАО02-24-2009 03:37 PM
Re: ServiceGuard Package Dependencies
cmviewcl -p Prod_cup1 | grep running && cmhaltpkg -p Depl_usp1
I placed the code just before the volume group activation in the "start" section of the control script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 04:07 PM
тАО02-24-2009 04:07 PM
Re: ServiceGuard Package Dependencies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 05:43 PM
тАО02-24-2009 05:43 PM
Re: ServiceGuard Package Dependencies
Be careful with that syntax - without the check that the package is running on a specific node, you could be shutting down packages pkgC, pkgD & pkgE running on another node. You may need to do extra parsing of the output if the -n and -p options are indeed mutually exclusive.
--Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2009 11:07 PM
тАО02-24-2009 11:07 PM
Re: ServiceGuard Package Dependencies
http://docs.hp.com/en/B3936-90122/ch04s08.html#cihfgeaj
I haven't tried this myself yet, but it should be possible to setup the configuration you require with no special start/stop code (unfortunately all the examples are for dependencies on packages being *running*, not on them being *down*)
HTH
Duncan
I am an HPE Employee