AIX HA切换诡异事件
各位大神好!在AIX服务器上执行IBM的HA切换命令,HA切换成功,资源也顺利切过去了,但是将命令写入脚本中执行之后,HA切换出现了error,下面上日志文件
HA版本:HACMP5.5
AIX操作系统版本:6100-05-01-1016
HA报错日志如下
:node_down[248] : If any volume groups were varyd on in passive mode when this node
:node_down[249] : came up, all the prior resource group processing would have left them
:node_down[250] : in passive mode. Completely vary them off at this point.
:node_down[252] [[ dcxd570a == dcxd570a ]]
:node_down[252] [[ __AIX__ == __AIX__ ]]
:node_down[254] : If a volume group is currently varyd on in passive mode, it
:node_down[255] : wont show up in the 'lsvg -o' list. Get a list of such
:node_down[256] : volume groups to check for passive mode
:node_down[258] lsvg -L
:node_down[258] paste -s '-d|' -
:node_down[258] lsvg -L -o
:node_down[258] grep -w -v -x -E rootvg
:node_down[258] INACTIVE_VGS=$'xddatavg1\nxdlogvg1\nxddbvg1\nxdusrvg1\nsjptvg\ncrqdatavg\nxdappvg2'
:node_down[260] lsvg -L xddatavg1
:node_down[260] grep -i -q passive-only
:node_down[260] 2> /dev/null
:node_down[260] lsvg -L xdlogvg1
:node_down[260] grep -i -q passive-only
:node_down[260] 2> /dev/null
:node_down[260] lsvg -L xddbvg1
:node_down[260] grep -i -q passive-only
:node_down[260] 2> /dev/null
:node_down[260] lsvg -L xdusrvg1
:node_down[260] 2> /dev/null
:node_down[260] grep -i -q passive-only
:node_down[260] grep -i -q passive-only
:node_down[260] lsvg -L sjptvg
:node_down[260] 2> /dev/null
:node_down[260] lsvg -L crqdatavg
:node_down[260] grep -i -q passive-only
:node_down[260] 2> /dev/null
:node_down[260] grep -i -q passive-only
:node_down[260] lsvg -L xdappvg2
:node_down[260] 2> /dev/null
:node_down[275] : For local events, delete the file required for the X25 monitor, so it stops.
:node_down[277] [[ dcxd570a == dcxd570a ]]
:node_down[279] : delete the file required for the X25 monitor, so it stops.
:node_down[281] [[ REAL == EMUL ]]
:node_down[285] rm -f /usr/es/sbin/cluster/etc/comm_link.lck
:node_down[289] : Last but not least, make sure the location DB is clear if this is the local node.
:node_down[291] [[ REAL == EMUL ]]
:node_down[296] : delete all resource_locators on the local node
:node_down[298] clchdaemons -r -d clstrmgr_scripts -t resource_locator
:node_down[313] exit 1
Dec 2 20:28:04 EVENT FAILED: 1: node_down 1
HA切换脚本如下
#!/usr/bin/ksh
ROOT=`pwd`
newlog=$ROOT/ha_stop.log
touch $newlog
writelog()
{
cd $ROOT
echo $2 > "$1.dat"
echo $3 >> "$1.dat"
echo "ok" > "$1.do"
mv $newlog "$1.log"
}
echo "##################ha clstop start#####################" >> $newlog
echo "date:`date "+%Y年%m月%d日%H时%M分%S秒"`" >> $newlog
echo "-----------------output of clstop command-------------------" >> $newlog
cd /usr/es/sbin/cluster/utilities
./clstop -N -gr >> $newlog 2>&1
if [ $? -eq 0 ]
then
echo "\n" >> $newlog
echo "HA is stop!" >> $newlog
writelog $1 1 "HA is stop!"
else
echo "\n" >> $newlog
echo "The command to stop HA is runs error!" >> $newlog
writelog $1 0 "The command to stop HA is runs error!"
fi
求各位大神解答