文档章节

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

o
 osc_z1hvg4cu
发布于 2018/04/24 15:04
字数 1217
阅读 7
收藏 0

环境: 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)

<h1 id="1">1.前期准备</h1> 确认各节点都是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

<h1 id="2">2.删除GI</h1> 需要使用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。

o
粉丝 0
博文 500
码字总数 0
作品 0
私信 提问
加载中
请先登录后再评论。

暂无文章

如何在Ruby中生成随机字符串 - How to generate a random string in Ruby

问题: I'm currently generating an 8-character pseudo-random uppercase string for "A" .. "Z": 我目前正在为“ A” ..“ Z”生成一个8个字符的伪随机大写字符串: value = ""; 8.times{......

法国红酒甜
56分钟前
20
0
Python中的mkdir -p功能[重复] - mkdir -p functionality in Python [duplicate]

问题: This question already has an answer here: 这个问题在这里已有答案: How can I safely create a nested directory? 如何安全地创建嵌套目录? 25 answers 25个答案 Is there a way...

技术盛宴
今天
15
0
原价500元的认证证书,限时免费考取!

本文作者:y****n 百度云智学院致力于为百度ABC战略(人工智能、大数据、云计算)提供人才生态体系建设,包括基于百度ABC、IoT的课程体系,整合百度优势技术能力的深度学习技术、Apollo无人车...

百度开发者中心
昨天
17
0
在virtualenv中使用Python 3 - Using Python 3 in virtualenv

问题: Using virtualenv , I run my projects with the default version of Python (2.7). 使用virtualenv ,我使用默认版本的Python(2.7)运行项目。 On one project, I need to use Pyth......

富含淀粉
今天
16
0
Python的__init__和self是做什么的? - What __init__ and self do on Python?

问题: I'm learning the Python programming language and I've came across something I don't fully understand. 我正在学习Python编程语言,遇到了一些我不太了解的东西。 In a method ......

javail
今天
15
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部