OpenTP1 Version 7 System Definition
Format
set format
set sts_file_name_1="logical-file-name","system-A-status-file-name", "system-B-status-file-name" [set sts_file_name_2="logical-file-name","system-A-status-file-name", "system-B-status-file-name"] [set sts_file_name_3="logical-file-name","system-A-status-file-name", "system-B-status-file-name"] [set sts_file_name_4="logical-file-name","system-A-status-file-name", "system-B-status-file-name"] [set sts_file_name_5="logical-file-name","system-A-status-file-name", "system-B-status-file-name"] [set sts_file_name_6="logical-file-name","system-A-status-file-name", "system-B-status-file-name"] [set sts_file_name_7="logical-file-name","system-A-status-file-name", "system-B-status-file-name"] [set sts_initial_error_switch=stop|continue|excontinue] [set sts_single_operation_switch=stop|continue] [set sts_last_active_file="logical-file-name"] [set sts_last_active_side=A|B] [set watch_time=maximum-response-waiting-time] |
command format
None
Function
The status service definition defines the execution environment to manage the status of each system service operated under an OpenTP1 system environment. There is one status service for each node.
A maximum of 7 status file names can be defined. If an OpenTP1 system opens normally, the first defined status file becomes active. The other status files become reserved files. After a restart, the previous file in use will continue to be active.
Status files are managed in duplicate as system A and system B files for better reliability. The same contents are written into the active status file as system A and system B files. Thus, be sure to specify files in which all records are of the same length. Also specify files of the same capacity for each logical file.
Distribute the physical files of system A and system B to more than one disk. When all the physical files of the same system are created in one disk, the system cannot be used if the entire disk becomes faulty. For example, when all the physical files of the same system are created in one disk, there will be no generation of system A and B files that can be duplicated if a disk failure occurs. In this case, OpenTP1 may be terminated urgently or continues operation using only one system, and this may cause a loss of files.
Should a status file be damaged during a normal OpenTP1 system startup, a restart, or during on-line operation, the status service will swap status files to prevent OpenTP1 from suspending. However, this swap function requires that a spare status logical file be defined.
Explanation
set format
sts_file_name_1-sts_file_name_7="logical-file-name","system-A-status-file-name","system-B-status-file-name"
Specify up to seven status files. One file is created as the active file, and the other six files as spare files. Each status file will be created in duplicate as a system A status file and system B status file, to improve reliability.
The logical file name, system A status file name, and system B status file name must each be unique for each of the seven status files.
Specify files of the same record length and record number as for the system A file.
No environment variables can be used for the full path name of the system A or B status file name.
The same file name cannot be specified for the status files more than once even if the full path names are different.
sts_initial_error_switch=stop|continue|excontinue~<<stop>>
Specify the action of the status service if either of the following abnormalities is detected when opening the defined status file:
Table 3-4 Logical file states for which active file cannot be determined (continue)
No. | System A state | System B state |
---|---|---|
1 | BLOCKADE | BLOCKADE |
2 | BLOCKADE | OPEN (INIT) |
3 | BLOCKADE | NONE |
4 | OPEN (INIT) | BLOCKADE |
5 | OPEN (INIT) | NONE |
6 | NONE | OPEN (INIT) |
7 | NONE | BLOCKADE |
8 | NONE | NONE |
Table 3-5 Logical file states for which active file cannot be determined (excontinue)
No. | System A state | System B state |
---|---|---|
1 | BLOCKADE | BLOCKADE |
2 | BLOCKADE | NONE |
3 | NONE | BLOCKADE |
4 | NONE | NONE |
Note that if stsinit command initializes either system of the logical file active in the last online operation, the active file cannot be determined correctly.
For troubleshooting of status files, see the manual OpenTP1 Operation.
sts_single_operation_switch=stop|continue~<<stop>>
Specify the status service action to be taken if an I/O error occurs with one system for the active status file during startup or after starting the status service and there is no logical file of which both system files are swappable.
The KFCA01044-I message appears when single-system operation begins. Perform troubleshooting as soon as this message appears because OpenTP1 can no longer restart if either of the following errors occurs during single-system operation:
sts_last_active_file="logical-file-name"~<1-8 character identifier>
Specify the name of the last active file up to the last online operation as the logical file name. Specify this definition only if continue or excontinue is specified in the sts_initial_error_switch operand. It becomes effective if OpenTP1 cannot determine if the selected active file is the same as the last active file for the previous online operation.
Specify this operand as follows:
If an error occurred with one system for the active status file and this file was shut down in the previous online session, the system that was normal at that time must be specified in this operand.
This specification is used to prevent the defective system (detected in the previous online session) from being selected at restart of OpenTP1.
The sts_last_active_side operand must be specified if one system is shut down due to an error. It is valid only with continue specified in the sts_single_operation_switch operand.
watch_time=maximum-response-waiting-time~<unsigned integer> ((0-65535)) (Unit: seconds)
Specify the maximum waiting time between sending a service request and receipt of a response when communicating between processes by RPC.
OpenTP1 may suspend termination processing for the length of time specified in this operand. Therefore, if you specify a large value, the termination processing of OpenTP1 may take some time.
If no response is received within the specified time, RPC returns a transmission timeout error.
Specify 0 if the system is to wait for a response. When you specify 0, OpenTP1 may not terminate.
If this operand is omitted, the value specified with the watch_time operand of the system common definition is assumed.
Use the default of the watch_time operand of the system common definition for this operand.
We recommend that you do not change the operand unless special tuning is necessary.
If a value that is much greater or smaller than the default of the watch_time operand of the system common definition is specified, a failure may occur causing OpenTP1 to go down.
command format
None
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.