Appendix C.5 Example 5 (HiRDB/Parallel Server: when the standby-less system switchover (1:1) 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]

Note
  • Shading indicates the primary units.
  • Server name is shown in parentheses.
  • Back-end server (bes1) is a normal BES and is also an alternate BES for back-end server (bes2).
  • Back-end server (bes2) is a normal BES and is also an alternate BES for back-end server (bes1).
Organization of this subsection
(1) System common definition
(2) Unit control information definitions for UNT1 and UNT2
(3) Unit control information definitions for UNT3 and 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 host1 -u UNT1 -d "C:\HiRDB_A" -c host1A -p 5001        3
pdunit -x host2 -u UNT2 -d "C:\HiRDB_B" -c host2A -p 5002
pdunit -x host3 -u UNT3 -d "C:\HiRDB_A" -p 5003
pdunit -x host4 -u UNT4 -d "C:\HiRDB_A" -p 5003
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 -c bes2                           5
pdstart -t BES -s bes2 -u UNT4 -c bes1
        :

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
    -t: Server type
  5. Specifies the server configuration of the HiRDB/Parallel Server:
    -t: Server type
    -s: Specifies the name of the normal BES.
    -t: Server type
    -c: Specifies the name of the alternate BES.

(2) Unit control information definitions for UNT1 and UNT2

        :
set pd_ha_acttype = server                                        1
set pd_ha_server_process_standby = Y                              2
        :

Explanation
  1. Specifies that the system switchover facility be used in the server mode.
  2. Specifies that user server hot standby be used.

(3) Unit control information definitions for UNT3 and UNT4

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

Explanation
  1. Specifies that the system switchover facility be used in the server mode.
  2. Specifies that the standby-less system switchover (1:1) facility be used.