background image
<< Check status of Volume Copy | Disable snapshots >>
<< Check status of Volume Copy | Disable snapshots >>

Mount volume copies

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .The
sun_erm.ksh
Script
Remote Mirroring of an Oracle Database Using Data Replicator Software
C-21
echo "# SMcli -n \"$RMT_SUBSYSTEM\" -S -c \"show logicalDriveCopy
target [\"${VOL_VC[$COUNT]}\"];\" -o $RMT_LOG_DIR/
vc_vol.$COUNT" >> $TRACE
SMcli -n "$RMT_SUBSYSTEM" -S -c "show
logicalDriveCopy target [\"${VOL_VC[$COUNT]}\"];" \
-o $RMT_LOG_DIR/vc_vol.$COUNT 2>>$TRACE
TEMP=$(grep -c 'In progress' $RMT_LOG_DIR/
vc_vol.$COUNT)
VC_STATUS=$((VC_STATUS+TEMP))
COUNT=$((COUNT+1));
done
# Write command to $TRACE file for debugging
echo "# rm $RMT_LOG_DIR/vc_vol.*" >> $TRACE
rm $RMT_LOG_DIR/vc_vol.* >> $TRACE 2>&1
if (( VC_STATUS > 0 )); then
Kill_WAIT 4
echo `date +%T`" WAITING - Volume Copies still
processing." >> $LOG
display "Sleeping for 5 minutes"
sleep 300
Kill_WAIT 4
return 1
else
Kill_WAIT 5
echo `date +%T`" SUCCESS - Volume Copies
established." >> $LOG
return 0
fi
}
mountv ()
{
############################################
# FUNCTION used to mount volume copies
#
############################################
# Args:
# $1 = Index number of volume to process
display "Mounting ${VOL_MNT[$1]}"
# Write command to $TRACE file for debugging
echo "# mount ${VOL_HD[$1]} ${VOL_MNT[$1]}" >> $TRACE
mount ${VOL_HD[$1]} ${VOL_MNT[$1]} >> $TRACE 2>&1
STATUS=$?
sleep 1