Nonstop Database, HiRDB Version 9 System Operation Guide

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

5.2.6 Adding a new status file

This section explains the procedure for adding a new status file. Before a status file is added, we recommend that the status 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 in which status files are to be created.
    pdfstatfs /sysfile01
    If there is no free space, create a new HiRDB file system area. For details, see 10.2 Creating (initializing) a HiRDB file system area.
  2. Use the pdstop command to terminate HiRDB normally.
  3. Add the applicable operand listed below to the HiRDB system definition. Specify in this operand the status files to be created in step 4.
    [Figure] pd_syssts_file_name operand (for unit status files)
    [Figure] pd_sts_file_name operand (for server status files)
  4. Use the pdstsinit command to add (initialize) the status files.
    pdstsinit -s b001 -f /sysfile01/ssts1a -l 4096 -c 1000
    pdstsinit -s b001 -f /sysfile01/ssts1b -l 4096 -c 1000
  5. Use the pdconfchk command to check the HiRDB system configuration. If errors are detected, correct the HiRDB system definition and re-execute the pdconfchk command.
  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

Use the pdchgconf system reconfiguration command to change the HiRDB system definition. Note that HiRDB Advanced High Availability must have been installed in order to use this command.

Procedure
  1. Use the pdfstatfs command to check for free space in the HiRDB file system area in which status files are to be created.
    pdfstatfs /sysfile01
    If there is no free space, create a new HiRDB file system area. For details, see 10.2 Creating (initializing) a HiRDB file system area.
  2. Create the $PDDIR/conf/chgconf directory.
  3. Copy the HiRDB system definition files currently being used to the directory created in step 2.
  4. Add the applicable operand listed below to the HiRDB system definition in the $PDDIR/conf/chgconf directory. Specify in this operand the status files to be added in step 5.
    [Figure] pd_syssts_file_name operand (for unit status files)
    [Figure] pd_sts_file_name operand (for server status files)
  5. Use the pdstsinit command to add (initialize) the status files.
    pdstsinit -s b001 -f /sysfile01/ssts1a -l 4096 -c 1000
    pdstsinit -s b001 -f /sysfile01/ssts1b -l 4096 -c 1000
  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 existing HiRDB system definition with the modified 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.