Hitachi

Hitachi Advanced Database Setup and Operation Guide


10.3.4 Backup operation example (using ShadowImage)

This section provides an example of a backup operation using ShadowImage, which is a volume replication facility of a Hitachi disk array system.

Using ShadowImage can reduce the time needed to make a backup and restore from the backup. For details about ShadowImage, see the ShadowImage User's Guide.

Organization of this subsection

(1) Note on using ShadowImage

Do not generate a pair by specifying the Conceal mode (-m noread).

(2) Directory configuration example

In this example, all the following directories are backed up and stored in the primary volume of ShadowImage.

(3) Making a backup

This subsection provides an operation example using ShadowImage to make a backup.

Figure 10‒5: Example of using ShadowImage to make a backup

[Figure]

Conditions:
  • Following database initialization, the HADB server was started at least once.

  • It has been confirmed that there are no non-updatable base tables.

  • To suppress database updating, the HADB server's operation mode is changed to the quiescence mode.

  • A full backup is used.

  • The DB directory, archive directory, and the directory for storing synonym dictionary files are to be backed up.

Procedure:

  1. Synchronize the pair.

    Start pair synchronization. Since pair synchronization can take some time, we recommend that you start the pair volume synchronization before changing the HADB server's operation mode to the quiescence mode.

  2. Change the HADB server's operation mode to the quiescence mode.

    Execute the adbchgsrvmode --quiescence command to change the HADB server's operation mode to the quiescence mode. After you have changed the operation mode to the quiescence mode, wait for pair synchronization to finish.

  3. Split the pair.

    When pair synchronization is complete, backup acquisition is also complete. Therefore, split the pair. In this way, the backup that was acquired when pair synchronization started is held in the sub-volume.

  4. Change the HADB server's operation mode to the normal mode.

    Execute the adbchgsrvmode --normal command to change the HADB server's operation mode to the normal mode. Backup acquisition using ShadowImage is now finished.

(4) Recovering a database from a backup

This section provides an example of recovering a database from a backup acquired according to (3) Making a backup.

Figure 10‒6: Example of using ShadowImage to recover a database from a backup

[Figure]

Procedure:

  1. Terminate the HADB server.

    Before recovering the database from the backup, terminate the HADB server. Execute the following command to terminate the HADB server:

    adbstop
  2. Unmount the file system.

    Unmount the file system that is stored in the primary volume.

  3. Recover the database from the backup.

    Reverse-synchronize the pair and recover the database from the backup. Synchronize the content of the sub-volume to the primary volume.

    Important

    Be careful not to synchronize the content of the primary volume to the sub-volume.

  4. Split the pair.

    When reverse-synchronization of the pair is complete, recovery from the backup is complete. Therefore, split the pair.

  5. Mount the file system.

    Mount the file system that was unmounted in step 2.

  6. Start the HADB server.

    Execute the following HADB command to start the HADB server:

    adbstart
  7. Check the HADB server's status.

    After you have started the HADB server, check whether the HADB server's operation mode is the normal mode. Execute the following command to check the HADB server's status:

    adbls -d srv

    Check the item STATUS in the execution result. If STATUS is ACTIVE, the operation mode is set to the normal mode.