Appendix C.2 Example 2 (HiRDB/Single Server: system switchover facility being used)

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

This example explains only the system common definition, unit control definition, and their related operands.

[Figure]

Organization of this subsection
(1) System common definition of HiRDB/Single Server 1
(2) Unit control information definition of HiRDB/Single Server 1
(3) System common definition of HiRDB/Single Server 2
(4) Unit control information definition of HiRDB/Single Server 2

(1) System common definition of HiRDB/Single Server 1

set pd_system_id = SDS1                                    1
set pd_name_port = 20003                                   2
        :
        :
set pd_ha = use                                            3
set pd_ha_ipaddr_inherit = N                               4
        :
        :
pdunit -x host1 -u UNT1 -d "C:\HiRDB1" -c host2            5
pdstart -t SDS -s sds01 -u UNT1                            6

Explanation
  1. Specifies the HiRDB identifier.
  2. Specifies the HiRDB port number.
  3. Specifies use of the system switchover facility.
  4. Specifies that IP addresses are not inherited.
  5. Specifies the unit configuration of the HiRDB/Single Server 1:
    -x: Host name.
    -u: Unit identifier
    -d: HiRDB directory name
    -c: Host name of the secondary system
  6. Specifies the server configuration of the HiRDB/Single Server 1:
    -t: Server type
    -s: Server name
    -u: Unit identifier

(2) Unit control information definition of HiRDB/Single Server 1

set pd_unit_id = UNT1                                       1
        :
        :
set pd_hostname = host1                                     2

Explanation
  1. Specifies the unit identifier.
  2. Specifies the host name of the primary system.

(3) System common definition of HiRDB/Single Server 2

set pd_system_id = SDS2                                     1
set pd_name_port = 20004                                    2
        :
        :
set pd_ha = use                                             3
set pd_ha_ipaddr_inherit = N                                4
        :
        :
pdunit -x host2 -u UNT2 -d "C:\HiRDB2" -c host1             5
pdstart -t SDS -s sds02 -u UNT2                             6

Explanation
  1. Specifies the HiRDB identifier.
  2. Specifies the HiRDB port number.
  3. Specifies use of the system switchover facility.
  4. Specifies that IP addresses are not inherited.
  5. Specifies the unit configuration of the HiRDB/Single Server 2:
    -x: Host name.
    -u: Unit identifier
    -d: HiRDB directory name
    -c: Host name of the secondary system
  6. Specifies the server configuration of the HiRDB/Single Server 2:
    -t: Server type
    -s: Server name
    -u: Unit identifier

(4) Unit control information definition of HiRDB/Single Server 2

set pd_unit_id = UNT2                                       1
        :
        :
set pd_hostname = host2                                     2

Explanation
  1. Specifies the unit identifier.
  2. Specifies the host name of the primary system.