禁用HAIP

禁用HAIP。

注意:禁用HAIP后,在线加节点在执行root.sh步骤会失败,需要在新节点也禁用HAIP。
若ora.cluster_interconnect.haip为online状态,私有网卡上会虚拟出169.254..的地址出来。
若ora.cluster_interconnect.haip为offline则为禁用状态。然后执行如下命令:
ifconfig -a 或ip a |grep 169.254
查看是否还有169.254开头的地址,如果没有了,那么说明已经禁用成功。

---------------------------

查看资源依赖属性
[root@rac2 ~]# crsctl stat res ora.cluster_interconnect.haip -p -init | grep ENABLED
ENABLED=1
[root@rac2 ~]# crsctl stat res ora.asm -p -init | grep START_DEPENDENCIES
START_DEPENDENCIES=hard(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)pullup(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)weak(ora.drivers.acfs)
[root@rac2 ~]#
[root@rac2 ~]# crsctl stat res ora.asm -p -init | grep STOP_DEPENDENCIES
STOP_DEPENDENCIES=hard(intermediate:ora.cssd,shutdown:ora.cluster_interconnect.haip)
[root@rac2 ~]#

---------------------------

使用root用户执行以下命令。

1、停止所有节点的CRS
crsctl stop crs

2、依次在每个节点中执行以下命令(节点1执行完毕后再在节点2执行)
crsctl start crs -excl -nocrs
crsctl stop res ora.asm -init
crsctl modify res ora.cluster_interconnect.haip -attr "ENABLED=0" -init
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
crsctl stop crs

说明:
ora.cluster_interconnect.haip的ENABLED属性的原始值为1:
ENABLED=1
ora.asm资源的START_DEPENDENCIES和STOP_DEPENDENCIES的原始值为:
START_DEPENDENCIES=hard(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)pullup(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)weak(ora.drivers.acfs)
STOP_DEPENDENCIES=hard(intermediate:ora.cssd,shutdown:ora.cluster_interconnect.haip)

3、依次在每个节点启动CRS
crsctl start crs

4、检查HAIP是否禁用
crsctl stat res -t -init

若ora.cluster_interconnect.haip为offline则为禁用状态。然后执行如下命令:
ifconfig -a 或ip a |grep 169.254
查看是否还有169.254开头的地址,如果没有了,那么说明已经禁用成功。

下面给出查看资源的属性值的命令:
[root@rac2 ~]# crsctl stat res ora.cluster_interconnect.haip -p -init | grep ENABLED
ENABLED=0
[root@rac2 ~]# crsctl stat res ora.asm -p -init | grep START_DEPENDENCIES
START_DEPENDENCIES=hard(ora.cssd,ora.ctssd)pullup(ora.cssd,ora.ctssd)weak(ora.drivers.acfs)
[root@rac2 ~]#
[root@rac2 ~]# crsctl stat res ora.asm -p -init | grep STOP_DEPENDENCIES
STOP_DEPENDENCIES=hard(intermediate:ora.cssd)

若启用HAIP,则过程和禁用的过程一致,其主要修改命令如下:
crsctl modify res ora.cluster_interconnect.haip -attr "ENABLED=1" -init
crsctl modify res ora.asm -attr "START_DEPENDENCIES='hard(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)pullup(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)weak(ora.drivers.acfs)',STOP_DEPENDENCIES='hard(intermediate:ora.cssd,shutdown:ora.cluster_interconnect.haip)'" -init

再查看资源依赖属性

[root@rac2 ~]# crsctl stat res ora.cluster_interconnect.haip -p -init | grep ENABLED
ENABLED=1
[root@rac2 ~]# crsctl stat res ora.asm -p -init | grep START_DEPENDENCIES
START_DEPENDENCIES=hard(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)pullup(ora.cssd,ora.cluster_interconnect.haip,ora.ctssd)weak(ora.drivers.acfs)
[root@rac2 ~]#
[root@rac2 ~]# crsctl stat res ora.asm -p -init | grep STOP_DEPENDENCIES
STOP_DEPENDENCIES=hard(intermediate:ora.cssd,shutdown:ora.cluster_interconnect.haip)
[root@rac2 ~]#

posted @ 2023-07-18 09:06  武汉OracleDBA  阅读(82)  评论(0编辑  收藏  举报