HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
This subsection describes the preparations that are required in order to use the HA monitor's system switchover facility. The items described here are applicable to all types of system switchover that are described in 6.9.1 (1) Types of system switchover.
You must use the HA monitor's server definition statement to set up the Datareplicator's operating environment. When linked with HiRDB, Datareplicator can execute system switchover. The following shows a specification example of the server definition statement:
/**** Resource ****/
resource alias REPres ,
group groupA ,
initial online ,
disk /dev/vg00:/dev/vg01 ,
lan_updown use ;
/**** Replicator ****/
server name /HAmon/etc/replica.up ,
alias repl ,
acttype monitor ,
initial online ,
termcommand /HAmon/etc/replica.down ,
lan_updown nouse ,
parent REPres ,
group groupA ;
/**** Replicator ****/
server name /HAmon/etc/replica.up ,
alias repl ,
acttype monitor ,
initial online ,
termcommand /HAmon/etc/replica.down ,
disk /dev/vg01 ,
lan_updown use ,
group groupA ;
To achieve source Datareplicator system switchover, the data linkage file is shared with the HiRDB. Therefore, you must adjust the volume layout in the data linkage file as well as the timing of starting HiRDB and Datareplicator.
If your HA monitor version supports the resource server facility, using the HA monitor's resource server facility for the source Datareplicator's system switchover eliminates the need to adjust the start timing.We recommend that you use the resource server facility in order to simplify the configuration of the system switchover environment.
The following describes each operand of the server definition statement that is related to Datareplicator.
The following describes each operand that is related to the resource server definition.
The following describes each operand that is related to the Datareplicator definition.
sleep 5# 1.
su - hirdbdba -c /opt/hirdbds/bin/hdestart
2> /tmp/start_log 2.
su - hirdbdba -c "/opt/hirdbds/bin/hdestop
-t sendterm -w" 2> /tmp/stop_log 1.
To use the system switchover facility, you must allocate the Datareplicator files to a shared disk unit. For details about the Datareplicator's files that need to be allocated, see Table 6-18 Preparation of files for using the system switchover facility.
Create the files listed in Table 6-18 Preparation of files for using the system switchover facility on an external hard disk (character special files) that is shared by the primary and secondary systems, and then define the files so that they can be accessed from both Datareplicators using the same path. You can use a Datareplicator file system area as the shared disk unit.
It is necessary for the following networks to be configured in such a manner that they inherit IP addresses:
To use the system switchover facility, you must allocate some files to the shared disk unit and copy in advance some other files from the primary system to the secondary system without changing the directory names.
For a file that is allocated to the shared disk unit, you need to create a symbolic link so that it can be referenced from the HiRDB Datareplicators on both the primary and the secondary systems using the same path name. For details about how to create a symbolic link, see 4.6.2 Preparation of the files used with the source Datareplicator and 4.7.2 Preparation of the files used with the target Datareplicator.
The following table shows the file-related preparations that are required when the system switchover facility is used.
Table 6-18 Preparation of files for using the system switchover facility
| Classification | Filename | Shared disk unit | Same directory name? |
|---|---|---|---|
| Source Datareplicator | Extraction system definition file | N/A | Yes |
| Extraction environment definition file | N/A | Yes | |
| Transmission environment definition files | N/A | Yes | |
| Extraction definition file# | N/A | N/A | |
| Duplexing definition file | N/A | Yes | |
| Duplexing control file | N/A | Yes | |
| Extraction definition preprocessing file | D | N/A | |
| Extraction information queue files | D | N/A | |
| Extraction master status file | D | N/A | |
| Extraction server status file | D | N/A | |
| Extraction master error information files | N/A | N/A | |
| Extraction node master error information files | N/A | N/A | |
| Extraction master trace files | N/A | N/A | |
| Extraction node master trace files | N/A | N/A | |
| Data linkage file | H | N/A | |
| Command log file | N/A | N/A | |
| Target Datareplicator | Import system definition file | N/A | Yes |
| Import environment definition files | N/A | Yes | |
| Import definition files | N/A | Yes | |
| Duplexing definition file | N/A | Yes | |
| Duplexing control file | N/A | Yes | |
| Import information queue files | D | N/A | |
| Import status files | D | N/A | |
| Import master status file | D | N/A | |
| Import error information files | N/A | N/A | |
| Import trace files | N/A | N/A | |
| Unimported information files | N/A | N/A | |
| Command log files | N/A | N/A | |
| SAM files | N/A | Yes | |
| Update information definition file | N/A | Yes | |
| Unextracted data storage file | N/A | Yes | |
| User-created mapping table for converting character codes | N/A | Yes | |
| Recovery information file | N/A | N/A |
D: The file must be allocated to the shared disk unit. The file must be allocated to a volume group on the shared disk unit that can be swapped when system switchover occurs on the HiRDB Datareplicator. Because the switchover timing is different, the file must be allocated to a different volume group than that for the file shown as H. The allocated volume group must be set by the HA monitor's server support environment setup so that it can be swapped when system switchover occurs on the HiRDB Datareplicator.
H: The file must be allocated to a volume group on the shared disk unit that can be swapped when system switchover occurs on the HiRDB Datareplicator. Because the switchover timing is different, the file must be allocated to a different volume group than that for the file shown as D. However, if the resource server facility is used, this file can be allocated to the same volume group as that for the file shown as D. The allocated volume group must be set by the HA monitor's server support environment setup so that it can be swapped when system switchover occurs on the HiRDB Datareplicator.
Yes: The file must be allocated to the shared disk unit, or the file must be copied in advance from the primary system to the secondary system under the same directory name. If the file contents are updated, the updated file must also be copied to the secondary machine in advance.
N/A: Not applicable.
#: The file must be copied from the primary system to the secondary system in advance.
For the source Datareplicator, you must allocate a host name that inherits the IP address for communication from the extraction master process to the extraction node master process. This host name must be different from the host name that is used by HiRDB.
You must specify this host name for the source Datareplicator that inherits IP addresses in the node_host operand of the extraction system definition in such a manner that it is associated with the host name specified in the -x operand of the pdunit command or the pdstart command in the source HiRDB's system common definition.
The following figure shows the relationship between the source system's server and main processes.
Figure 6-29 Relationship between the source system's server and main processes
Define the correspondence between the host name specified in the -x operand of the pdunit command or the pdstart command in the source HiRDB's system common definition and the host name that starts the extraction node master process. The extraction master process connects to the host that starts the extraction node master process.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.