Setting up an HP SIM server 6.0 or greater on a Linux-based Serviceguard Cluster White Paper 444847-004, February 2010

39
local to_exit=0
case $1 in
1)
echo "ERROR: Function activate_volume_group; Failed to
activate $I"
deactivate_volume_group
deactivate_md
verify_physical_data_replication stop
to_exit=1
;;
2)
echo "ERROR: F
unction check_and_mount; Failed to fsck one of
the devices."
deactivate_volume_group
deactivate_md
verify_physical_data_replication stop
exit_value=1
;;
3)
echo "ERROR: Function check_and_mount; Failed to mount $I to
${FS[$F
]}"
umount_fs
deactivate_volume_group
deactivate_md
verify_physical_data_replication stop
to_exit=1
;;
4)
echo "ERROR: Function add_ip_address; Failed to add IP
address to subnet"
remove_ip_ad
dress
if [[ "$HA_APP_SERVER" = "pre
-
IP" ]] || [[
"$HA_APP_SERVER" = "post
-
IP" ]]
then
verify_ha_server stop
fi
umount_fs
deactivate_volume_group
deactivate_md
verify_physical_data_replication stop
to_exit=1
;;
8)
echo "ERROR: Function start_services; Failed to start service
${SERVICE_NAME[$C]}"
halt_services
customer_defined_halt_cmds
remove_ip_address
if [[ "$HA_APP_SERV
ER" = "pre
-
IP" ]] || [[
"$HA_APP_SERVER" = "post
-
IP" ]]
then
verify_ha_server stop
fi
umount_fs
deactivate_volume_group
deactivate_md
verify_physical_data
_replication stop