Nonstop Database, HiRDB Version 9 System Operation Guide

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

3.5.8 Adding a new system log file

This section explains the procedure for adding a new system log file.

Before a system log file is added, we recommend that the system log file design guidelines be reviewed; for details, see the HiRDB Version 9 Installation and Design Guide.

Organization of this subsection
(1) When HiRDB can be terminated normally
(2) When HiRDB cannot be terminated normally

(1) When HiRDB can be terminated normally

Procedure
  1. Use the pdfstatfs command to check for free space in the HiRDB file system area for creating system log files.
    pdfstatfs /sysfile01
    If there is no free space, create a new HiRDB file system area. For details about creating a HiRDB file system area, see 10.2 Creating (initializing) a HiRDB file system area.
  2. Use the pdstop command to terminate HiRDB normally.
  3. Add one of the operands listed below to the HiRDB system definition. Specify in the operand the system log files added in step 4.
    [Figure] pdlogadfg -d sys operand
    [Figure] pdlogadpf -d sys operand
  4. Use the pdloginit command to add (initialize) system log files.
    pdloginit -d sys -s b001 -f /sysfile01/syslog1a -n 5000
    pdloginit -d sys -s b001 -f /sysfile01/syslog1b -n 5000
  5. Use the pdconfchk command to check the HiRDB system definition. If an error is detected, correct the HiRDB system definition.
  6. Use the pdstart command to start HiRDB normally.
We recommend that after the command has executed you check whether the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 9 Command Reference.

(2) When HiRDB cannot be terminated normally

You can use the pdchgconf system reconfiguration command to change the HiRDB system definition. However, HiRDB Advanced High Availability must have been installed to use this command.

Procedure
  1. Use the pdfstatfs command to check for free space in the HiRDB file system area for creating system log files.
    pdfstatfs /sysfile01
    If there is no free space, create a new HiRDB file system area. For details about creating a HiRDB file system area, see 10.2 Creating (initializing) a HiRDB file system area.
  2. Create the $PDDIR/conf/chgconf directory.
  3. Copy the HiRDB system definition files being used to the directory created in step 2.
  4. Add one of the following operands to the HiRDB system definition in the $PDDIR/conf/chgconf directory. Specify in this operand the system log files that will be added in step 5.
    [Figure] pdlogadfg -d sys operand
    [Figure] pdlogadpf -d sys operand
  5. Use the pdloginit command to add (initialize) system log files.
    pdloginit -d sys -s b001 -f /sysfile01/syslog1a -n 5000
    pdloginit -d sys -s b001 -f /sysfile01/syslog1b -n 5000
  6. Use the pdconfchk command to check the HiRDB system definition in the $PDDIR/conf/chgconf directory. If an error is detected, correct the HiRDB system definition and re-execute the pdconfchk command.
  7. Use the pdchgconf command to replace the HiRDB system definition with the modified HiRDB system definition.
We recommend that after the command has executed you check whether the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 9 Command Reference.

Remarks
When you use the procedure described here to add system log files, the system log files are swapped while the pdchgconf command is being executed. If there are no files in swappable target status, an added system log file is swapped in.