- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Halting a service without switching package
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-21-2000 05:27 AM
12-21-2000 05:27 AM
If SERVICE_RESTART=-r n (n>=0) and the service fails n+1 times, the related package switches to another node, according to PKG_SWITCHING_ENABLED.
Does is also apply to the "cmhaltserv" command? If I want to halt such a service but do not want the package to switch to another node, do I have to modify the PKG_SWITCHING_ENABLED variable first?
TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2000 05:49 AM
12-21-2000 05:49 AM
Re: Halting a service without switching package
I found this in a SG doc I had:
"....if a package has been stopped manually on a node SWITCHING remains set to enabled on all noeds, but PKG_SWITCH is disabled. In this case a package will not therefore start up again automatically on the other node. After manually starting the package on the new node the PKG_SWITCH should be reset to enabled."
Hope that helps,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2000 08:23 AM
12-21-2000 08:23 AM
Re: Halting a service without switching package
You would be better looking at why you would want to do this and then possibly redesigning your package dependencies.
If you manually do cmmodpkg -d pkg_name, the package will not switch if you halt a monitored service, but it will more than likely halt on the node it is currently running on. This is the design of MC/SG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2000 09:31 AM
12-21-2000 09:31 AM
Re: Halting a service without switching package
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2000 11:48 AM
12-28-2000 11:48 AM
Re: Halting a service without switching package
If you monitor the service other way you might be able to find a way to replace the real service with a fake one.
Ovidiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2000 05:02 AM
12-29-2000 05:02 AM
Re: Halting a service without switching package
If you use cmhaltserv, there won?t be a package switch, even if the package switching is enabled. I do it regurlarly.
The problem is that you won?t be able to restart the service, once the command cmrunserv doesn?t run in command mode. You must restart the package later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2001 12:29 PM
01-02-2001 12:29 PM
SolutionIn the MC/ServiceGuard course we talk about a concept we call the "Package maintenance flag"
If you have a service that is a loop that makes sure certain processes are running you can edit that script so if a file exists it does not check for the process. Example:
I have to shutdown oracle to reorganize the tablespaces. If I shutdown the package the volume group and filesystems are gone. I cannot shutdown the database because I have a service that will detect that. So I rewrite my service script so if I touch a file it does not check for the processes.
touch /u01/working_on_oracle
su - oracle
dbshut
do work
dbstart
exit
rm /u01/working_on_oracle
I hope this idea helps and if not please feel free to ask a followup