灾备切换
1.停止数据库
su - db2itest -c db2stop force
sleep 3
2.停止HA
在ZB_test1/ ZB_test2按顺序执行,先停备机ZB_test2,再停止主机ZB_test1
停备机
echo
echo "Stop HACMP service!"
echo
echo "< command : /usr/es/sbin/cluster/cspoc/fix_args nop cl_clstop '-N' -cspoc-n ${Local_node_name} '-g' >"
/usr/es/sbin/cluster/cspoc/fix_args nop cl_clstop '-N' -cspoc-n ${Local_node_name} '-g'
echo
echo "Stop HACMP service complete !"
exit 0
停主机
echo
echo "Stop HACMP service!"
echo
echo "< command : /usr/es/sbin/cluster/cspoc/fix_args nop cl_clstop '-N' -cspoc-n ${Local_node_name} '-g' >"
/usr/es/sbin/cluster
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18