background image
<< Check array status | Resume database on Primary host >>
<< Check array status | Resume database on Primary host >>

Unmount any local Volume Copies

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
erm.ksh
Remote Mirroring of an Oracle Database Using Data Replicator Software
B-35
Kill_WAIT 1
echo "\t${B1}ERROR:${EB} You must have SMcli installed
and have executable status to use this script"
echo `date +%T`" ERROR: 3 - You must have SMcli installed
and executable status to it." >> $LOG
echo "Exiting now!"; exit 3
fi
#-------------------------
# Check array status
#-------------------------
display "Checking status of array: $RMT_ARRAY"
echo "# SMcli -n \"$RMT_ARRAY\" -S -c \"show storageArray
healthStatus;\" -o \"$RMT_LOG_DIR/${RMT_ARRAY}_status.tmp\"" >>
$TRACE
SMcli -n "$RMT_ARRAY" -S -c "show storageArray healthStatus;" -
o "$RMT_LOG_DIR/${RMT_ARRAY}_status.tmp" 2>>$TRACE
if [[ `grep -c "optimal" $RMT_LOG_DIR/${RMT_ARRAY}_status.tmp` -
gt 0 ]]; then
Kill_WAIT 0
echo `date +%T`" ======= - Processing Logical Drives."
>> $LOG
echo `date +%T`" SUCCESS - Your array is optimal." >> $LOG
echo "\nrm $RMT_LOG_DIR/${RMT_ARRAY}_status.tmp" >> $TRACE
rm $RMT_LOG_DIR/${RMT_ARRAY}_status.tmp >> $TRACE 2>&1
else
Kill_WAIT 2
echo "\t${B3}WARNING:${EB} Check the $RMT_LOG_DIR/
${RMT_ARRAY}_status.tmp file."
echo `date +%T`" WARNING! - Your array is NOT in an
optimal state." >> $LOG
echo `date +%T`" Check the $RMT_LOG_DIR/
${RMT_ARRAY}_status.tmp file." >> $LOG
fi
#-------------------------------------------------------------
# Associate Hard Disks, with Volume Groups and Logical Volumes
and mount points...
#-------------------------------------------------------------
associate ${#VOL_MNT[*]}
#------------------------------------
# Shutdown Local Database (REMOTE)
#------------------------------------
display "Shutting down local database on this host"
echo "# $RMT_SCRIPT_DIR/.remote/$DB_TYPE/db_stop $CFG_FILE
$TIME_STAMP" >>$TRACE
$RMT_SCRIPT_DIR/.remote/$DB_TYPE/db_stop $CFG_FILE $TIME_STAMP
> /dev/null 2>>$TRACE