#!/bin/ksh93 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r721 src/43haes/usr/sbin/cluster/events/resource_group_in_error.sh 1.1 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2016 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)91 1.1 src/43haes/usr/sbin/cluster/events/resource_group_in_error.sh, hacmp, 61haes_r721, 1619A_hacmp721 5/6/16 15:50:47 ######################################################################### # # Name: resource_group_in_error # # Description: SystemMirror will try to keep resources active by moving # resource groups between active nodes in the cluster. # If the acquisition of the group fails on one node, SystemMirror # will attempt to acquire it on the next candidate node. # If the acquisition fails on all nodes and the resource group cannot # be brought online, the resource group will be put into the error state, # and cluster services will return to the stable state. # This script is run when a resource group goes to error state # and is intended to be customized with a notification script such # that you can be alerted when a resource group is not online. # # Probable cause: # A resource group has failed and all attempts to recover it # have also failed. # # Recommended actions: # Examine the hacmp.out log file to find the root cause of the failure # and what recovery actions have already been attempted. # Once you have corrected the problem, you can bring the resource # group online using smit or the clmgr command. # # Arguments: none # # Returns: 0 always # ######################################################################### ############################################################################### # # MAIN Main main # ############################################################################### PROGNAME=${0##*/} export PATH="$(/usr/es/sbin/cluster/utilities/cl_get_path all)" dspmsg -s 104 events.cat 555 "WARNING: One or more resource groups are in the ERROR or\nERROR_SECONDARY state.\nUse the clRGinfo or clmgr commands to identify which group(s) need attention.\nOnce you have corrected the problem you can bring the group(s)\nback online using smit or the clmgr command.\n" exit 0