vip 漂移故障处理

举报
snowofsummer 发表于 2021/02/26 22:24:51 2021/02/26
【摘要】 这些场景你有遇到过吗?

故障现象:

$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.LISTENER.lsnr
               ONLINE  OFFLINE      feichedb1
               ONLINE  ONLINE       feichedb2
ora.VOLTING.dg
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.asm
               ONLINE  ONLINE       feichedb1                Started
               ONLINE  ONLINE       feichedb2                Started
ora.gsd
               OFFLINE OFFLINE      feichedb1
               OFFLINE OFFLINE      feichedb2
ora.net1.network
               ONLINE  OFFLINE      feichedb1
               ONLINE  ONLINE       feichedb2
ora.ons
               ONLINE  OFFLINE      feichedb1
               ONLINE  ONLINE       feichedb2
ora.registry.acfs
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       feichedb2
ora.cvu
      1        ONLINE  ONLINE       feichedb2
ora.feichedb.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.feichedb1.vip
      1        ONLINE  INTERMEDIATE feichedb2                FAILED OVER
ora.feichedb2.vip
      1        ONLINE  ONLINE       feichedb2
ora.nongxian.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.oc4j
      1        ONLINE  ONLINE       feichedb1
ora.scan1.vip
      1        ONLINE  ONLINE       feichedb2
ora.tyzf.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.zmiims.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open

 

 

 

启动network:

$ srvctl status nodeapps -n feichedb1
VIP feichedb1-vip is enabled
VIP feichedb1-vip is running on node: feichedb2
Network is enabled
Network is not running on node: feichedb1
GSD is disabled
GSD is not running on node: feichedb1
ONS is enabled
ONS daemon is not running on node: feichedb1

 

$ $ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.LISTENER.lsnr
               ONLINE  OFFLINE      feichedb1
               ONLINE  ONLINE       feichedb2
ora.VOLTING.dg
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.asm
               ONLINE  ONLINE       feichedb1                Started
               ONLINE  ONLINE       feichedb2                Started
ora.gsd
               OFFLINE OFFLINE      feichedb1
               OFFLINE OFFLINE      feichedb2
ora.net1.network
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.ons
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.registry.acfs
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       feichedb2
ora.cvu
      1        ONLINE  ONLINE       feichedb2
ora.feichedb.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.feichedb1.vip
      1        ONLINE  INTERMEDIATE feichedb2                FAILED OVER
ora.feichedb2.vip
      1        ONLINE  ONLINE       feichedb2
ora.nongxian.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.oc4j
      1        ONLINE  ONLINE       feichedb1
ora.scan1.vip
      1        ONLINE  ONLINE       feichedb2
ora.tyzf.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.zmiims.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open

relocate vip:

$ srvctl relocate vip -i feichedb1-vip -n feichedb1
$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.LISTENER.lsnr
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.VOLTING.dg
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.asm
               ONLINE  ONLINE       feichedb1                Started
               ONLINE  ONLINE       feichedb2                Started
ora.gsd
               OFFLINE OFFLINE      feichedb1
               OFFLINE OFFLINE      feichedb2
ora.net1.network
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.ons
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
ora.registry.acfs
               ONLINE  ONLINE       feichedb1
               ONLINE  ONLINE       feichedb2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       feichedb2
ora.cvu
      1        ONLINE  ONLINE       feichedb2
ora.feichedb.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.feichedb1.vip
      1        ONLINE  ONLINE       feichedb1
ora.feichedb2.vip
      1        ONLINE  ONLINE       feichedb2
ora.nongxian.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.oc4j
      1        ONLINE  ONLINE       feichedb1
ora.scan1.vip
      1        ONLINE  ONLINE       feichedb2
ora.tyzf.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
ora.zmiims.db
      1        ONLINE  ONLINE       feichedb1                Open
      2        ONLINE  ONLINE       feichedb2                Open
$ lsnrctl status

LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production on 26-FEB-2021 22:19:29

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.4.0 - Production
Start Date                26-FEB-2021 22:19:09
Uptime                    0 days 0 hr. 0 min. 20 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      ON
Listener Parameter File   /u01/app/11.2/grid/network/admin/listener.ora
Listener Log File         /u01/app/grid/diag/tnslsnr/feichedb1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.8.31)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.8.33)(PORT=1521)))
Services Summary...
Service "feichedb" has 1 instance(s).
  Instance "feichedb1", status READY, has 1 handler(s) for this service...
Service "feichedbXDB" has 1 instance(s).
  Instance "feichedb1", status READY, has 1 handler(s) for this service...
Service "nongxian" has 1 instance(s).
  Instance "nongxian1", status READY, has 1 handler(s) for this service...
Service "nongxianXDB" has 1 instance(s).
  Instance "nongxian1", status READY, has 1 handler(s) for this service...
Service "tyzf" has 1 instance(s).
  Instance "tyzf1", status READY, has 1 handler(s) for this service...
Service "tyzfXDB" has 1 instance(s).
  Instance "tyzf1", status READY, has 1 handler(s) for this service...
Service "zmiims" has 1 instance(s).
  Instance "zmiims1", status READY, has 1 handler(s) for this service...
Service "zmiimsXDB" has 1 instance(s).
  Instance "zmiims1", status READY, has 1 handler(s) for this service...
The command completed successfully

 

 

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。