Appendix C.4 Example 4 (HiRDB/Parallel Server: when the standby system switchover facility is used)

This example creates system definitions for a HiRDB/Parallel Server. The system configuration is shown as follows.

Note that in this definition example, only those operands that are related to the system common definition and unit control information definition are explained.

[Figure]

Key points
  • When IP addresses are not inherited, specify a host name using an alias IP address for the -x and -c options of the pdunit operand, and not the standard host name, to maintain independence from the server machine.
  • When mutual system switchover without IP address inheriting is used, the host name to be specified for the -x and -c options of the pdunit operand must be unique. See the pdunit operand specification example in (1).
Organization of this subsection
(1) System common definition
(2) Unit control information definitions for UNT1-UNT4

(1) System common definition

        :
set pd_name_port = 5001                                          1
        :
set pd_ha = use                                                  2
set pd_ha_ipaddr_inherit = N
set pd_ha_switch_timeout = Y
set pd_ha_transaction = queuing
set pd_ha_trn_queuing_wait_time = 240
set pd_ha_trn_restart_retry_time = 90
        :
pdunit -x host1A -u UNT1 -d "C:\HiRDB_A" -c host2A -p 5001       3
pdunit -x host2B -u UNT2 -d "C:\HiRDB_B" -c host1B -p 5002
pdunit -x host3A -u UNT3 -d "C:\HiRDB_C" -c host4A -p 5003
pdunit -x host4B -u UNT4 -d "C:\HiRDB_D" -c host3B -p 5004
pdstart -t MGR -u UNT1                                           4
pdstart -t FES -s fes1 -u UNT1
pdstart -t DIC -s dic  -u UNT2
pdstart -t BES -s bes1 -u UNT3
pdstart -t BES -s bes2 -u UNT4
        :

Explanation
  1. Specifies the HiRDB port number.
  2. Specifies the operands related to the system switchover facility.
  3. Specifies the unit configuration of HiRDB/Parallel Server:
    -x: Host name
    -u: Unit identifier
    -d: HiRDB directory name
    -c: Host name of the secondary system
    -p: Port number of the unit
  4. Specifies the server configuration of the HiRDB/Parallel Server:
    -t: Server type
    -s: Server name
    -u: Unit identifier

(2) Unit control information definitions for UNT1-UNT4

        :
set pd_ha_acttype = server                        1
set pd_ha_agent = standbyunit                     2
        :

Explanation
  1. Specifies that the system switchover facility be used in the server mode.
  2. Specifies that the rapid system switchover facility be used.