top of page
Writer's pictureHanh Nguyen

How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure

Scope

This document is intended for Oracle Clusterware/RAC Database Administrators and Oracle Support engineers.

Details

  1. Grid Infrastructure Cluster – Entire Cluster

Deconfigure and reconfigure entire cluster will rebuild OCR and Voting Disk, user resources (database, instance, service, listener etc) will need to be added back to the cluster manually after reconfigure finishes.

Why is deconfigure needed?

Deconfigure is needed when:

  1. OCR is corrupted without any good backup

  2. Or GI stack will not come up on any nodes due to missing Oracle Clusterware related files in /etc or /var/opt/oracle, i.e. init.ohasd missing etc. If GI is able to come up on at least one node, refer to next Section “B. Grid Infrastructure Cluster – One or Partial Nodes”.

  3. $GRID_HOME should be intact as deconfigure will NOT fix $GRID_HOME corruption

Steps to deconfigure

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

To deconfigure:

  1. If OCR and Voting Disks are NOT on ASM, or If OCR and Voting Disks are on ASM but there’s NO user data in OCR/Voting Disk ASM diskgroup:

On all remote nodes, as root execute:

# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose Once the above command finishes on all remote nodes, on local node, as root execute:

# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode To reconfigure, run $GRID_HOME/crs/config/config.sh, refer to note 1354258.1 for details

  1. If OCR or Voting Disks are on ASM and there is user data in OCR/Voting Disk ASM diskgroup:

  2. If GI version is 11.2.0.3 AND fix for bug 13058611and bug 13001955 has been applied, or GI version is 11.2.0.3.2 GI PSU (includes both fixes) or higher:

On all remote nodes, as root execute:

# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose Once the above command finishes on all remote nodes, on local node, as root execute:

# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -keepdg -lastnode To reconfigure, run $GRID_HOME/crs/config/config.sh, refer to note 1354258.1 for details

  1. If fix for bug 13058611and bug 13001955 has NOT been applied:

On all nodes, as root execute:

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

To reconfigure:

For 11.2.0.1 – deinstall and reinstall with OCR/Voting Disk on a new ASM diskgroup or supported cluster/network filesystem

For 11.2.0.2 and onward – run $GRID_HOME/crs/config/config.sh and place OCR/Voting Disk on a new ASM diskgroup or support cluster/network filesystem. Refer to note 1354258.1 for more details of config.sh/config.bat

  1. Grid Infrastructure Cluster – One or Partial Nodes

This procedure applies only when all the followings are true:

  1. One or partial nodes are having problem, but one or other nodes are running fine – so there’s no need to deconfigure the entire cluster

  2. And GI is a fresh installation (NOT upgrad) without any patch set (interim patch or patch set update(PSU) is fine). A direct patch set installation is considered as a fresh installation regardless how long it has been running, as long as there was no Oracle Clusterware running when it is first installed.

  3. And cluster parameters have not been changed since original configuration, eg: OCR/VD on same location, network configuration has not been changed etc

  4. And $GRID_HOME is intact as deconfigure will NOT fix $GRID_HOME corruption

  5. If any of the above is NOT true, node removal/addition procedure should be used

Steps to deconfigure and reconfigure

As root, on each problematic node, execute:

# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force # <$GRID_HOME>/root.sh

  1. Grid Infrastructure Standalone (Oracle Restart)

Why is deconfigure needed?

Deconfigure is needed when:

  1. OLR is corrupted without any good backup

  2. GI stack will not come up due to missing Oracle Clusterware related files in /etc or /var/opt/oracle, i.e. init.ohasd is missing etc

  3. Nodename needs to be changed

Steps to deconfigure

Before deconfiguring, collect the following if possible:

$GRID_HOME/bin/crsctl stat res -t $GRID_HOME/bin/crsctl stat res -p $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

To deconfigure:

As root execute:

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

To reconfigure, refer to note 1354258.1

  1. Grid Infrastructure Deinstall

As grid user, execute:

$ <$GRID_HOME>/deinstall/deinstall For details, refer to the following documentation for your platform:

Oracle Grid Infrastructure Installation Guide

How to Modify or Deinstall Oracle Grid Infrastructure

0 views0 comments

Recent Posts

See All

12c Grid Infrastructure Quick Reference

This is a 12c Grid Infrastructure quick reference DETAILS “crsctl stat res -t” output example This example is from a 12c GI Flex Cluster...

OCR – Vote disk Maintenace

Prepare the disks For OCR or voting disk addition or replacement, new disks need to be prepared. Please refer to Clusteware/Gird...

Comments


bottom of page