- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ServiceGuard package question
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
03-28-2007 06:30 AM
03-28-2007 06:30 AM
I'm building a 2 node (1 package) ServiceGuard cluster. All is well, however on the failover node, I need to run another package, which in essence first unmounts filesystems there, before the package from the cluster (failed node) can fail over. How does one do this? I presume in the package control script, or maybe with the Service_Name feature. I have no idea how to do this, so any help will be rewarded.
Thanks, Andy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 06:42 AM
03-28-2007 06:42 AM
Re: ServiceGuard package question
In the new package script on the second node, there is a place to put in commands to handle the necessary umounts.
The package control script is the place to do this. If you use a sample package control scrip t there are plenty of comments in there to help you do it.
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
03-28-2007 06:56 AM
03-28-2007 06:56 AM
Re: ServiceGuard package question
ok that makes sense, but how does my new package control script on the second node get triggered by the package failing over from node 1? I'm using a different package control script for the initial package move. How do the 2 package control scripts correlate to each other?
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 07:21 AM
03-28-2007 07:21 AM
Re: ServiceGuard package question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 07:24 AM
03-28-2007 07:24 AM
Re: ServiceGuard package question
Because this then goes into the SG cluster binary, the control script MUST be the same path and name on ALL nodes.
What your attemptinmg to do is actually not supported, as when the package switches, the first thing it does is attempt to activate the volume group(s) for the package, then mount any file systems, and as there are already file systems there, this will not work.
What you could try to do is add in your own function to the control scrippt on the second node to do these unmounts, and then call the function BEFORE it does the vgchange, but as this means making changes outside of the areas that customers are allowed to, it becomes unsupported.
In a future release there may be added functionality to allow "pre_vg_activation" customer functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 07:28 AM
03-28-2007 07:28 AM
Re: ServiceGuard package question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 07:34 AM
03-28-2007 07:34 AM
Re: ServiceGuard package question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 07:52 AM
03-28-2007 07:52 AM
SolutionIn the PRODUCTION packages cntl file at the very top we put the following statement:
/usr/sbin/cmhaltpkg -n $(/usr/bin/uname -n)
Whe your prod fails over, the first thing it does it stop the other package !
Works for us ..
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 08:13 AM
03-28-2007 08:13 AM
Re: ServiceGuard package question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 08:24 AM
03-28-2007 08:24 AM
Re: ServiceGuard package question
If Andy puts this as a customer defined halt commands then this is ran before volume group deactivation. anyway he would be sending commands to another host via ssh or something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 08:24 AM
03-28-2007 08:24 AM
Re: ServiceGuard package question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2007 11:54 PM
03-28-2007 11:54 PM
Re: ServiceGuard package question
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2007 01:46 AM
03-29-2007 01:46 AM
Re: ServiceGuard package question
You must understand that when a primary node TOCs, the secondary has to decide where the problem lies - is it with the primary, or is it with the network, or is it with itself.
If it decides that the problem lies with the primary node, then the failover node takes over, moving the package ownership and starting up the package (adding IPs, activating VGs, then mounting filesystems, then running customer commands).
So to do what you want to achieve, you must put yourself into an unsupported situation by manually unmounting filesystems before the package start-up filesystem mounts.
Putting an unmount in the package halt script is useless when a node TOCs, the command would never be run.
My pet psychic mystic Meg suggested that you may have NFS mounted the package filesystems to the other node, at the same location, so want to unmount the NFS mounts, to avoid trying to over-mount with the real ones and fail to start the package. Is Meg correct?