Nonstop Database, HiRDB Version 9 Installation and Design Guide
The following explains some of the design considerations for system log files.
100 (unit: megabytes) |
| Size of one system log file (bytes) |
System log file total size (bytes) |
If the total size of the system log files is unchanged, the size of each generation will depend on how many generations of system log files are being maintained. The following table describes the effect on operations of the number of generations of system log files. The total size of the system log files is unchanged.
Table 9-6 Effects on operations of the number of generations of system log files
| Comparison item | System log file configuration | |
|---|---|---|
| Small number of generations | Large number of generations | |
| Size of each generation of system log files | Becomes larger. | Becomes smaller. |
| Swap interval | Because the size of each generation of system log files becomes larger, the swap interval becomes longer. | Because the size of each generation of system log files becomes smaller, the swap interval becomes shorter. |
| Unload frequency | Because the swap interval becomes longer, the unload frequency becomes lower. | Because the swap interval becomes shorter, the unload frequency becomes higher. |
| Effects on the system log size when something such as a disk failure makes several generations of system log files unusable |
|
|
In normal operations, the lower the number of generations of system log files, the more advantageous the swapping interval and the unload frequency will become. However, if there is a failure, the effects on operations will be reduced with a larger number of log file generations.
When system log file duplexing is used, HiRDB acquires the same system log information in both versions. In the event of an error on one of the versions, the system log can be read from the other version, thereby improving system reliability. When dual system log files are used, they must be used under the management of HiRDB rather than using a mirror disk. When using dual system log files, create the files for each system on a separate hard disk.
To use dual system log files, specify the following operands in the server definition:
Single operation of system log files is employed when dual system log files are used.
In the event of an error in a system log file, processing can continue using the normal version of the system log file without having to terminate the HiRDB unit abnormally even if neither system has a usable system log file. This is called single operation of system log files. To perform single operation of system log files, specify pd_log_singleoperation=Y in the server definition.
As opposed to single operation of system log files, continuing processing using both versions of system log files (normal processing mode) is called double operation of system log files
If there is no overwrite-enabled system log file at the time of a HiRDB restart, but a reserved file is available, then HiRDB continues processing by opening the reserved file and placing it in overwrite-enabled status. This is called automatic opening of system log files.
To perform automatic opening of system log files, specify pd_log_rerun_reserved_file_open=Y in the server definition.
When system log files need to be swapped, if no swappable target system log files exist, HiRDB (the unit) terminates abnormally. To prevent this, HiRDB has a facility for monitoring the free space remaining for system log files. This facility operates when the percentage of available free area for the system log files reaches a warning value. Select one of the following two levels:
If level 2 is selected, all transactions on the server are terminated forcibly when there is insufficient free space in the system log files. Therefore, the design of system log files requires more accuracy.
For details about this facility, see the HiRDB Version 9 System Operation Guide.
The HiRDB system (or unit) terminates abnormally when it runs out of free space for system log files. To prevent this, HiRDB provides a facility to automatically expand the space for system log files (the system log file automatic extension facility). By using this facility, you can reduce the frequency of abnormal termination of the HiRDB system (or unit) due to lack of free space for system log files.
For details about the system log file automatic extension facility, see the HiRDB Version 9 System Operation Guide.
If a UAP continues to update the database in an infinite loop, it cannot enable the synchronization point, and the number of system log files that cannot be overwritten increases. If the point is reached where none of the system log files can be overwritten, HiRDB terminates abnormally.
If HiRDB is forcibly terminated or terminates abnormally when the number of system log files that cannot be overwritten reaches one-half or more of all system log files, a shortage of system log files occurs during rollback processing when HiRDB restarts. In this case, HiRDB cannot be restarted unless new system log files are added. Any such restart processing will take longer than usual.
To prevent this, HiRDB has established a skipped effective synchronization point dump monitoring facility.
For details about this facility, see the HiRDB Version 9 System Operation Guide.
When the system log file is duplexed, using the facility for parallel output of system logs allows log output to the two systems to be executed in parallel, so less time is required. To use the facility for parallel output of system logs, you will need an aio library (for AIX, the Asynchronous I/O Subsystem; for Linux, libaio). For details about the Asynchronous I/O Subsystem or libaio, see the OS documentation.
Note that when you use the facility for parallel output of system logs on the Linux version, it is assumed that the platform you are using is one of the following:
Although you can define for each server whether the facility for parallel output of system logs is to be used, we recommend that you apply this facility to all servers. We also recommend that you place the primary and secondary files on separate devices in order to further reduce the time required for output of log information.
In the server definition, specify pd_log_dual_write_method=parallel. In the following cases, the facility for parallel output of system logs is not applied, regardless of the specified value:
Install the aio library on all server machines that will use the facility for parallel output of system logs, and perform the required settings. See the OS documentation for details about how to install and set up the aio library.
If the aio library installation and settings are not performed correctly using the environment settings described in (b), HiRDB cannot start.
| Parameter | Recommended value |
|---|---|
| STATE to be configured at system restart | available |
| STATE of FastPath | enable# |
If the record length is not 1,024, we recommend that you change it to 1,024 to improve system log storage efficiency.
For details about how to change the system log file record size, see the HiRDB Version 9 System Operation Guide.
The pdlogadfg and pdlogadpf operands are used to define the correspondence between file groups and the created system log files.
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.