专栏首页从ORACLE起航,领略精彩的IT技术。实验:记录一则删除GI的过程

实验:记录一则删除GI的过程

环境: RHEL 6.5 + Oracle GI 11.2.0.4 (2 nodes) 参考MOS文档 How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure (文档 ID 1377349.1)

1.前期准备

确认各节点都是unpin的状态:

<GI_HOME>/bin/olsnodes -s -t

If a node is pinned, unpin it first, i.e. as root user:
<GI_HOME>/bin/crsctl unpin css -n <racnode1>

尽可能收集全集群相关的信息:

Before deconfiguring, collect the following as grid user if possible to generate a list of user resources to be added back to the cluster after reconfigure finishes:

$GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl stat res -p
$GRID_HOME/bin/crsctl query css votedisk
$GRID_HOME/bin/ocrcheck
$GRID_HOME/bin/oifcfg getif
$GRID_HOME/bin/srvctl config nodeapps -a
$GRID_HOME/bin/srvctl config scan
$GRID_HOME/bin/srvctl config asm -a
$GRID_HOME/bin/srvctl config listener -l <listener-name> -a
$DB_HOME/bin/srvctl config database -d <dbname> -a
$DB_HOME/bin/srvctl config service -d <dbname> -s <service-name> -v

2.删除GI

需要使用root用户:

# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose
# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

先去节点2(所有远端节点)执行: <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose

[root@jystdrac2 ~]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose
Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
Network exists: 1/192.168.1.0/255.255.255.0/eth2, type static
VIP exists: /jystdrac1-vip/192.168.1.62/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac1
VIP exists: /jystdrac2-vip/192.168.1.64/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'jystdrac2'
CRS-2677: Stop of 'ora.registry.acfs' on 'jystdrac2' succeeded
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.crsd' on 'jystdrac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.oc4j' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac2'
CRS-2677: Stop of 'ora.asm' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'jystdrac2' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on 'jystdrac1'
CRS-2676: Start of 'ora.oc4j' on 'jystdrac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'jystdrac2' has completed
CRS-2677: Stop of 'ora.crsd' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'jystdrac2'
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac2'
CRS-2677: Stop of 'ora.mdnsd' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'jystdrac2' succeeded
CRS-2677: Stop of 'ora.asm' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac2'
CRS-2677: Stop of 'ora.cssd' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'jystdrac2'
CRS-2677: Stop of 'ora.crf' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'jystdrac2'
CRS-2677: Stop of 'ora.gipcd' on 'jystdrac2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'jystdrac2'
CRS-2677: Stop of 'ora.gpnpd' on 'jystdrac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jystdrac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node

再次查询验证会提示集群件没有配置:

[root@jystdrac2 ~]# su - grid
[grid@jystdrac2 ~]$ crsctl stat res -t
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Status failed, or completed with errors.
[grid@jystdrac2 ~]$ crsctl stat res -t -init
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Status failed, or completed with errors.
[grid@jystdrac2 ~]$ 

回到节点1操作: <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

[root@jystdrac1 ~]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode
Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
CRS resources for listeners are still configured
Network exists: 1/192.168.1.0/255.255.255.0/eth2, type static
VIP exists: /jystdrac1-vip/192.168.1.62/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac1
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'jystdrac1'
CRS-2677: Stop of 'ora.registry.acfs' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.crsd' on 'jystdrac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.OCR.dg' on 'jystdrac1'
CRS-2677: Stop of 'ora.OCR.dg' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac1'
CRS-2677: Stop of 'ora.asm' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'jystdrac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'jystdrac1' has completed
CRS-2677: Stop of 'ora.crsd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac1'
CRS-2677: Stop of 'ora.evmd' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac1'
CRS-2677: Stop of 'ora.ctssd' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac1'
CRS-2677: Stop of 'ora.cssd' on 'jystdrac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jystdrac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'jystdrac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'jystdrac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'jystdrac1'
CRS-2676: Start of 'ora.diskmon' on 'jystdrac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'jystdrac1' succeeded
CRS-4611: Successful deletion of voting disk +OCR.
ASM de-configuration trace file location: /tmp/asmcadc_clean2018-04-24_02-45-36-PM.log
ASM Clean Configuration START
ASM Clean Configuration END

ASM with SID +ASM1 deleted successfully. Check /tmp/asmcadc_clean2018-04-24_02-45-36-PM.log for details.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.crf' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'jystdrac1'
CRS-2677: Stop of 'ora.crf' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac1'
CRS-2677: Stop of 'ora.cssd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'jystdrac1'
CRS-2677: Stop of 'ora.gipcd' on 'jystdrac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'jystdrac1'
CRS-2677: Stop of 'ora.gpnpd' on 'jystdrac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jystdrac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node
[root@jystdrac1 ~]# 

至此,就成功删除了GI。

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Oracle ADG + Keepalived 切换演练

    客户的一套生产环境采用的架构是Oracle ADG + Keepalived,近期需要进行切换演练,要求我这边保障。ADG本身切换倒没啥可说的,但引入keepa...

    Alfred Zhao
  • Oracle 11g RAC之HAIP相关问题总结

    环境:RHEL 6.4 + GI 11.2.0.4 + Oracle 11.2.0.4 对有关HAIP相关问题的总结,包括禁用/启用HAIP,修改ASM资源的依...

    Alfred Zhao
  • VirtualBox 报错VERR_VD_IMAGE_READ_ONLY

    VirtualBox 无法打开虚拟机,报错VERR_VD_IMAGE_READ_ONLY,详细报错如下:

    Alfred Zhao
  • Monit-开源服务器监控工具 原

    Monit是一个用于管理和监控Unix系统的小型开源工具. Monit进行自动维护和修理, 并且可以在错误情况下执行有意义的因果作用.

    拓荒者
  • 如何在 IIS 上搭建 mercurial server

    mercurial server 对于代码管理工具,更多的人可能更熟悉 Git 一些(Git 太火了)。其实另外一款分布式代码管理工具也被广泛的使用,它就是 m...

    葡萄城控件
  • 线性代数——(4)行列式

    羊羽shine
  • open***搭建笔记

    线上生产环境,出于安全考虑,有些服务器是不需要公网IP,但是平常运维人员管理起来又不太方便。

    二狗不要跑
  • 【2020HBU天梯赛训练】7-53 名人堂与代金券

    对于在中国大学MOOC(http://www.icourse163.org/ )学习“数据结构”课程的学生,想要获得一张合格证书,总评成绩必须达到 60 分及以...

    韩旭051
  • Oracle LiveSQL在线SQL学习

    在OOW前夕,我才注意到Oracle在10月14日发布的网站:livesql.oracle.com ,这是由Oracle的SQL专家Steven Feuerst...

    数据和云
  • 每周分享第 28 期

    欢迎投稿,请前往 GitHub 的 ruanyf/weekly 提交 issue。

    ruanyf

扫码关注云+社区

领取腾讯云代金券