Nonstop Database, HiRDB Version 9 System Operation Guide

[Contents][Index][Back][Next]

26.9.2 Planned system switchover

This subsection explains how to perform a planned system switchover.

The two methods described below are available for planned system switchovers. Select the one that best suits the environment you are using.

Organization of this subsection
(1) Using method 1 to execute a planned system switchover
(2) Using method 2 to execute a planned system switchover

(1) Using method 1 to execute a planned system switchover

The planned system switchover procedure differs depending on the cluster software product that you use.

(a) When the cluster software product being used is HA Monitor

The planned system switchover procedure is as follows.

Procedure
  1. Use the pdls -d ha -s server-name -a command to confirm the following:
    [Figure] The source unit of the back-end server subject to the planned system switchover is active.
    [Figure] The switchover target unit of the back-end server subject to the planned system switchover is in standby status.
  2. Execute the pdtrnqing command at the source unit and start transaction queuing.
    During this step, confirm that the pdtrnqing command terminated normally with a return code of 0. If the return code is 0, transaction queuing has started normally. If the return code is not 0, transaction queuing has not started. In this case, eliminate the cause of the problem, and then re-execute the pdtrnqing command.
  3. If the switchover target is a normal unit, use the monswap command of HA Monitor to perform the planned system switchover. Afterwards, proceed to step 8.
    If the switchover target is an accepting unit, proceed to the next step.
    Reference note
    If there are multiple accepting units, you cannot use the monswap command of HA Monitor to specify the switchover target. Switchover targets are determined according to the priorities that were specified during system configuration. Therefore, if the switchover target selected according to priority is the intended unit, use the monswap command to execute the planned system switchover. If the switchover target is not the intended unit, follow steps 4 through 7 to execute the planned system switchover.
  4. From the unit where the system manager is located, execute the pdstop -f -s server-name command to forcibly terminate the back-end server. During this step, confirm that the pdstop command terminated normally with a return code of 0.
  5. From the unit where the system manager is located, execute the pdstart -s server-name -u switchover-target-unit-identifier command. During this step, confirm that the pdstop command terminated normally with a return code of 0.
  6. Use the pdls -d ha -s server-name -a command to check the status of the back-end server at the switchover target unit.
    [Figure] If the back-end server is waiting for the running system to start at the switchover target unit, proceed to the next step.
    [Figure] If the back-end server is active at the switchover target unit, proceed to step 8.
  7. Execute the monact command of HA Monitor at the switchover target unit. During this step, confirm that the monact command terminated normally with a return code of 0.
  8. Use the pdls -d ha -s server-name -a command to confirm that the back-end server is active on the switchover target unit.
When the planned system switchover is complete, transaction queuing is automatically canceled, and the transactions that have been queued are executed. If transaction queuing is not canceled for some reason, execute the pdtrnqing -d -s server-name command on the switchover target unit to cancel transaction queuing. During this step, confirm that the pdtrnqing command terminated normally with a return code of 0.
(b) When the cluster software product being used is not HA Monitor

The planned system switchover procedure is as follows.

Procedure
  1. Use the pdls -d ha -s server-name -a command to confirm the following:
    [Figure] The source unit of the back-end server subject to the planned system switchover is active.
    [Figure] The switchover target unit of the back-end server subject to the planned system switchover is in standby status.
  2. Execute the pdtrnqing command at the source unit and start transaction queuing.
    During this step, confirm that the pdtrnqing command terminated normally with a return code of 0. If the return code is 0, transaction queuing has started normally. If the return code is not 0, transaction queuing has not started. In this case, eliminate the cause of the problem, and then re-execute the pdtrnqing command.
  3. Use a cluster software command to execute a planned system switchover.
  4. Use the pdls -d ha -s server-name -a command to confirm that the back-end server is active on the switchover target unit.
When the planned system switchover is complete, transaction queuing is automatically canceled, and the transactions that have been queued are executed. If transaction queuing is not canceled for some reason, execute the pdtrnqing -d -s server-name command on the switchover target unit to cancel transaction queuing. During this step, confirm that the pdtrnqing command terminated normally with a return code of 0.

(2) Using method 2 to execute a planned system switchover

For a planned system switchover, execute HA Monitor's monswap command.

When this command executes, the back-end server at the switching-source unit is automatically placed on standby status.

If you are using Hitachi HA Toolkit Extension, enter the cluster software's planned system switchover command instead of the monswap command.

The following table describes the planned system switchover operation when the standby-less system switchover (effects distributed) facility is used.

Table 26-74 Planned system switchover operation when the standby-less system switchover (effects distributed) facility is used

Back-end server type Operation Move destination
Host BES Moves to the switching destination with the highest priority and, if there is no free space in the guest area, it moves to the switching destination with the next highest priority. Guest BES
Guest BES Host BES
(a) Planned system switchover for a host BES

The figure below shows an example of a planned system switchover for a host BES. In this example, a server machine (hostA) must be stopped for hardware maintenance of the host.

Figure 26-117 Example of a planned system switchover for a host BES

[Figure]

In this example, a planned system switchover is executed for the current BES on unt1. The procedure is as follows:

  1. At hostA, enter the monswap command for BES1 to switch BES1 to hostB.
  2. At hostA, enter the monswap command for BES2 to switch BES2 to hostC.

If you are using Hitachi HA Toolkit Extension, enter the cluster software's planned system switchover command.

(b) Planned system switchover for guest BESs (system reactivation)

The figure below shows an example of a planned system switchover for guest BESs (system reactivation). In this example, a unit recovers from an error.

Figure 26-118 Example of a planned system switchover for guest BESs (system reactivation)

[Figure]

In this example, BES5 and BES6, which had been moved from unt3, are re-activated through a planned system switchover. The procedure is as follows:

  1. At hostA, enter the monswap command for BES5 to switch BES5 to hostC.
  2. At hostB, enter the monswap command for BES6 to switch BES6 to hostC.

If you are using Hitachi HA Toolkit Extension, enter the cluster software's planned system switchover command.