OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

4.2.2 Use of status files

Status files are used to record the operating status of each system service comprising OpenTP1, the status of files, system control information for various devices, etc.

OpenTP1 manages status files for both systems A and B in the following statuses:

The following figure shows the status changes of a status file in the online mode.

Figure 4-2 Status changes for status file in online mode

[Figure]

A maximum of seven status files can be specified in the status service definition for each of the systems (A and B). When OpenTP1 is started normally, the first status file specified in the status service definition is placed on current status, any remaining status files that can be opened are placed on standby status, and any status files that cannot be opened are placed on reserve status. A status file that cannot be opened due to an error is placed on shutdown status. When OpenTP1 is restarted, the previous current file is inherited.

The same information is written in the current status files for both systems A and B.

If an I/O error occurs in one of the current status files for either system A or B, OpenTP1 copies the contents of the other system's current file into a standby file of the systems A and B and then places the standby file on current status. Such switching of current files is called swapping. Files can also be swapped by the user with the stsswap command.

A status file swapped due to an error becomes a spare file if it is deleted by the stsrm command, initialized by the stsinit command, and then opened by the stsopen command.

Where no standby file is available, the processing continues under the normal system alone if one-system operation has been specified in the status service definition (sts_single_operation_switch=continue); OpenTP1 terminates abnormally if one-system operation has not been specified (sts_single_operation_switch=stop).

If, during one-system operation, the normal system fails or OpenTP1 terminates abnormally when a status file is updated, it becomes impossible to restart OpenTP1. Therefore, it is required that double-system operation (both A and B being active) be restored as early as possible by taking either of the following two procedures: