background image
<< Mount volume copies | Check script variables >>
<< Mount volume copies | Check script variables >>

Disable snapshots

Oracle on the Sun Solaris OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C-22
Remote Mirroring of an Oracle Database Using Data Replicator Software
# if (( STATUS > 0 )); then
# echo "\tUnable to mount '${VOL_HD[$1]}', running
fsck...
# fsck -y ${VOL_HD[$1]}
# echo "\tRetrying mount on '${VOL_HD[$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=$?
# fi
if (( STATUS > 0 )); then
Kill_WAIT 1
echo "\t${B1}ERROR: XX${EB} Unable to mount
${VOL_MNT[$1]} - STATUS = $STATUS"
echo `date +%T`" ERROR: XX - Unable to mount
${VOL_HD[$1]}, errorcode $STATUS" >> $LOG
return 1
else
echo `date +%T`" SUCCESS - Volume ${VOL_HD[$1]}
mounted on ${VOL_MNT[$1]}." >> $LOG
Kill_WAIT 0
return 0
fi
}
disable ()
{
###########################################
#
FUNCTION used to disable snapshots
#
###########################################
# Args:
# $1 = Index number of volume to process
if [[ $VERIFY -eq 1 ]]; then
set -n
elif [[ $DEBUG -eq 1 && $VERIFY -eq 0 ]]; then
set -x
fi
display "Deactivating ${VOL_MNT[$1]}"
# Write command to $TRACE file for debugging
echo "# SMcli -n \"$RMT_SUBSYSTEM\" -S -c \"disableFlashCopy
logicalDrive [\"${VOL_FC[$1]}\"];\"" >> $TRACE
SMcli -n "$RMT_SUBSYSTEM" -S -c "disableFlashCopy
logicalDrive [\"${VOL_FC[$1]}\"];" >> $TRACE 2>&1