我的ha同步、验证都通过,主机也可以service ip 接管 boot ip,但是不能做本机stby ip接管service ip,不能做takeover,我怀疑与一下这段hacmp.out中的信息有关,在起cluster的时候,就会出现一下信息:
===============================================
ip情况:
a--主机 b-备机
48.0.191.190--主机service 48.0.191.191--备机service
48.0.191.244--主机boot 48.0.191.253--备机boot
192.1.1.201--主机stby 192.1.1.202--备机stby
===============================================
Jan 1 23:18:34 EVENT START: fail_standby F50a 192.1.1.201
fail_standby[119] [[ high = high ]]
fail_standby[119] version=1.8
fail_standby[120] fail_standby[120] cl_get_path
HA_DIR=es
fail_standby[122] NODENAME=F50a
fail_standby[123] ADDR=192.1.1.201
fail_standby[125] [ 2 -ne 2 ]
fail_standby[131] set -u
fail_standby[133] fail_standby[133] dspmsg scripts.cat 335 Adapter 192.1.1.201 is no longer available for use as a standby,\n due to either a standby adapter failure or IP address takeover.\n 192.1.1.201
MSG=Adapter 192.1.1.201 is no longer available for use as a standby,
due to either a standby adapter failure or IP address takeover.
fail_standby[134] echo Adapter 192.1.1.201 is no longer available for use as a standby, due to either a standby adapter failure or IP address takeover.
fail_standby[134] 1> /dev/console
fail_standby[138] addback_standby_route 192.1.1.201
fail_standby[3] set -u
fail_standby[5] down_if=192.1.1.201
fail_standby[7] read a b NETWORK c
fail_standby[7] cllsif -Sn 192.1.1.201
fail_standby[11] IFS=:
fail_standby[12] read adapt type .network net_type attrib node ip_addr hw_addr
fail_standby[12] cllsif -Sc
fail_standby[12] [[ /dev/tty1 = 192.1.1.201 ]]
fail_standby[12] [[ service != standby ]]
fail_standby[16] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[12] [[ 48.0.191.244 = 192.1.1.201 ]]
fail_standby[12] [[ boot != standby ]]
fail_standby[16] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[12] [[ 48.0.191.190 = 192.1.1.201 ]]
fail_standby[12] [[ service != standby ]]
fail_standby[16] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[12] [[ 192.1.1.201 = 192.1.1.201 ]]
fail_standby[14] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[12] [[ /dev/tty1 = 192.1.1.201 ]]
fail_standby[12] [[ service != standby ]]
fail_standby[16] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[12] [[ 48.0.191.253 = 192.1.1.201 ]]
fail_standby[12] [[ boot != standby ]]
fail_standby[16] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[12] [[ 48.0.191.191 = 192.1.1.201 ]]
fail_standby[12] [[ service != standby ]]
fail_standby[16] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[12] [[ 192.1.1.202 = 192.1.1.201 ]]
fail_standby[12] [[ standby != standby ]]
fail_standby[12] [[ F50network != F50network ]]
fail_standby[12] [[ F50b != F50a ]]
fail_standby[20] continue
fail_standby[12] read adapt type network net_type attrib node ip_addr hw_addr
fail_standby[46] unset IFS
fail_standby[48] return 0
fail_standby[140] exit 0
Jan 1 23:18:35 EVENT COMPLETED: fail_standby F50a 192.1.1.201
HACMP Event Summary
Event: fail_standby F50a 192.1.1.201
Start time: Thu Jan 1 23:18:34 2004
End time: Thu Jan 1 23:18:35 2004
Action: Resource: Script Name:
----------------------------------------------------------------------------
No resources changed as a result of this event
----------------------------------------------------------------------------
请各位看看,该怎么办,谢谢了。
【发表回复】【查看CU论坛原帖】【添加到收藏夹】【关闭】
yanbing 回复于:2004-01-02 09:35:59 |
你是不是绑定了mac地址?
两台机器的stby地址能够互相ping通吗? |
leexxbb 回复于:2004-01-02 09:57:46 |
不能啊,具我理解stby的地址是随便设的(不跟boot service一个网段),所以各自机器只能ping通自己的stby ip。
是不是理解错了啊?老大?还请指教。 |
yanbing 回复于:2004-01-02 10:37:56 |
[quote:79b8e631b4="leexxbb"]不能啊,具我理解stby的地址是随便设的(不跟boot service一个网段),所以各自机器只能ping通自己的stby ip。
是不是理解错了啊?老大?还请指教。[/quote:79b8e631b4] 是随便设置,但是两个stby网卡地址应该能通的, 也就是在a上能够ping通b的stby地址。一定要能通。如果你stby的网卡不接网线的话,也能ping自己的。不接网线的stby有什么用处!? 先搞定这个问题,基本上就差不多了。 |
vitovito 回复于:2004-01-02 11:08:15 |
呵呵,又学习一招!谢谢! |
leexxbb 回复于:2004-01-02 11:38:33 |
我知道你的意思了,但是,我的两个stby网卡怎么也ping不通啊,开始怀疑是网线的问题,可是我用stby的网线和service/boot的网线对调以后,service/boot一样还是通的,这说明网线和hub口都没问题,用命令看ent1和en1也都是availible,我的四块网卡都连在一个hub上,按理能ping通啊,请各位帮忙看一下,到底是那里错了? |
yanbing 回复于:2004-01-02 11:43:15 |
是hub吗?那么说没有vlan的设置咯!
掩码是多少? 在你的hub中间加个192.1.1。网段地址的pc,看看能不能Ping通那两个地址。 如果还不行,贴出来你配置ip的步骤! 对了,你是怎么察看哪块卡是stby卡的!? |
leexxbb 回复于:2004-01-02 22:41:31 |
谢谢老大,我终于弄好了,遇到的问题主要还是因为概念不清,呵呵,各位的解答教了我不少东西,谢谢了! |
yanbing 回复于:2004-01-03 17:30:08 |
恭喜你完成了这个项目。
能说一下最后这两个Stby地址是如何ping通的吗? 也算是给其他兄弟一个提示。 |
leexxbb 回复于:2004-01-04 14:30:28 |
hehe,不好意思,我想当然的把stby的网卡想成ent1了, 原来那是内制的网卡,ent2才是我要设的网卡,不过我看了另一套ha的机器,它的stby网卡倒是ent1,aix认的为什么不一样呢?
还有,我在设置网卡的过程中,发现设置好后(立即生效选了yes),有时候ping不通,有的要过好长时间才通, 甚至关机重起以后才通(我估计我多等会或许也行),不知道是为什么,如果说因为交换机反应慢, 可是我的线都插在一个hub上啊,还没过交换机吧,有些奇怪。 |
K2 回复于:2004-01-13 10:42:54 |
你把两个不同网段的网卡连到同一个hub上是不行的,你试着分开看看,也就是一个网段用一个hub,问题就解决了 |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/