Hitachi

Hitachi Advanced Database Setup and Operation Guide


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:

[Figure]

Procedure:

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

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

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

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

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

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

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

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

  9. 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:

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

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

  3. Recovering the server directory

    Use the backup of the server directory you took before performing the swapping, to recover the server directory.

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

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

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

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