13.3 Sample Load Script for a DST Shadow Volume

In the following sample load script for a shadow volume cluster resource, the lines in bold have been added to or modified from the original load script that was created for the primary pool cluster resource.

#!/bin/bash
. /opt/novell/ncs/lib/ncsfuncs
exit_on_error nss /poolact=ARCPOOL1
exit_on_error nss /poolact=POOL1

sleep 10 # Optional delay to ensure that the pools are active before the shadow volume pair is mounted 
exit_on_error ncpcon mount VOL1=254,shadowvolume=ARCVOL1

exit_on_error add_secondary_ipaddress 10.10.10.38
exit_on_error ncpcon bind --ncpservername=NCS1_POOL1_SERVER --ipaddress=10.10.10.38
#This line is added if Novell CIFS is used as an advertising protocol
#novcifs --add --vserver=virtualserverFDN --ip-addr=virtualserverip
# If shadowfs is used, wait for shadowfs to start #for (( c=1; c<=10; c++ )) do # if [ ! -d /media/shadowfs/VOLUME/._NETWARE ]; then sleep 5; fi #done 
exit 0