- 論壇徽章:
- 1
|
hacmp在機(jī)器關(guān)機(jī)的時(shí)候執(zhí)行不執(zhí)行接管動(dòng)作,在/usr/es/sbin/cluster/etc/rc.shutdown里是會(huì)有定義的,可能你的環(huán)境問題導(dǎo)致的宕機(jī)應(yīng)驗(yàn)其中了的一種情況。
附/usr/es/sbin/cluster/etc/rc.shutdown部分內(nèi)容:
- ###############################################################################
- # 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
復(fù)制代碼 |
|