How to Reinstall from Failed Grid 11gR2

Today I faced the problem with the GRID installation, one of my team members tried installing GRID and somehow lost the connection in between and GUI also closed.

So we tried to install again keeping all old directories cleaned up ($GRID_HOME) and removing the entry from inventory.xml file for the GRID_HOME. If you don’t do that you will end up getting errors like below:

  1. $GRID_HOME already had the software
  2. $GRID_HOME directory is being used before

( I did not capture the error code, so i am not able to mention that.)

So this is the error which we faced during the 2nd run of executing root.sh for Grid:

# /u01/app/oracle/product/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/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/oracle/product/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user ‘oracle’, privgrp ‘oinstall’..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user ‘root’, privgrp ‘root’..
Operation successful.
CRS-4664: Node dcdora20ub successfully pinned.
Adding Clusterware entries to inittab
CRS-2728: A resource type with the name ‘ora.daemon.type’ is already registered
CRS-4000: Command Add failed, or completed with errors.
CRS-2728: A resource type with the name ‘ora.cssd.type’ is already registered
CRS-4000: Command Add failed, or completed with errors.
Failed to register Grid Infrastructure type ora.cssd.type at /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_lib.pm line 7777.
/u01/app/oracle/product/11.2.0/grid/perl/bin/perl -I/u01/app/oracle/product/11.2.0/grid/perl/lib -I/u01/app/oracle/product/11.2.0/grid/crs/install /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl execution failed
#

So to resolve this problem, we have to clean the configuration before we execute the script again, but somehow i thought of givinga try again:

# /u01/app/oracle/product/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/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/oracle/product/11.2.0/grid/crs/install/crsconfig_params
CRS is already configured on this node for crshome=/u01/app/oracle/product/11.2.0/grid
Cannot configure two CRS instances on the same cluster.
Please deconfigure before proceeding with the configuration of new home.
/u01/app/oracle/product/11.2.0/grid/perl/bin/perl -I/u01/app/oracle/product/11.2.0/grid/perl/lib -I/u01/app/oracle/product/11.2.0/grid/crs/install /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl execution failed
#

So this time output is bit different from the above one. Now we will do the cleaning part:

# cd /u01/app/oracle/product/11.2.0/grid/crs
ls
auth config demo init install lib log mesg profile public sbs script template trace utl
#
# cd install/
#
# ls
cmdllroot.sh crsconfig_params crspatch.pm install.excl onsconfig oracss.pm rootcrs.pl s_crsconfig_dcdora20ub_env.txt
crsconfig_addparams.sbs crsconfig_params.sbs hasdconfig.pl install.incl oraacfs.pm paramfile.crs roothas.pl s_crsconfig_defs
crsconfig_lib.pm crsdelete.pm inittab installRemove.excl oracle-ohasd.conf preupdate.sh rootofs.sh s_crsconfig_lib.pm
#
# ./roothas.pl -deconfig -force -verbose
Using configuration parameter file: ./crsconfig_params
PRKO-2573 : ONS daemon is already stopped.
CRS-2500: Cannot stop resource ‘ora.cssd’ as it is not running
CRS-4000: Command Stop failed, or completed with errors.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘dcdora20ub’
CRS-2673: Attempting to stop ‘ora.evmd’ on ‘dcdora20ub’
CRS-2677: Stop of ‘ora.evmd’ on ‘dcdora20ub’ succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘dcdora20ub’ has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle Restart stack
#

Now we can try again to start the root.sh script:

# pwd
/u01/app/oracle/product/11.2.0/grid/crs/install
# cd ../../
# ./root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/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/oracle/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user ‘oracle’, privgrp ‘oinstall’..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user ‘root’, privgrp ‘root’..
Operation successful.
CRS-4664: Node dcdora20ub successfully pinned.
Adding Clusterware entries to inittab

dcdora20ub 2016/04/09 02:08:03 /u01/app/oracle/product/11.2.0/grid/cdata/dcdora20ub/backup_20160409_020803.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
#

That’s it Guys.

Let me know if any concern.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s