- 论坛徽章:
- 1
|
hacmp在机器关机的时候执行不执行接管动作,在/usr/es/sbin/cluster/etc/rc.shutdown里是会有定义的,可能你的环境问题导致的宕机应验其中了的一种情况。
附/usr/es/sbin/cluster/etc/rc.shutdown部分内容:
- ###############################################################################
- # We're doing a shutdown because of an EPOW condition
- ###############################################################################
- if [[ $EPOW_SHUTDOWN == true ]] ; then
- ###########################################################################
- # We attempt to do a 'graceful with takeover' shutdown, so that the
- # resource groups get taken over when this node fails. Note that this
- # is in no sense guaranteed to complete before the node dies, but at
- # least the other cluster nodes should perform takeover.
- ###########################################################################
- clstop -gr -y -s -N -S
- ###############################################################################
- # A "fast shutdown" ("-F") was specified. We turn this into a forced down
- # operation, mostly to preserve compatabilty
- ###############################################################################
- elif [[ $fast == true ]] ; then
- clstop -f -y -s -N -S
- ###############################################################################
- # A "reboot" ("-r") was specified. Do a graceful down, without takeover,
- # leaving the application cleanly down and HACMP out of the way on reboot.
- ###############################################################################
- elif [[ $reboot == true ]] ; then
- clstop -g -y -s -N -S
- ###############################################################################
- # Every other shutdown is mapped to a graceful with takeover
- ###############################################################################
- else
- clstop -gr -y -s -N -S
- fi
- ###############################################################################
- # this is shutdown so remove the cluster shared memory
- ###############################################################################
- sleep 4
- rm -f /usr/es/sbin/cluster/etc/ClSm 2>/dev/null
复制代码 |
|