background image
<< Script variables and file access | Unmount any local Volume Copies >>
<< Script variables and file access | Unmount any local Volume Copies >>

Check array status

Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-34
Remote Mirroring of an Oracle Database Using Data Replicator Software
trap_WAIT 5
tput sgr0
tput cnorm
return 1
fi
}
CleanUp ()
{
Kill_WAIT 5
echo "\nUser abort detected, Exiting Now!"
exit 5
}
display ()
{
trap 'CleanUp' 1 2 3 15
echo "`tput sc`$1...`tput rc``tput cuf 69`\c"
WAIT &
WPID=$!
}
# **** End of FUNCTIONS ****
# **** Start of Main script ****
#------------------------------------------
# Check script variables and file access
#------------------------------------------
clear
display "Begin erm.ksh script, checking configuration"
# Need sleep to allow display to function correctly
sleep 1
if [[ ${#VOL_MNT[*]} -ne MIRROR_NUM || ${#VOL_SP[*]} -ne
MIRROR_NUM || ${#VOL_VC[*]} -ne MIRROR_NUM ]]; then
Kill_WAIT 1
echo "\t${B1}ERROR:${EB} Configuration file variables do
not match!"
echo "\tPlease edit the $CFG_FILE and verify the
variables."
echo "\nExiting Now!"; exit 2
else
echo "`date +%T` SUCCESS - Array variables match." >> $LOG
fi
# Verify SMcli is installed and executable
if [[ -x /usr/sbin/SMcli ]]; then
echo `date +%T`" SUCCESS - SMcli status is good." >> $LOG
Kill_WAIT 0
else