文档库 最新最全的文档下载
当前位置:文档库 › 使用clusvcadm管理HA服务

使用clusvcadm管理HA服务

1. Enable
clusvcadm -e or clusvcadm -e -m (Using the -m option specifies the preferred target member on which to start the service.)

#Start the service, optionally on a preferred target and optionally according to failover domain rules. In the absence
of either a preferred target or failover domain rules, 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. If the operation succeeds,
the service is placed in the started state.

2.Disable
clusvcadm -d

3.Relocate
clusvcadm -r or clusvcadm -r -m (Using the -m option specifies the preferred target member on which to start the service.)

#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.

4. Stop
clusvcadm -s

5.Freeze
clusvcadm -Z

6.Unfreeze
clusvcadm -U

7.Migrate
clusvcadm -M -m

8.Restart
clusvcadm -R

#Restart a service on the node where it is currently running.


相关文档
相关文档 最新文档