Setting up an HP SIM server 5.x on a Linux-based Serviceguard Cluster 444847-003, March 2009

23
# Y
ou should define all actions you want to happen here, before the
service is
# started. You can create as many functions as you need.
#
function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a fu
nction must contain some
command.
test_return 51
}
# This function is a place holder for customer define functions.
# You should define all actions you want to happen here, after the
service is
# halted.
#
function customer_defined_halt_cmds
{
# ADD
customer defined halt commands.
: # do nothing instruction, because a function must contain some
command.
test_return 52
}
# END OF CUSTOMER DEFINED FUNCTIONS
# START OF RUN FUNCTIONS
# Initialize FS_TYPE_ARG
# This set the FS_TY
PE_ARG, if there are non
-
null FS_TYPE variables
i=0
for type in "${FS_TYPE[@]}"
do
FS_TYPE_ARG[$i]="
-
t $type"
let i=$i+1
done
action=$1
#
# This function checks for the existence of MetroCluster
# packages that use physical data replication via Con
tinuous
# Access XP on HP SureStore XP series disk arrays.
#
# If the DATA_REP variable is set, DATA_REP="clx",
# then the cluster has at least one package which will be
# configured for remote data mirroring in a metropolitan environment.
#
# The function
is called before attempting to activate the
# volume group.
#
function verify_physical_data_replication
{
if [[ ${#DATA_REP}
-
eq 0 ]]
then
echo
-
e "ERROR: The DATA_REP variable is not set. It has to be
set to"