Nonstop Database, HiRDB Version 9 System Operation Guide

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

21.5.1 Example (migrating a backup acquired in HiRDB system A in a test environment to HiRDB system B in an actual operating environment)

This example acquires a backup in HiRDB system A in a test environment, and migrates it to HiRDB system B, which has the same system configuration and is in an actual operating environment. Both HiRDB systems A and B are running.

Organization of this subsection
(1) Acquire a backup in HiRDB system A
(2) Migrate the backup file of HiRDB system A to HiRDB system B
(3) Use the backup files of HiRDB system A and recover them in HiRDB system B

(1) Acquire a backup in HiRDB system A

(a) Shut down and close all RDAREAs (excluding the master directory RDAREA)
 
pdhold -r ALL -c
 
(b) Back up all RDAREAs
 
pdcopy -m /rdarea/mast/mast01 -M r -a -b /pdcopy/backup01
-p /pdcopy/list01
 

Explanation
-m: Specifies the name of the first HiRDB file in the master directory RDAREA.
-M: Specifies the reference-possible mode for the backup acquisition mode.
-a: Specifies that all RDAREAs are to be backed up.
-b: Specifies the name of the backup file.
-p: Specifies the output destination for the pdcopy command's processing results listing.
(c) Release all RDAREAs (excluding the master directory RDAREA) from shutdown status and open them
 
pdrels -r ALL -o
 

(2) Migrate the backup file of HiRDB system A to HiRDB system B

Migrate the backup file for all RDAREAs of HiRDB system A acquired in step (1) (/pdcopy/backup01) to HiRDB system B.

(3) Use the backup files of HiRDB system A and recover them in HiRDB system B

(a) Enter the pdstop command to terminate HiRDB normally
 
pdstop
 
(b) Enter the pdstart -r command to start HiRDB
 
pdstart -r
 
(c) Enter the pdrstr command to restore all RDAREAs
 
pdrstr -m /rdarea/mast/mast01 -b /pdcopy/backup01 -a
 

Explanation
-m: Specifies the name of the first HiRDB file in the master directory RDAREA.
-b: Specifies the name of the backup file acquired in HiRDB system A.
-a: Specifies that all RDAREAs are to be recovered.
(d) Enter the pdstop command to terminate HiRDB normally
 
pdstop
 
(e) Enter the pdstart command to start HiRDB normally
 
pdstart
 

We recommend that after the command has executed you check whether the execution results are correct. For details about how to check command execution results, see the manual HiRDB Version 9 Command Reference.