Forcing a RH cluster suite service to run on a specific node or fail.
Issue
I am looking for a Cluster Suite option (if possible) which allows a cluster command to attempt to start a service on a particular member node else fail.
This will be something like the "recovery=disabled" option to the service, though does not stop the service from failing over correctly in a proper failover scenario. Or in other words, a way to apply a temporary recovery policy to the execution of a clusvcadm command so that the normal service recovery policy remains once the service is started, but a different one is applied while starting it manually.
As part of regular failover tests I need to start all services on particular servers. If they fail to start I want them to return an error (and exit code) rather than go off and attempt to start on other member nodes.
Environment
- Red Hat Enterprise Linux 5
- Cluster Suite (High Availability add-on)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.