Nonstop Database, HiRDB Version 9 System Operation Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
3.2.1 HiRDB single server configuration
(1) Check the file status when the system log files are swapped
When a system log file becomes full, it is swapped with another file. When system log file swapping occurs, the KFPS01221-I and KFPS01222-I messages are output to the message log file and the syslogfile. The pdlogls command can be used to check the status of the system log file:
![[Figure]](FIGURE/ZU032010.GIF)
- Explanation
- Because the log01 file has been filled with the system log, the system log output destination changes from log01 to log02 (the system log files are swapped). As a result, log01 is placed in the following statuses:
- Overwrite disabled
- Unload wait
(2) Unload the system log
Use the pdlogunld command to unload the file (log01) that is in unload wait status.
pdlogunld -d sys -g log01 -o /unld/unldlog01
|
(3) Check the status of the system log file
The pdlogls command is used to check the status of the system log file (log01):
![[Figure]](FIGURE/ZU032020.GIF)
- Explanation
- Once the system log has been unloaded, the file status changes from unload wait to unload completed.
- When the system log files are swapped, synchronization point dump validation processing is executed. When the synchronization point dumps have been validated, the file status changes from overwrite disabled to overwrite enabled.
- As a result, the file status changes from unswappable target to swappable target.
- Important
- If system log file swapping occurs when there is no file in swappable target status, the HiRDB single server configuration configuration terminates abnormally. For this reason, the HiRDB administrator must ensure that there is always available a file in swappable target status. When there are no files in swappable target status, HiRDB outputs the KFPS01224-I message to the message log file and to the syslogfile.
(4) Swap the system log files
Before a backup copy is made, the pdlogswap command is used to swap the system log files. System log files are swapped in order to physically separate the system logs needed for database restoration. The system log files storing the system log information needed for database restoration are those that become primary from this point on.
(5) Make a backup
The pdcopy command (database copy utility) is used to back up all RDAREAs. For details about making backups, see 6. Backup Procedures.
pdcopy -m /rdarea/mast/mast01 -M r -a -b /pdcopy/backup01
|
- Explanation
- -m: Specifies the name of the first HiRDB file in the master directory RDAREA.
- -M: Specifies the backup acquisition mode (r or s).
- -a: Specifies that all RDAREAs are to be backed up.
- -b: Specifies the name of the backup file.
- Important
- If the backup copy made in this step is used subsequently to recover the RDAREAs, the unload log files containing system log information subsequent to this current file are used as input to the database recovery utility.
(6) Check the status of the system log file
The pdlogls command is used to check the status of the system log file:
![[Figure]](FIGURE/ZU032030.GIF)
(7) Unload the system log
Use the pdlogunld command to unload the file (log02) that is in unload wait status.
pdlogunld -d sys -g log02 -o /unld/unldlog02
|
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.