Hitachi

Hitachi Advanced Database Setup and Operation Guide


15.3.3 When a free space shortage is caused by an increase in the size of files other than the DB area files

This subsection explains the steps to take when increases in the size of files stored in the DB directory, other than DB area files, result in insufficient free space on the disk being used to store files.

Organization of this subsection

(1) When the space shortage is caused by entity files under the DB directory

Change the storage location of the DB directory to a disk having a larger capacity, as described in the following procedure. The following describes how to change the output destination.

Procedure
  1. Terminate the HADB server.

    Terminate the HADB server using the adbstop command.

  2. Copy the files under the DB directory.

    Using the operating system's cp command, copy all files under the DB directory to a different disk having a larger capacity.

  3. Modify the adb_db_path operand in the server definition.

    In the adb_db_path operand, specify the absolute path name of the DB directory to which you copied the files. The server definition file is the server.def file stored under the server directory ($ADBDIR/conf). Open and modify it using a text editor.

  4. Start the HADB server.

    Start the HADB server using the adbstart command.

(2) When the space shortage is caused by symbolically linked files

Change the storage location of the symbolically linked files under the DB directory to a disk having a larger capacity. Then, change the link destination of the symbolic link as described in the following procedure.

To change the link target of the symbolic link:
  1. Terminate the HADB server.

    Terminate the HADB server using the adbstop command.

  2. Copy the files at the link destination.

    Using the operating system's cp command, copy all files referenced in the symbolic link file to a different disk having a larger capacity.

  3. Change the symbolic link.

    Using the operating system's ln command, change the link destination of the symbolic link to point to the disk having the larger capacity.

  4. Start the HADB server.

    Start the HADB server using the adbstart command.

(3) When a free space shortage is caused by an increase in the size of the statistics log files

Change the output destination for statistics log files to another disk having larger capacity. The following describes how to change the output destination.

Procedure
  1. Terminate the HADB server normally.

    Execute the adbstop command to terminate the HADB server normally.

  2. Change the output destination for statistics log files.

    Specify the output destination directory for statistics log files in the adb_sta_log_path operand. Make sure that statistics log files are output to a disk having a larger capacity.

    For details about the adb_sta_log_path operand in the server definition, see the description of the adb_sta_log_path operand in 7.2.7 Operands related to statistical information (set format).

    The server definition file is the server.def file stored under the server directory ($ADBDIR/conf). Open and modify it by using a text editor.

  3. Start the HADB server normally.

    Execute the adbstart command to start the HADB server normally.

If you change the output destination for statistics log files, old statistics log files remain in the output destination that was used before change. If the old statistics log files are not needed, you must delete them manually. For details about how to delete statistics log files, see (4) Deleting statistics log files in 10.10.5 Using the statistics log files.