background image
<< Resume database on Primary host | Error log check >>
<< Resume database on Primary host | Error log check >>

stablishing volume copies

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .The
sun_erm.ksh
Script
Remote Mirroring of an Oracle Database Using Data Replicator Software
C-29
###################################################
# E stablishing volume copies on storage system
#
###################################################
VX=0
while (( VX < ${#VOL_MNT[*]} )); do
establish $VX
VX=$((VX+1))
done
########################################
# Wait for volume copies to Complete #
########################################
# Now would be an EXCELLENT time to clean your work place, go to
lunch (and dinner), etc....
# In other words, this may take a LONG time depending on the size
of your logical drives
STATUS=1
COUNT=0
while (( STATUS != 0 )); do
vc_wait ${#VOL_MNT[*]}
STATUS=$?
COUNT=$((COUNT+1))
if [[ $COUNT -eq 12 && $VC_PRIORITY -ne 'HIGHEST' ]]; then
echo "\nPerhaps you should change your Logical
Drive Copy priority to 'HIGHEST',"
echo "by modifying $RMT_SCRIPT_DIR/$CFG_FILE and
changing VC_PRIORITY to HIGHEST\n"
echo `date +%T`" WARNING - Consider changing
VC_PRIORITY to HIGHEST" >> $LOG
fi
done
#############################
#
Deactivate snapshots
#
#############################
VX=0
while (( VX < ${#VOL_MNT[*]} )); do
disable $VX
VX=$((VX+1))
done
##################################
#
Mounting volume copies
#
##################################
VX=0
while (( VX < ${#VOL_MNT[*]} )); do
mountv $VX
VX=$((VX+1))
done