pcmhatool

an administrative command interface to manage a high availability environment

Synopsis

pcmhatool [-h | --help] | [-v | --version]

pcmhatool subcommand [options]

Subcommand List

pcmhatool config -i | --import HAINFO_FILENAME -s | --secondary SMN_NAME [-q | --quiet] [-h | --help]

pcmhatool reconfig -s|--standby SMN_NAME [-q|--quiet] [-h|--help]

pcmhatool info [-h|--help]

pcmhatool failto -t|--target SMN_NAME [-q|--quiet] [-h|--help]

pcmhatool failmode -m|--mode FAILOVER_MODE [-h|--help]

pcmhatool status [-h|--help]

pcmhatool check [-h|--help]

Description

The pcmhatool command manages a high availability environment. It is used to enable high availability, display settings, set the failover mode, trigger a failover, and show high availability data and running status.

Options

-h | --help
Displays the pcmhatool command help information.
-v | --version
Displays the pcmhatool command version information.

Subcommand Options

config -i HAINFO_FILENAME -s SMN_NAME
Specifies high availability settings to be used to enable high availability between the primary management node and the secondary management node, where HAINFO_FILENAME is the high availability definition file and SMN_NAME is the name of the secondary management node.
-i|--import HAINFO_FILENAME
Specifies the import file name of the high availability definition file, where HAINFO_FILENAME is the name of the high availability definition file.
-s|--secondary SMN_NAME
Specifies the secondary management node name, where SMN_NAME is the name of the secondary management node.
reconfig -s|--standby SMN_NAME
Enables high availability on the standby management node after the management node is reinstalled, where SMN_NAME is the name of the standby management node.
info
Displays high availability settings, including: the virtual IP address, the management node name, and a list of share directories.
failto -t|--target SMN_NAME
Sets the specified standby management node to an active management node, where SMN_NAME is the current standby management node.
failmode -m|--mode FAILOVER_MODE
Sets the failover mode, where FAILOVER_MODE is set to auto for automatic failover or manual for manual failover. In automatic mode, the standby node takes over the cluster when it detects the active node has failed. In manual mode, the standby node only takes over the cluster if the pcmhatool failto command is issued.
status
Displays the current high availability status, including: state of the nodes, failover mode and status of running services. Nodes that are in unavail state are unavailable and indicate a node failure or lost network connection.
check
Displays high availability diagnostic information related to the high availability environment, including current status data, failure and correction data.