ORACLE集群管理-如何禁用haip

环境:

OS:Centos 7

DB:18.0.0.0

 ----------------------------------------------------------------------禁用-------------------------------------------------------------------------------------------------------

1.停掉每个节点的crs
Run "crsctl stop crs" on all nodes to stop CRS stack.

2.关闭HAIP
On one node, run the following commands:
在一个节点上执行如下操作
$CRS_HOME/bin/crsctl start crs -excl -nocrs
$CRS_HOME/bin/crsctl stop res ora.asm -init
$CRS_HOME/bin/crsctl modify res ora.cluster_interconnect.haip -attr  "ENABLED=0" -init
$CRS_HOME/bin/crsctl modify res ora.asm -attr "START_DEPENDENCIES='hard(ora.cssd,ora.ctssd)pullup(ora.cssd,ora.ctssd)weak(ora.drivers.acfs)',STOP_DEPENDENCIES='hard(intermediate:ora.cssd)'" -init
$CRS_HOME/bin/crsctl stop crs

3.重复步骤2 在其他的节点上进行操作
Repeat Step(2) on other nodes.

4.在每个机器上启动crs
Run "crsctl start crs" on all nodes to restart CRS stack
./crsctl status res ora.cluster_interconnect.haip




5.查看状态
[root@host01 bin]# ./crsctl status res -t -init
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       host01                   STABLE
ora.cluster_interconnect.haip
      1        ONLINE  OFFLINE                               STABLE
ora.crf
      1        ONLINE  ONLINE       host01                   STABLE
ora.crsd
      1        ONLINE  ONLINE       host01                   STABLE
ora.cssd
      1        ONLINE  ONLINE       host01                   STABLE
ora.cssdmonitor
      1        ONLINE  ONLINE       host01                   STABLE
ora.ctssd
      1        ONLINE  ONLINE       host01                   OBSERVER,STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.evmd
      1        ONLINE  ONLINE       host01                   STABLE
ora.gipcd
      1        ONLINE  ONLINE       host01                   STABLE
ora.gpnpd
      1        ONLINE  ONLINE       host01                   STABLE
ora.mdnsd
      1        ONLINE  ONLINE       host01                   STABLE
ora.storage
      1        ONLINE  ONLINE       host01                   STABLE
--------------------------------------------------------------------------------

[root@host02 bin]# ./crsctl status res -t -init
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       host02                   Started,STABLE
ora.cluster_interconnect.haip
      1        OFFLINE OFFLINE                               STABLE
ora.crf
      1        ONLINE  ONLINE       host02                   STABLE
ora.crsd
      1        ONLINE  ONLINE       host02                   STABLE
ora.cssd
      1        ONLINE  ONLINE       host02                   STABLE
ora.cssdmonitor
      1        ONLINE  ONLINE       host02                   STABLE
ora.ctssd
      1        ONLINE  ONLINE       host02                   OBSERVER,STABLE
ora.diskmon
      1        OFFLINE OFFLINE                               STABLE
ora.evmd
      1        ONLINE  ONLINE       host02                   STABLE
ora.gipcd
      1        ONLINE  ONLINE       host02                   STABLE
ora.gpnpd
      1        ONLINE  ONLINE       host02                   STABLE
ora.mdnsd
      1        ONLINE  ONLINE       host02                   STABLE
ora.storage
      1        ONLINE  ONLINE       host02                   STABLE
--------------------------------------------------------------------------------

 

------------------------------------------------------恢复haip------------------------------------------------------------------

1.查看当前节点的设置状态
[root@host01 bin]# ./crsctl stat res ora.cluster_interconnect.haip -p -init | grep ENABLED
ENABLED=0
[root@host02 bin]# ./crsctl stat res ora.cluster_interconnect.haip -p -init | grep ENABLED
ENABLED=0


2.分别在两个节点上操作
[root@host02 bin]#cd /u01/app/grid/product/12.2.0/bin
[root@host02 bin]#./crsctl modify res ora.cluster_interconnect.haip -attr "ENABLED=1"  -init


3.重启动crs
分别在两个节点上进行操心
./crsctl stop  crs
./crsctl start crs 

 

 

-- The End --

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值