Scalable Database Server, HiRDB Version 8 System Operation Guide

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

19.2.1 Example 1: Recovering all RDAREAs

This example recovers all RDAREAs, including system RDAREAs, to their status at the backup acquisition point; it is assumed that a backup copy of the entire system (backup of all RDAREAs) is available.

Organization of this subsection
(1) Enter the pdstop command to terminate HiRDB normally
(2) Enter the pdstart -r command to start HiRDB
(3) Use the pdrstr command to restore all RDAREAs
(4) Enter the pdstop command to terminate HiRDB normally
(5) Enter the pdstart command to start HiRDB normally
(6) Use the pdrels command to release and open RDAREAs that are in error shutdown status

(1) Enter the pdstop command to terminate HiRDB normally

 
pdstop
 

If HiRDB cannot be terminated normally, take either of the following actions when starting HiRDB in step (5):

(2) Enter the pdstart -r command to start HiRDB

 
pdstart -r
 

(3) Use 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 containing the backup data for all RDAREAs.
-a: Specifies that all RDAREAs are to be recovered.

(4) Enter the pdstop command to terminate HiRDB normally

 
pdstop
 

(5) Enter the pdstart command to start HiRDB normally

 
pdstart
 

(6) Use the pdrels command to release and open RDAREAs that are in error shutdown status

 
pdrels -r rdarea01,rdarea02, ... -o
 

This step is not necessary if you start HiRDB after initializing status files.

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.