龙空技术网

11G R2 RAC集群数据库root.sh执行失败如何操作

葫芦儿的成长记录 123

前言:

此时各位老铁们对“oracle卸载grid”大致比较关心,兄弟们都想要分析一些“oracle卸载grid”的相关知识。那么小编同时在网摘上搜集了一些关于“oracle卸载grid””的相关文章,希望同学们能喜欢,同学们一起来学习一下吧!

安装rac集群时经常会碰到root.sh执行失败的情况,那么执行失败后如何继续安装呢?查看mos的一篇文章进行记录。版本为11g rac(11.2.0.2以上)

GI Cluster Deconfigure and Reconfigure

Identify cause of root.sh failure by reviewing logs in $GRID_HOME/cfgtoollogs/crsconfig and $GRID_HOME/log, once cause is identified and problem is fixed, deconfigure and reconfigure with steps below - keep in mind that you will need wait till each step finishes successfully before move to next one:

注:查找原因检查如果原因找到,并且修复,请按照如下步骤操作。

Step 0: For 11.2.0.2 and above, root.sh is restartable.

11.2.0.2 以后root.sh是可以重复执行的

Once cause is identified and the problem is fixed, root.sh can be executed again on the failed node. If it succeeds, continue with your planned installation procedure; otherwise as root sequentially execute "$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force" and $GRID_HOME/root.sh on local node, if it succeeds, continue with your planned installation procedure, otherwise proceed to next step (Step 1) of the note.

如果导致root.sh执行失败的原因已经找到,并且修复了,可以再故障节点再次执行root.sh,如果执行成功,那么可以继续安装。如果再次执行失败,需要使用root用户再故障节点执行卸载crs命令,然后再次执行,如果成功则继续安装

$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force

如果卸载后,执行root.sh仍然失败,执行如下步骤:

Step 1: As root, run "$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force" on all nodes, except the last one.

节点2执行卸载crs命令$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force

Step 2: As root, run "$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode" on last node. This command will zero out OCR, Voting Disk and the ASM diskgroup for OCR and Voting Disk

节点1即最后节点执行卸载crs命令$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode

Note:一些注意事项,如果节点未执行root.sh可以跳过步骤1及步骤2。

a. Step1 and 2 can be skipped on node(s) where root.sh haven't been executed this time.

b. Step1 and 2 should remove checkpoint file. To verify:

ls -l $ORACLE_BASE/Clusterware/ckptGridHA_.xml

If it's still there, please remove it manually with "rm" command on all nodes

c. If GPNP profile is different between nodes/setup, clean it up on all nodes as grid user

$ find <GRID_HOME>/gpnp/* -type f -exec rm -rf {} \;

The profile needs to be cleaned up:

c1. If root.sh is executed concurrently - one should not execute root.sh on any other nodes before it finishes on first node.

c2. If network info, location of OCR or Voting Disk etc changed after Grid is installed - rare

Step 3: As root, run $GRID_HOME/root.sh on first node

Step 4: As root, run $GRID_HOME/root.sh on all other node(s), except last one.

Step 5: As root, run $GRID_HOME/root.sh on last node.

全部卸载后,再次按照顺序在各节点执行root.sh

D. Grid Infrastructure Deinstall

As grid user, execute "$GRID_HOME/deinstall/deinstall" and follow the instructions, for details, refer to the following documentation for your platform:

Oracle Grid Infrastructure

Installation Guide

How to Modify or Deinstall Oracle Grid Infrastructure

If there's any error, deconfig the failed GI with steps in Section B or C, and deinstall manually with note 1364419.1

彻底卸载grid软件在节点1执行deinstall 命令,此命令会自动卸载grid软件。同样操作在节点2执行卸载命令。

如果仍然执行失败那么继续分析导致失败的原因。并解决。

参考文档

<How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation (Doc ID 942166.1)>

标签: #oracle卸载grid