18.4.3 Actions to be taken in the event of an error in the master directory RDAREA

If an error occurs in the master directory RDAREA, HiRDB cannot be restarted. In such a case, the following procedure must be used to restore the RDAREA:

Procedure
To restore the RDAREA:
  1. Enter the pdstart -r command to start HiRDB.
  2. Use the pdrstr command to restore the master directory RDAREA:
    pdrstr -m /rdarea/mast/mast01 -b /pdcopy/backup01
    -l /unld/unldlog01,/unld/unldlog02 -w /tmp/sortwork/
    -r PDBMAST
  3. Enter the pdstop command to terminate HiRDB.
  4. Enter the pdstart command to start HiRDB.
  5. Use the pdclose command to close the erroneous RDAREA (master directory RDAREA):
    pdclose -r rdarea01,rdarea02
  6. Use the database recovery utility (pdrstr command) to restore the RDAREA:
    pdrstr -m /rdarea/mast/mast01 -b /pdcopy/backup01
    -l /unld/unldlog01,/unld/unldlog02 -w /tmp/sortwork/
    -r rdarea01,rdarea02
  7. Use the pdrels -o command to release the restored RDAREA from shutdown status and then open it:
    pdrels rdarea01,rdarea02 -o
It is recommended that after the command has executed you check whether or not the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 8 Command Reference.