VCS集群状态为 STALE_ADMIN_WAIT的解决

VCS集群状态为 STALE_ADMIN_WAIT的解决
===========================================================
今天发现有一VCS集群状态变为 STALE_ADMIN_WAIT,解决方法如下:
1.首先查看两台机器的当前状态
cp-etl01:/etc/VRTSvcs/conf/config # hastatus -sum

-- SYSTEM STATE
-- System State Frozen

A cp-etl01 STALE_ADMIN_WAIT 0
A cp-etl02 STALE_ADMIN_WAIT 0

 


2.在两台机器上查看当前的进程
cp-etl01:/etc/VRTSvcs/conf/config # ps -ef |grep had 查看HA进程
root 7243 1 0 2009 ? 00:00:00 /opt/VRTSvcs/bin/hashadow
root 4683 1 0 Aug24 ? 00:00:02 /opt/VRTSvcs/bin/had -restart
root 19294 17911 0 11:21 pts/7 00:00:00 grep had

cp-etl02:~ # ps -ef | grep had
root 7278 1 0 2009 ? 00:00:00 /opt/VRTSvcs/bin/hashadow
root 23411 1 0 Aug24 ? 00:00:01 /opt/VRTSvcs/bin/had -restart
root 7012 6981 0 11:22 pts/0 00:00:00 grep had

可以看到两台机器的进程都正常启动,但是had进程不是正常状态,需要restart

3.看看能不能识别对方未尾是01
cp-etl01:/etc/VRTSvcs/conf/config # gabconfig –a
GAB Port Memberships
===============================================================
Port a gen 1bc510 membership 01
Port h gen 1bc51b membership 01

cp-etl02:~ # gabconfig –a 看看能不能识别对方未尾是01
GAB Port Memberships
===============================================================
Port a gen 1bc510 membership 01
Port h gen 1bc51b membership 01

可以看到两台机器都能识别到对方

4.重启集群,在任一台机器上执行
cp-etl01:/etc/VRTSvcs/conf/config # hastop -all -force
cp-etl01:/etc/VRTSvcs/conf/config # ps -ef |grep had
root 20025 17911 0 11:25 pts/7 00:00:00 grep had

在两台机器上启动集群
cp-etl01:/etc/VRTSvcs/conf/config # hastart
cp-etl02:~ # hastart


5.查看状态
cp-etl01:/etc/VRTSvcs/conf/config # ps -ef |grep had
root 20034 1 0 11:25 ? 00:00:00 /opt/VRTSvcs/bin/had
root 20036 1 0 11:25 ? 00:00:00 /opt/VRTSvcs/bin/hashadow
root 20049 17911 0 11:26 pts/7 00:00:00 grep had
cp-etl01:/etc/VRTSvcs/conf/config # hastatus -sum

-- SYSTEM STATE
-- System State Frozen

A cp-etl01 STALE_ADMIN_WAIT 0

6.使用第一台机器强制拉动集群
cp-etl01:/etc/VRTSvcs/conf/config # hostname
cp-etl01

cp-etl01:/etc/VRTSvcs/conf/config # hasys -force cp-etl01
You have new mail in /var/spool/mail/root
cp-etl01:/etc/VRTSvcs/conf/config # hastatus -sum
-- SYSTEM STATE
-- System State Frozen

A cp-etl01 RUNNING 0
A cp-etl02 RUNNING 0

-- GROUP STATE
-- Group System Probed AutoDisabled State

B ETL01 cp-etl01 Y N PARTIAL
B ETL01 cp-etl02 Y N OFFLINE
B ETL02 cp-etl01 Y N OFFLINE
B ETL02 cp-etl02 Y N ONLINE


可以看到集群已经是正常状态了,但是现在集群还不能保护应用,如果应用进程断掉,则不会进行切换

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25136010/viewspace-683041/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25136010/viewspace-683041/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值