实验:记录一则删除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,相当于释放了这些快的使用权. 二.读取文件和删除文件的过程 ...
随机推荐
- CH 1402 - 后缀数组 - [字符串hash]
题目链接:传送门 描述 后缀数组 (SA) 是一种重要的数据结构,通常使用倍增或者DC3算法实现,这超出了我们的讨论范围. 在本题中,我们希望使用快排.Hash与二分实现一个简单的 $O(n \log ...
- [No0000130]WPF 4.5使用标记扩展订阅事件
自从我上次写到关于标记扩展的时候已经有一段时间了...... Visual Studio 11 Developer Preview的发布给WPF带来了一些新功能,让我有理由再次使用它们.我要在这里讨论 ...
- [No0000131]WCF压缩传输方案整理
1.WCF进阶:将编码后的字节流压缩传输 2.通过WCF扩展实现消息压缩 3.WCF 消息压缩性能问题及解决方法
- vue中导入外面文件(css,js)方式
有时我们需要导入外面的css文件(例如reset.css文件,bootstrap.css,jQuery.js文件),通常可通过import "name.css"的形式 对于rese ...
- Chap3:文件系统中跳转[The Linux Command Line]
1 introduce the following commands pwd - Print name of current working directory cd-Change directory ...
- XML文件处理
XML XML简介 XML被设计用来传输和存储数据. XML是可扩展标记语言. 解析XML的几种方式 DOM,DOM4j------先把XML文件读取到内存中,然后再解析 SAX----------边 ...
- 将获得datebox值的文本形式转为日期格式
在使用datebox时,已选择结束日期后,再次选择开始日期.此时判断开始日期不能大于结束日期. datebox的onSelect: function (date){}事件传入的参数是日期类型,而使用d ...
- 转:Redis 3.2.1集群搭建
Redis 3.2.1集群搭建 一.概述 Redis3.0版本之后支持Cluster. 1.1.redis cluster的现状 目前redis支持的cluster特性: 1):节点自动发现 2) ...
- 图->定义
文字描述 顶点 指图中的数据元素 弧尾 若<v,w>属于两个顶点之间的关系的集合,表示从v到w的一条弧,则v为弧尾或初始点 弧头 若<v,w>属于两个顶点之间的关系的集合,表 ...
- jquery基础学习之样式篇(一)
一.安装与使用 官网下载,然后引入 <script src="js/jquery-3.3.1.js"></script>,这是生产版本,开发版本替换成min ...