Appendix D.8 Deleting troubleshooting information

When a server process or a client is terminated forcibly, HiRDB outputs troubleshooting information to the $PDDIR/spool directory. Also, when you terminate a command or utility while it is executing by pressing Ctrl-C, for example, temporary work files generated by the command or utility remain in the $PDDIR/tmp directory. If these troubleshooting information and temporary work files are not deleted, they may eventually cause a space shortage on the disk containing the HiRDB directory. To prevent a space shortage from occurring on the disk containing the HiRDB directory and causing HiRDB abnormal termination, HiRDB regularly deletes the files listed below:

These files are normally deleted every 24 hours. This deletion interval can be changed with the pd_spool_cleanup_interval operand. In addition, files that were output a specific number of days in the past can be deleted by specifying an appropriate value in the pd_spool_cleanup_interval_level operand.

You can also delete troubleshooting information files and temporary work files (files in the $PDDIR/tmp directory) with the pdcspool command.

You select the troubleshooting information to be deleted by specifying it in the pdcspool command option or the pd_spool_cleanup_interval_level operand.

Note
  • There are situations in which troubleshooting information files output by a command or utility that a user other than the HiRDB administrator executed cannot be deleted. In such cases, a user who has troubleshooting information file deletion privileges uses the OS's rm or other command to delete the files.
  • If a HiRDB operation command or utility is aborted when the TMPDIR environment variable is specified, there are situations in which HiRDB creates files beginning with the letters pdcmd or plcmd in the directory specified in TMPDIR. If these files are not deleted even after the HiRDB operation command or utility has terminated, the OS's rm or other command can be used to delete them.