Nonstop Database, HiRDB Version 9 System Operation Guide

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

21.6.5 Example 5: Recovering the master directory RDAREA only

This example recovers only the master directory RDAREA to the most recent synchronization point before an error occurred. The system log is being unloaded.

Organization of this subsection
(1) Use the pdlogls command to check for the current system log file
(2) Use the pdlogunld command to unload what was the current system log file
(3) Recover the master directory RDAREA to the backup point
(4) Use the pdstart -r command to start HiRDB
(5) Use the pdrstr command to recover the RDAREA to the most recent synchronization point
(6) Use the pdstop command to terminate HiRDB normally
(7) Back up the master directory RDAREA
(8) Use the pdstart -r command to start HiRDB

(1) Use the pdlogls command to check for the current system log file

In the case of a HiRDB parallel server configuration, check the system log files at all servers.

 
pdlogls -d sys
 

(2) Use the pdlogunld command to unload what was the current system log file

Unload the current system log file checked in step (1).

In the case of a HiRDB parallel server configuration, unload the current system log files at all servers.

 
pdlogunld -d sys -g log01 -o /unld/unldlog02
 

(3) Recover the master directory RDAREA to the backup point

Use another product's restore facility to recover the master directory RDAREA to a backup acquisition point.

(4) Use the pdstart -r command to start HiRDB

 
pdstart -r
 

(5) Use the pdrstr command to recover the RDAREA to the most recent synchronization point

 
pdrstr -m /rdarea/mast/mast01 -l /unld/unldlog01,/unld/unldlog02
-w /tmp/sortwork -r MAST
 

Explanation
-m: Specifies the name of the first HiRDB file in the master directory RDAREA.
-l: Specifies the names of the unload log files.
-w: Specifies the name of the work directory for sorting.
-r: Specifies the name of the master directory RDAREA (MAST).

(6) Use the pdstop command to terminate HiRDB normally

 
pdstop
 

(7) Back up the master directory RDAREA

Use another product's backup facility to back up the HiRDB file system area that comprises the master directory RDAREA.

(8) Use the pdstart -r command to start HiRDB

 
pdstart