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

28
printf "******************* WARNING
***************************
\
n
\
n"
printf "Forcing activation can lead to data corruption
if
\
n"
printf "
\
"$hostid
\
" is still running and has
\
"$vg
\
"
\
n"
printf "active. It is imperitive to positively
determine that
\
n"
printf "
\
"$
hostid
\
" is not running prior to
performing
\
n"
printf "this operation.
\
n
\
n"
printf
"*******************************************************
\
n
\
n"
printf "To force activate
\
"$vg
\
", execute the
following
\
n"
printf "command on the local system:
\
n"
printf " vgchange
--
deltag $hostid $vg
\
n
\
n"
printf "The package may then be restarted via either
\
n"
printf "cmmodpkg(1M) or cmrunpkg(1M) commands.
\
n
\
n"
return 2;;
esac
else
ok_to_activate=1
fi
else
ok_to_activate=1
fi
if (( ok_to_activate == 1 )); then
vg_tag addtag ${vg} ${host}
fi
return 0
}
# This function
will activate (raidstart) any md devices
# that are used by the VG's defined in this package.
#
function activate_md
{
for I in ${MD[@]}
do
echo "$(date '+%b %e %T')
-
Node
\
"$(hostname)
\
": Starting md
$I ."
$RAIDSTART $I
te
st_return 25
done
}
# This function will activate a volume group
#
function activate_volume_group
{
typeset vgname
typeset pvname
typeset
-
i numvg
mygrep="grep
-
w "
num=0
for I in ${VG[@]}
do
vgname=${I##*/}