16.7 Switching over the master node by using a command
You can switch over the master node by executing a command. The procedure differs depending on whether you are using host reset or SCSI reservation for shared disk.
-
When using host reset
You can switch over the master node by executing the HA Monitor monswap command on the master node.
-
When using SCSI reservation for shared disk
You can use the following procedure to switch over the master node:
-
Execute the adbstop --cancel --node command on the master node.
-
Execute the HA Monitor monswap command on the master node.
-
The slave node that becomes the new master node is decided based on the specifications in the initial and standbypri operands in the servers file of HA Monitor. For details about the initial and standbypri operands, see (3) Specifying the servers file in 16.3.4 Setting up an HA Monitor environment, and Server environment definition (servers) in the manual HA Monitor for Linux(R) (x86).
The node where the command was executed is separated from the multi-node configuration.
- Note
-
-
For details about the monswap command, see Commands in the manual HA Monitor for Linux(R) (x86).
-
Switching over the master node through commands uses the HA Monitor planned hot standby function.
-