You can temporarily suspend the automatic recovery actions of a resource group. You might need to suspend the automatic recovery of a resource group to investigate and fix a problem in the cluster. Or, you might need to perform maintenance on resource group services.
To suspend the automatic recovery actions of a resource group, you issue the clresourcegroup suspend command. To resume automatic recovery actions, you issue the clresourcegroup resume command.
When you suspend the automatic recovery actions of a resource group, you also bring the resource group to a quiescent state.
A suspended resource group is not automatically restarted or failed over until you explicitly issue the command that resumes automatic recovery. Whether online or offline, suspended data services remain in their current state. You can still manually switch the resource group to a different state on specified nodes. You can also still enable or disable individual resources in the resource group.
A dependency or affinity is suspended and not enforced when you suspend the automatic recovery actions of a resource group that does one of the following:
Contains a resource that has a restart dependency on another resource
Declares a strong positive or negative affinity for another resource group
When you suspend one of these categories of resource groups, Sun Cluster displays a warning that the dependency or affinity is suspended as well.
Setting the RG_system property does not affect your ability to suspend or resume the automatic recovery actions of a resource group. However, if you suspend a resource group for which the RG_system property is set to TRUE, a warning message is produced. The RG_system property specifies that a resource group contains critical system services. If set to TRUE, the RG_system property prevents users from inadvertently stopping, deleting, or modifying a resource group or its resources.
When you suspend the automatic recovery actions of a resource group, resource methods that are executing are allowed to run until they are completed. If a serious problem occurs, you might need to suspend the automatic recovery actions of a resource group immediately. To do so, you specify the -k command option, which kills the following methods:
Prenet_start
Start
Monitor_start
Monitor_stop
Stop
Postnet_stop
The Init, Fini Boot, and Update methods are not killed when you include this command option.
However, if you immediately suspend automatic recovery actions by killing methods, you might leave one of its resources in an error state such as Start_failed or Stop_failed. You must clear these error states yourself.
Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.
Suspend the automatic recovery actions of the resource group.
# clresourcegroup suspend resource-group |
The resource group that you specify is not automatically started, restarted, or failed over until you resume automatic recovery actions. See How to Resume the Automatic Recovery Actions of a Resource Group.
Become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.
Immediately suspend the automatic recovery actions of the resource group.
# clresourcegroup suspend -k resource-group |
The Prenet_start, Start, Monitor_start, Monitor_stop, Stop, and Postnet_stop methods that are associated with the resource group are killed immediately. Automatic recovery actions of the resource group is suspended. The resource group is not automatically started, restarted, or failed over until you resume automatic recovery actions. See How to Resume the Automatic Recovery Actions of a Resource Group.
The clresourcegroup suspend -k command blocks until the specified resource group has reached a quiescent state.