Monitoring Veritas Cluster - Cisco ASR 5000 Series Installation And Administration Manual

External
Hide thumbs Also See for ASR 5000 Series:
Table of Contents

Advertisement

Veritas Cluster Installation and Management

Monitoring Veritas Cluster

To monitor the status of the Veritas cluster:
Step 1
Create the following script under /export/home/scripts to monitor the status of the cluster.
#!/bin/sh
## script to monitor the status of Veritas... if both nodes are offline, force to
start
## the number one (1) node.
## put this in crontab as:
## 0,15,30,45 * * * * /export/home/scripts/keep_vcs_active.sh
2>>/var/adm/messages
VCS=' [VCS] == '
CHECK_VCS=`hastatus -sum|grep -c ONLINE`
DATE=`date "+%m/%d/%Y %T"`
echo $DATE $VCS "Checking for Veritas started..." >> /var/adm/messages
if [ ${CHECK_VCS} -eq 0 ]
then
DATE=`date "+%m/%d/%Y %T"`
echo $DATE $VCS "Both nodes are offline... Making first node active" >>
/var/adm/messages
hagrp -clear LAPP >> /var/adm/messages
hagrp -online LAPP -sys less3
DATE=`date "+%m/%d/%Y %T"`
echo $DATE $VCS "First node activated. " >> /var/adm/messages
else
DATE=`date "+%m/%d/%Y %T"`
echo $DATE $VCS "Veritas is running normally." >> /var/adm/messages
fi
Step 2
Change the permission of the script to make it executable.
# chmod 755 /export/home/scripts/keep_vcs_active.sh
OL-22979-03
Cisco ASR 5000 Series External Storage Server Installation and Administration Guide ▄
Monitoring Veritas Cluster ▀
37

Advertisement

Table of Contents
loading

Table of Contents