CVM provides the ms_resource_stop.sh and ms_resource_start.sh scripts for you to stop the stateful failover service for maintenance purposes.
In software versions earlier than E0523, those scripts are used for primary/backup switchover. |
ms_resource_stop.sh—Stops the stateful failover service. This script does not contain any parameters.
ms_resource_start.sh—Starts the stateful failover service. This script contains an optional parameter:
Number |
Parameter |
Description |
$1 |
master node |
Enter the host name of the primary CVM host. By default, the host where this script runs is the primary CVM host. |
Do not interrupt execution of the scripts. Do not restart or shut down the CVM hosts during script execution.
The stateful failover system does not split when the stateful failover service is stopped. You cannot use the CVM hosts as CVK hosts or independent CVM platforms.
To stop the stateful failover service, execute the following command as a root user on one of the CVM hosts:
root@cvknode01:/#ms_resource_stop.sh
To start the stateful failover service and optionally specify the primary CVM host, execute the following command as a root user on one of the CVM hosts: