16.21.2 Performing swapping on a per-node basis
The following procedure shows how to swap the HADB server with its revised version on a per-node basis: If you use this method, you do not have to stop the multi-node configuration HADB server, so there is no need to stop work operations.
The multi-node configuration on which swapping is performed is as follows:
Procedure:
-
Switch over the master node by using a command
For details about how to switch over the master node using a command, see 16.7 Switching over the master node by using a command.
When switchover of the master node is complete, node 1's HADB server terminates normally, and node 2 becomes the master node.
-
Swap the HADB server with its revised version on node 1
For details about how to swap the HADB server with a revised version, see 8.8 Swapping the HADB server with its revised version.
-
Return node 1 to the multi-node configuration
For details about how to return nodes to a multi-node configuration, see 16.15.3 Returning a node to the multi-node configuration.
Node 1 is returned as a slave node to the multi-node configuration.
-
Switch over the master node by using a command
For details about how to switch over the master node using a command, see 16.7 Switching over the master node by using a command.
When switchover of the master node is complete, node 2's HADB server terminates normally, and node 1 becomes the master node.
-
Swap the HADB server with its revised version on node 2
For details about how to swap the HADB server with a revised version, see 8.8 Swapping the HADB server with its revised version.
-
Return node 2 to the multi-node configuration
For details about how to return nodes to a multi-node configuration, see 16.15.3 Returning a node to the multi-node configuration.
Node 2 is returned as a slave node to the multi-node configuration.
-
Normally terminate the HADB server on node 3
For details about how to terminate a slave node normally, see (c) Normally terminating the HADB server on a slave node only in (2) Terminating an HADB server on a specific node under 16.4.2 Terminating HADB servers in the multi-node configuration.
-
Swap the HADB server with its revised version on node 3
For details about how to swap the HADB server with a revised version, see 8.8 Swapping the HADB server with its revised version.
-
Return node 3 to the multi-node configuration
For details about how to return nodes to a multi-node configuration, see 16.15.3 Returning a node to the multi-node configuration.
Node 3 is returned as a slave node to the multi-node configuration.
Perform the preceding steps 7-9 on node 4 as well.
With the preceding step, swapping of the HADB server with its revised version is complete.
- ▪ If swapping of the HADB server with its revised version fails
-
If swapping of the HADB server with its revised version fails, use the following procedure to return the HADB server to its state before the swapping: You need to perform this procedure on all nodes where swapping of the HADB server with its revised version failed.
Procedure:
-
Forcibly terminating the HADB server on nodes where swapping failed
If the HADB server is running on any nodes where swapping failed, execute the adbstop --force command to forcibly terminate the HADB server.
-
Uninstalling the revised version of the HADB server
Uninstall the revised version of the HADB server on nodes where swapping with its revised version failed.
-
Recovering the server directory
Use the backup of the server directory you took before performing the swapping, to recover the server directory.
-
Returning the specifications in the environment variables and kernel parameters to their original values
If you changed the specifications in the environment variables and kernel parameters, return those specifications to their original values.
-
Return nodes to the multi-node configuration
Return all nodes where you completed up to step 4, to the multi-node configuration. For details about how to return nodes to a multi-node configuration, see 16.15.3 Returning a node to the multi-node configuration.
-
Switch over the master node by using the command
To switch back over to the original master node, perform a switchover by using the command. For details about how to switch over the master node using a command, see 16.7 Switching over the master node by using a command.
-
Return nodes that were separated from the multi-node configuration, back to the configuration.
Return nodes that were separated from the multi-node configuration as a result of performing the master node switchover in step 6, to the multi-node configuration. For details about how to return nodes to a multi-node configuration, see 16.15.3 Returning a node to the multi-node configuration.
-