Rebuild OCR for a single RAC Note – RAC 11.2

Save OCR data

Script to dump  OCR  
echo $GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl stat res -t
echo $GRID_HOME/bin/crsctl stat res -p
$GRID_HOME/bin/crsctl stat res -p
echo $GRID_HOME/bin/crsctl query css votedisk
$GRID_HOME/bin/crsctl query css votedisk
echo $GRID_HOME/bin/ocrcheck
$GRID_HOME/bin/ocrcheck
echo $GRID_HOME/bin/oifcfg getif
$GRID_HOME/bin/oifcfg getif
echo  $GRID_HOME/bin/srvctl config nodeapps -a
$GRID_HOME/bin/srvctl config nodeapps -a
echo $GRID_HOME/bin/srvctl config scan
$GRID_HOME/bin/srvctl config scan
echo $GRID_HOME/bin/srvctl config asm -a
$GRID_HOME/bin/srvctl config asm -a
echo $GRID_HOME/bin/srvctl config listener -l LISTENER -a
$GRID_HOME/bin/srvctl config listener -l LISTENER -a
echo $GRID_HOME/bin/srvctl config database -d grac4 -a
$GRID_HOME/bin/srvctl config database -d grac4 -a
echo $GRID_HOME/bin/srvctl config service -d grac4 -s grac43 -v
$GRID_HOME/bin/srvctl config service -d grac4 -s grac43 -v

# ./check_OCR.sh > OCR.output

Deconfigure OCR resoruces on node gra43

# $GRID_HOME/crs/install/rootcrs.pl -deconfig -force
Using configuration parameter file: /u01/app/11204/grid/crs/install/crsconfig_params
Network exists: 1/192.168.1.0/255.255.255.0/eth1, type dhcp
VIP exists: /192.168.1.167/192.168.1.167/192.168.1.0/255.255.255.0/eth1, hosting node grac41
VIP exists: /192.168.1.178/192.168.1.178/192.168.1.0/255.255.255.0/eth1, hosting node grac42
VIP exists: /192.168.1.176/192.168.1.176/192.168.1.0/255.255.255.0/eth1, hosting node grac43
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
..
CRS-2677: Stop of 'ora.gipcd' on 'grac43' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'grac43'
CRS-2677: Stop of 'ora.gpnpd' on 'grac43' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'grac43' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Removing Trace File Analyzer
Successfully deconfigured Oracle clusterware stack on this node

Verify  configuratiuon from node grac41:

[root@grac41 Desktop]# crsctl check  cluster -all
**************************************************************
grac41:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
grac42:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
--> grac43 is removed 
CLeanup failed over resources
root@grac41 Desktop]#   my_crs_stat | egrep '3|TARGET|---'
NAME                           TARGET     STATE           SERVER       STATE_DETAILS
-------------------------      ---------- ----------      ------------ ------------------
ora.LISTENER_SCAN3.lsnr        ONLINE     ONLINE          grac42
ora.grac4.grac43.svc           ONLINE     OFFLINE         grac41
ora.scan3.vip                  ONLINE     ONLINE          grac42

[root@grac41 Desktop]# crsctl stop resource ora.LISTENER_SCAN3.lsnr
[root@grac41 Desktop]# crsctl stop resource  ora.scan3.vip
[root@grac41 Desktop]# crsctl stop  resource  ora.grac4.grac43.svc
[root@grac41 Desktop]# crsctl delete resource ora.LISTENER_SCAN3.lsnr
[root@grac41 Desktop]# crsctl delete  resource ora.scan3.vip
[root@grac41 Desktop]# crsctl delete resource ora.grac4.grac43.svc
[root@grac41 Desktop]# my_crs_stat | egrep '3|TARGET|---'
NAME                           TARGET     STATE           SERVER       STATE_DETAILS
-------------------------      ---------- ----------      ------------ ------------------

Rerun root.sh on node grac43

# $GRID_HOME/root.sh

[root@grac43 Desktop]#  $GRID_HOME/root.sh
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11204/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11204/grid/crs/install/crsconfig_params
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node grac41, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
clscfg: EXISTING configuration version 5 detected.
clscfg: version 5 is 11g Release 2.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
PRKO-2420 : VIP is already started on node(s): grac43
Preparing packages for installation...
cvuqdisk-1.0.9-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

Reference

  • How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure (Doc ID 1377349.1)

Leave a Reply

Your email address will not be published. Required fields are marked *