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

24
echo
-
e "
\
teither "n
one" or the supported method of remote data
replication."
echo
-
e "
\
tSet this variable to the appropriated value and then
restart"
echo
-
e "
\
tthe package."
let 0
test_return 41
fi
if [[ $DATA_REP != "none" ]]
th
en
if [[
-
x ${SGSBIN}/DRCheckDiskStatus ]]
then
echo "$(date '+%b %e %T')
-
Node
\
"$(hostname)
\
": This
package is configured with remote data replication."
echo
-
e "
\
tChecking disk status on package $1"
${SGSBIN}/DRCheckDiskStatus "${0}" "${1}" "${DATA_REP}"
"${VGCHANGE}" "${XDC_CONFIG_FILE}" "${VG[*]}"
#
# The DRCheckDiskStatus script has the exit values as
follow:
#
# 0
-
success; package starts
# 1
-
global error; package cannot start on any node in the
cluster
# 2
-
local error; package cannot start on this node but
allow to
# start on other node in the cluster
#
exit_val=$?
if [
[ $exit_val
-
ne 0 ]]
then
if [[ $exit_val
-
eq 1 ]]
then
echo "ERROR: The package cannot $1 data replication
on any node in the cluster."
else
echo "ERROR: T
he package cannot $1 data replication
on this node."
fi
echo "###### Node
\
"$(hostname)
\
": Package start FAILED at
$(date) ######"
exit $exit_val
fi
else
echo "ERROR: The package is c
onfigured to use remote data
replication,"
echo
-
e "
\
tbut the file ${SGSBIN}/DRCheckDiskStatus does
not exist or"
echo
-
e "
\
tis not executable."
let 0
test_return 41
fi
fi
}
# This function tests wheth
er the package uses a HA server toolkit
(such as