Amazon Partner

Thursday, 21 July 2011

Root.sh Failed when installing Grid Infrastructure 11g R2



Problem :

root@host1:>/u01/app/product/grid/11.2.0/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/product/grid/11.2.0

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/product/grid/11.2.0/crs/install/crsconfig_params
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Create failed, or completed with errors.
Failure initializing entries in /var/opt/oracle/scls_scr/host1
/u01/app/product/grid/11.2.0/perl/bin/perl -I/u01/app/product/grid/11.2.0/perl/lib -I/u01/app/product/grid/11.2.0/crs/install /u01/app/product/grid/11.2.0/crs/install/rootcrs.pl execution failed

Checking cfgtoollogs file shows $ORACLE_HOME/cfgtoollogs/crsconfig/rootcrs_host1.log
root@host1:>

cd /u01/app/product/grid/11.2.0/cfgtoollogs/crsconfig
tail -10 rootcrs_host1.log
2011-07-21 16:02:26: Executing /u01/app/product/grid/11.2.0/bin/crsctl create scr oracle
2011-07-21 16:02:26: Executing cmd: /u01/app/product/grid/11.2.0/bin/crsctl create scr oracle
2011-07-21 16:02:26: Command output:
>  CRS-4046: Invalid Oracle Clusterware configuration.
>  CRS-4000: Command Create failed, or completed with errors.
>End Command output


Solution:

root@host1:/u01/app/product/grid/11.2.0/crs/install> ./rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: ./crsconfig_params
Usage: srvctl []
    commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config
    objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
  srvctl -h or
  srvctl -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Stop failed, or completed with errors.
You must kill crs processes or reboot the system to properly
cleanup the processes started by Oracle clusterware
Failure in execution (rc=-1, 0, No such file or directory) for command 1 /sbin/init.d/ohasd deinstall
Successfully deconfigured Oracle clusterware stack on this node
Retry the running root.sh 
root@host1:/u01/app/product/grid/11.2.0/crs/install> cd ..
root@host1:/u01/app/product/grid/11.2.0/crs> cd ..
root@host1:/u01/app/product/grid/11.2.0> /u01/app/product/grid/11.2.0/root.sh
Running Oracle 11g root script...
The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/product/grid/11.2.0
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/product/grid/11.2.0/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'sys'..
Operation successful.
OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding daemon to inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'host1'
CRS-2676: Start of 'ora.mdnsd' on 'host1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'host1'
CRS-2676: Start of 'ora.gpnpd' on 'host1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'host1'
CRS-2672: Attempting to start 'ora.gipcd' on 'host1'
CRS-2676: Start of 'ora.gipcd' on 'host1' succeeded
CRS-2676: Start of 'ora.cssdmonitor' on 'host1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'host1'
CRS-2672: Attempting to start 'ora.diskmon' on 'host1'
CRS-2676: Start of 'ora.diskmon' on 'host1' succeeded
CRS-2676: Start of 'ora.cssd' on 'host1' succeeded
ASM created and started successfully.
Disk Group OCR created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'sys'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 149c287d7f844f24bf3499d862694a0f.
Successful addition of voting disk 38d5b5ba93b64f59bf2f105bf50cc838.
Successful addition of voting disk a1325764ae654fa4bf6eb996e33193b6.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   149c287d7f844f24bf3499d862694a0f (/dev/oradisk/diskocr001) [OCR]
 2. ONLINE   38d5b5ba93b64f59bf2f105bf50cc838 (/dev/oradisk/diskocr002) [OCR]
 3. ONLINE   a1325764ae654fa4bf6eb996e33193b6 (/dev/oradisk/diskocr003) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'host1'
CRS-2676: Start of 'ora.asm' on 'host1' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'host1'
CRS-2676: Start of 'ora.OCR.dg' on 'host1' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded