Business Copy XP and/or Continuous Access XP for HPe3000

exit 10
fi
done
echo
echo "Syncronization completed."
}
restore_pairs_diff ()
{
# Restore volumes by making remote volume the source or P-VOL
if [ $CAN_DIFF_RESTORE -ne 1 ]
then
echo "Insufficient microcode or RAIDMgr version for differential restore!"
exit 15
fi
date
echo "Creating Business Copy (restore) pairs for group $GROUP"
# Check status of volumes to be paired. Must be in SUSP/SPLIT state.
pairevtwait -g $GROUP $MEMBER -nowait -nomsg
RETURN="$?"
if [ $RETURN -ne $RC_SPLIT ]
then
echo "Error: Pairs $GROUP are not in SPLIT state. Cannot initiate differential restore."
pairevtwait -g $GROUP $MEMBER -nowait
echo "Return code was: ${RETURN}."
exit 13
fi
# Restore Business Copy Volumes with differential mode
pairresync -g $GROUP $MEMBER -c 15 -restore
# Monitor Status
echo
let COUNTER=0
echo "Waiting for differential re-synchronization to complete."
RESULT=-1
while [ "$RESULT" -ne "$RC_COMPLETE" ]
do
pairevtwait -g $GROUP $MEMBER -s pair -nomsg -t $SHORTTIMEOUT
RESULT=$?
let COUNTER=$COUNTER+$SHORTTIMEOUT
if [ "$COUNTER" -ge "$MASTERTIMEOUT" ]
then
echo "Error: Timeout while waiting for pair $GROUP to transition to PAIRED state"
pairevtwait -g $GROUP $MEMBER -nowait
exit 14
fi
done
echo "Volumes in group $GROUP synced. Restore completed"
date
}
restore_pairs_full ()
{
# Restore volumes by making remote volume the source or P-VOL
date
echo "Creating Business Copy (restore) pairs for group $GROUP"
# Check status of volumes to be paired. Must be in SIMPLEX state.
pairevtwait -g $GROUP $MEMBER -nowait -nomsg
RETURN="$?"
if [ $RETURN -ne $RC_SIMPLEX ]
then
echo "Error: Pairs $GROUP are not in SIMPLEX state. Cannot initiate copy."
pairevtwait -g $GROUP $MEMBER -nowait
echo "Return code was: ${RETURN}."
exit 11
fi
# Create Business Copy volumes in reverse (restore)
paircreate -g $GROUP $MEMBER -vr -c 15
# Monitor Status
echo
let COUNTER=0