Appendix B.3 HiRDB single server configuration: system switchover facility being used

This example creates system definitions for a HiRDB single server configuration. 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 configuration 1
(2) Unit control information definition of HiRDB single server configuration 1
(3) System common definition of HiRDB single server configuration 2
(4) Unit control information definition of HiRDB single server configuration 2
(5) System common definitions of the utility special units
(6) Unit control information definitions of the utility special units

(1) System common definition of HiRDB single server configuration 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 "/HiRDB1" -c host2              5
pdunit -x host3 -u UNT3 -d "/HiRDB3" -p 20005              6
pdstart -t SDS -s sds01 -u UNT1                            7

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 HiRDB single server configuration 1:
    -x: Host name.
    -u: Unit identifier
    -d: HiRDB directory name
    -c: Host name of the secondary system
  6. Specifies the configuration of the utility special unit:
    -p: Port number
  7. Specifies the server configuration of HiRDB single server configuration 1:
    -t: Server type
    -s: Server name
    -u: Unit identifier

(2) Unit control information definition of HiRDB single server configuration 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 configuration 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 "/HiRDB2" -c host1               5
pdunit -x host3 -u UNT3 -d "/HiRDB3" -p 20005               6
pdstart -t SDS -s sds02 -u UNT2                             7

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 HiRDB single server configuration 2:
    -x: Host name.
    -u: Unit identifier
    -d: HiRDB directory name
    -c: Host name of the secondary system
  6. Specifies the configuration of the utility special unit:
    -p: Port number
  7. Specifies the server configuration of HiRDB single server configuration 2:
    -t: Server type
    -s: Server name
    -u: Unit identifier

(4) Unit control information definition of HiRDB single server configuration 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.

(5) System common definitions of the utility special units

set pd_system_id = UTL1                                     1
set pd_name_port = 20005                                    2
        :
        :
set pd_ha = use                                             3
set pd_ha_ipaddr_inherit = N                                4
        :
        :
pdunit -x host1 -u UNT1 -d "/HiRDB1" -c host2 -p 20003      5
pdunit -x host2 -u UNT2 -d "/HiRDB2" -c host1 -p 20004      6
pdunit -x host3 -u UNT3 -d "/HiRDB3"                        7
pdstart -t SDS -s sds01 -u UNT1                             8
pdstart -t SDS -s sds02 -u UNT2                             9

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 HiRDB single server configuration 1:
    -x: Host name.
    -u: Unit identifier
    -d: HiRDB directory name
    -c: Host name of the secondary system
    -p: Port number
  6. Specifies the unit configuration of HiRDB single server configuration 2:
  7. Specifies the configuration of the utility special unit:
  8. Specifies the server configuration of HiRDB single server configuration 1:
    -t: Server type
    -s: Server name
    -u: Unit identifier
  9. Specifies the server configuration of HiRDB single server configuration 2:

(6) Unit control information definitions of the utility special units

set pd_unit_id = UNT3                                       1
        :
        :
set pd_hostname = host3                                     2

Explanation
  1. Specifies the unit identifier.
  2. Specifies the host name.