Nonstop Database, HiRDB Version 9 Disaster Recovery System Configuration and Operation Guide

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

Appendix B. Sample Shell Program

When running Real Time SAN Replication, you can use this sample shell program to display the volume attributes and statuses of paired logical volume groups.

Organization of this section
(1) Where to find the sample shell program
(2) Preparation
(3) Sample shell program execution

(1) Where to find the sample shell program

The sample shell program is stored under $PDDIR/bin. The file name is pdpairdsp.sh.

(2) Preparation

The following preparation is necessary to use the sample shell program.

Procedure
  1. Because the sample shell program must be customized for each usage environment, copy the sample shell program located in $PDDIR/bin to the current directory from which you will execute it.
  2. Customize the sample shell program. The shell variable in the sample shell program must be changed based on the usage environment. The following table shows the shell variable that you must change.
    Shell name Variable name Value to be specified
    pdpairdsp.sh HORCMINST Specify the value of the HORCMINST operand in the system common definition.
  3. Before executing the sample shell, start the instance of the RAID Manager that is to be used by Real Time SAN Replication.

(3) Sample shell program execution

A HiRDB administrator who also has RAID Manager administrator privileges can execute the sample shell program. Enter the following command line to execute the sample shell program.

 
pdpairdsp.sh paired-logical-volume-group-name[ paired-logical-volume-group-name ...]
 

paired-logical-volume-group-name: Specify the name of the paired logical volume group to be the target when executing the sample shell.

To specify multiple paired logical volume group names, delimit them using single-byte spaces.