Nonstop Database, HiRDB Version 9 System Operation Guide
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.
- Method 1
With this method, planned system switchovers are executed after transaction queuing is performed. In this case, new transactions are queued even during a planned system switchover. Therefore, executing a UAP during a planned system switchover does not result in an error.
For a HiRDB parallel server configuration, this method can be applied only to planned system switchovers of units that satisfy the following conditions:
- A unit consisting of front-end servers only
- A unit consisting of a system manager and front-end servers only
- Method 2
With this method, planned system switchovers are executed without using transaction queuing. In this case, new transactions are not queued during a planned system switchover. Therefore, executing a UAP during a planned system switchover results in an error.
- 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 is as follows.
- Procedure
- Use the pdls -d ha command or the corresponding cluster software command to confirm the following:
The unit subject to the planned system switchover is active.
The planned system switchover target unit is in standby status.
- 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 8 or 12, transaction queuing has not started. In this case, eliminate the cause of the problem, and then re-execute the pdtrnqing command.
- Use a cluster software command (the monswap command for HA Monitor) to execute the planned system switchover.
- Use the pdls -d ha command or the corresponding cluster software command to confirm that the switchover target unit is active.
- When the planned system switchover is complete, transaction queuing is automatically canceled, and the transactions that have been queued are executed. This method can only be used for planned system switchovers when the automatic reconnect facility is applied. Therefore, check whether this facility is applied. For details about the automatic reconnect facility, see the HiRDB Version 9 UAP Development Guide.
- When this method is used for a planned system switchover, UAP transactions are queued and placed in waiting status after the pdtrnqing command is executed until the planned system switchover is complete. This increases the response time. Therefore, check whether the following settings are appropriate:
- Client maximum wait time specified in the PDCWAITTIME operand of the client environment definition
- HiRDB client maximum wait time when connecting to the server, specified in the PDCONNECTWAITTIME operand of the client environment definition
- When the time specified by these operands elapses, UAP execution results in an error.
(2) Using method 2 to execute a planned system switchover
The planned system switchover procedure is as follows.
- Procedure
- Use the pdstop command to terminate the running system HiRDB (unit or server). Perform this step only when a product other than HA Monitor is used as the cluster software.
If you specify the pdstop command in the termcommand operand of Hitachi HA Toolkit Extension, you do not have to execute the pdstop command at this time, because Hitachi HA Toolkit Extension executes it as an extension of the command in step 2.
- Use a cluster software command (the monswap command for HA Monitor) to perform the planned system switchover. For details about planned system switchovers, see the documentation for the applicable cluster software product.
- The HiRDB (or unit) that became the standby system must be placed in standby status. Execute the pdstart command (the pdstart -q command for a HiRDB parallel server configuration) on the standby system HiRDB.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.