clusvcadm
clusvcadm
command. With it you can perform the following operations:
clusvcadm
utility man page.
Service Operation | Description | Command Syntax |
---|---|---|
Start the service, optionally on a preferred target and optionally according to failover domain rules. In absence of either, the local host where clusvcadm is run will start the service. If the original start fails, the service behaves as though a relocate operation was requested (refer to in this table). If the operation succeeds, the service is placed in the started state.
|
clusvcadm -e <service_name> or clusvcadm -e <service_name> -m <member> (Using the -m option specifies the preferred target member on which to start the service.)
| |
Stop the service and place into the disabled state. This is the only permissible operation when a service is in the failed state. |
clusvcadm -d <service_name>
| |
Move the service to another node. Optionally, you may specify a preferred node to receive the service, but the inability of the service to run on that host (for example, if the service fails to start or the host is offline) does not prevent relocation, and another node is chosen. rgmanager attempts to start the service on every permissible node in the cluster. If no permissible target node in the cluster successfully starts the service, the relocation fails and the service is attempted to be restarted on the original owner. If the original owner cannot restart the service, the service is placed in the stopped state.
|
clusvcadm -r <service_name> or clusvcadm -r <service_name> -m <member> (Using the -m option specifies the preferred target member on which to start the service.)
| |
Stop the service and place into the stopped state. |
clusvcadm -s <service_name>
| |
Freeze a service on the node where it is currently running. This prevents status checks of the service as well as failover in the event the node fails or rgmanager is stopped. This can be used to suspend a service to allow maintenance of underlying resources. Refer to the section called “Considerations for Using the Freeze and Unfreeze Operations” for important information about using the freeze and unfreeze operations. |
clusvcadm -Z <service_name>
| |
Unfreeze takes a service out of the freeze state. This re-enables status checks. Refer to the section called “Considerations for Using the Freeze and Unfreeze Operations” for important information about using the freeze and unfreeze operations. |
clusvcadm -U <service_name>
| |
Migrate a virtual machine to another node. You must specify a target node. Depending on the failure, a failure to migrate may result with the virtual machine in the failed state or in the started state on the original owner. |
clusvcadm -M <service_name> -m <member> Important
For the migrate operation, you must specify a target node using the -m <member> option.
| |
Restart a service on the node where it is currently running. |
clusvcadm -R <service_name>
|
rgmanager
services. For example, if you have a database and a web server in one rgmanager
service, you may freeze the rgmanager
service, stop the database, perform maintenance, restart the database, and unfreeze the service.