Previous  |  Next  >  
Product: Volume Replicator Guides   
Manual: Volume Replicator 4.1 Support for HP Serviceguard Administrator's Guide   

Understanding the Functions in the vvr.sh Script

This chapter describes how you can use the vvr.sh script to start, monitor, and stop the VVR RVG resource.

The package control scripts contain all the information necessary to run all the services in the package, monitor them during operation, respond to a failure, and halt the package when necessary. These scripts are modified to include information about VVR.

The vvr.sh script provides the functionality to manage and monitor VVR RVG resource. This script provides specific functions that enable you to perform the required tasks. The package control scripts use this functionality provided by the vvr.sh script to manage the VVR resources along with volume groups and disk groups.

Starting the RVG

The vvr.sh script provides a function vvr_activate_cmds that performs the following tasks for the specified disk groups:

  • Starts all the VVR volumes under the RVG.
  • Starts the SRL volume for the specified RVG.
  • Recovers the RVGs and RLINKs within the specified disk groups.
  • Starts the RVGs.


Usage

/opt/VRTSvrmcsg/vvr.sh [-r max_retry] activate DiskGroup(s)

Option Description

-r max_retry

Specifies the maximum number of times the script must retry starting the volumes and SRL under an RVG in case of a failure.

The default is 5.


Example


/opt/VRTSvrmcsg/vvr.sh activate hrdg
/opt/VRTSvrmcsg/vvr.sh -r 2 activate hrdg

/opt/VRTSvrmcsg/vvr.sh activate hrdg1 hrdg2
/opt/VRTSvrmcsg/vvr.sh -r 3 activate hrdg1 hrdg2

Monitoring the RVG

The vvr.sh script provides a function vvr_monitor_cmds that monitors the state of all the RVGs in the specified disk groups. It checks for the following RVG states:

    • ENABLED / EMPTY
    • ENABLED / ACTIVE

It also monitors the vradmind and in.vxrsyncd daemons.


Usage


/opt/VRTSvrmcsg/vvr.sh [-i interval] monitor DiskGroup(s)
Option Description

-i interval

Specifies the time interval in seconds, during which the script will wait between checks, for the RVG state. The default is 30 seconds.

An RVG is monitored for local access only. Replication is not monitored. The replication fails if the RVG is not in the ENABLED state.


Examples


/opt/VRTSvrmcsg/vvr.sh monitor hrdg
/opt/VRTSvrmcsg/vvr.sh -i 10 monitor hrdg

/opt/VRTSvrmcsg/vvr.sh monitor hrdg1 hrdg2
/opt/VRTSvrmcsg/vvr.sh -i 50 monitor hrdg1 hrdg2
 ^ Return to Top Previous  |  Next  >  
Product: Volume Replicator Guides  
Manual: Volume Replicator 4.1 Support for HP Serviceguard Administrator's Guide  
VERITAS Software Corporation
www.veritas.com