实验:记录一则删除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。
实验:记录一则删除GI的过程的更多相关文章
- 实验记录:Oracle redo logfile的resize过程
实验记录:Oracle redo logfile的resize过程. 实验环境:RHEL 6.4 + Oracle 11.2.0.3 单实例 文件系统 实验目的:本实验是修改redo logfile的 ...
- 关闭生产订单时报错“订单&的未处理将来更改记录组织删除标记/完成”,消息号CO688
消息号 CO688 诊断 仍存在未来的更改记录,或从订单的确认过程的确认中要处理的错误记录.可能的确认过程是: 自动收货 反冲 实际成本的计算 数据传输至 HR 系统响应 未打算对订单设置删除标记/‘ ...
- 记录手动签名APK的过程
记录手动签名APK的过程 前两天更新了华为平台上的APK,被驳回,原因是新APK签名和老的APK不一致,老用户安装会失败,用命令行安装会报如下的错误: harlanc@harlancdeMacBook ...
- 记录sqoop同步失败问题解决过程,过程真的是很崎岖。(1月6日解决)
记录sqoop同步失败问题解决过程,过程真的是很崎岖.事发原因:最近突然出现sqoop export to mysql时频繁出错.看了下日志是卡在某条数据过不去了,看异常.看sqoop生成的mr并未发 ...
- step_by_step_记录deepin下curl安装过程
记录 deepin 下 curl 安装过程 wget https://curl.haxx.se/download/curl-7.55.1.tar.gz .tar.gz cd curl-/ ./conf ...
- case7 淋巴瘤子类分类实验记录
case7 淋巴瘤子类分类实验记录 简介 分类问题:3分类 (identifying three sub-types of lymphoma: Chronic Lymphocytic Leukemia ...
- 使用Scapy向Mininet交换机注入流量 实验记录
使用Scapy向Mininet交换机注入流量 实验记录 用Python脚本及Scapy库写了一个简单的流量生成脚本,并打算使用该脚本往Mininet中的OpenvSwitch交换机注入流量.拓扑图如下 ...
- 【Android实战】记录自学自己定义GifView过程,能同一时候支持gif和其它图片!【有用篇】
之前写了一篇博客.<[Android实战]记录自学自己定义GifView过程,具体解释属性那些事! [学习篇]> 关于自己定义GifView的,具体解说了学习过程及遇到的一些类的解释,然后 ...
- linux中为什么删除文件比创建文件要快,读取文件和删除文件的过程是什么?
一.为什么删除文件比创建文件要快? 因为删除文件只是将bitmap位图表中将文件所占据的inode 和dacablock的使用状态从1变成0,相当于释放了这些快的使用权. 二.读取文件和删除文件的过程 ...
随机推荐
- [No0000146]深入浅出图解C#堆与栈 C# Heap(ing) VS Stack(ing)理解堆与栈3/4
前言 虽然在.Net Framework 中我们不必考虑内在管理和垃圾回收(GC),但是为了优化应用程序性能我们始终需要了解内存管理和垃圾回收(GC).另外,了解内存管理可以帮助我们理解在每一个程 ...
- cordova 内部API 用ssl https,报错
环境:node6.10.1 cordova 6.x, ionic 2.2.1 用cordova/ionic 建立的app我们的api 地址要用https,做了安全加密之后,按照正常的流程,打包,然后跑 ...
- [GRE] GRE协议介绍
写的一般,主要看下图就行了. https://blog.csdn.net/Mary19920410/article/details/72303641 前半部分介绍还不错,后半部分没看. http:// ...
- [math][mathematica] Mathematica进阶
1. Mathematica 画函数图像 2. Mathematica 解方程 见截图,敲完一行按Shift+Enter就可以执行了.主要函数名都是大小写敏感的.写的正确会跟有提示下拉框和相信说明,非 ...
- pip离线安装python包
1 首先在一台能上网的机器上得到python包 1) 新建一个空目录,如 /home/ubuntu/zcy/ss,用来存储下载下来的所需安装包 2)下载安装包:pip install --downlo ...
- redis的基本介绍
redis是什么? redis是一种菲关系型数据库,存储key-value类型的数据. redis支持的数据类型 这里所说的数据类型其实就是value对应的数据类型.一共有五种: String 1.S ...
- RNN 网络
原文:http://yangguang2009.github.io/2016/12/18/deeplearning/recurrent-neural-networks-for-deep-learnin ...
- 1-3-编译Linux内核
1-3-编译Linux内核 1.将Linux源码包拷贝到共享文件夹. 2.进入共享文件夹. 3.解压,命令#tar xvfj Kernel_3.0.8_TQ210_for_Linux_v2.2.tar ...
- 对CountDownLatch的初步学习
CountDownLatch的中文翻译为"闭锁",在JDK1.5中 CountDownLatch类加入进来.为程序猿进行并发编程提供有利的帮助. 首先我们先看看JDK文档中对于Co ...
- 关系型数据库与NoSQL数据库的优劣
当大家学习了一定的NoSQL知识以后,了解了现今许多NoSQL数据库(如HBase,MongoDB,Redis等)时,就会觉得关系型数据库可能已经跟不上时代的步伐.其实并不然,关系型数据库的性能绝对不 ...