root.sh fails with ASM resource is not ONLINE

Questions relating to Oracle Real Application Clusters (RAC) and Clusterware.

Moderator: Tim...

root.sh fails with ASM resource is not ONLINE

Postby jnrpeardba » Sat Sep 08, 2012 12:06 pm

Hi,

In installing Grid as the first phase of a RAC build, all works fine until I come to execute the root.sh script on the first node - here is what happens



Code: Select all
rvecrcdrprod: >./root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /mware/oracle/11.2/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: /mware/oracle/11.2/grid/crs/install/crsconfig_params
ACFS-9200: Supported
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9312: Existing ADVM/ACFS installation detected.
ACFS-9314: Removing previous ADVM/ACFS installation.
This may take several minutes. Please wait ...
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
ACFS-9315: Previous ADVM/ACFS components successfully removed.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9359: The AIX ODM entry for 'acfsctl' was successfully added.
ACFS-9359: The AIX ODM entry for 'advmctl' was successfully added.
ACFS-9359: The AIX ODM entry for 'advmvol' was successfully added.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-2672: Attempting to start 'ora.mdnsd' on 'rvecrcdrprod'
CRS-2676: Start of 'ora.mdnsd' on 'rvecrcdrprod' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rvecrcdrprod'
CRS-2676: Start of 'ora.gpnpd' on 'rvecrcdrprod' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rvecrcdrprod'
CRS-2672: Attempting to start 'ora.gipcd' on 'rvecrcdrprod'
CRS-2676: Start of 'ora.cssdmonitor' on 'rvecrcdrprod' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rvecrcdrprod' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rvecrcdrprod'
CRS-2672: Attempting to start 'ora.diskmon' on 'rvecrcdrprod'
CRS-2676: Start of 'ora.diskmon' on 'rvecrcdrprod' succeeded
CRS-2676: Start of 'ora.cssd' on 'rvecrcdrprod' succeeded

null

The ora.asm resource is not ONLINE
Did not succssfully configure and start ASM at /mware/oracle/11.2/grid/crs/install/crsconfig_lib.pm line 6468.
/mware/oracle/11.2/grid/perl/bin/perl -I/mware/oracle/11.2/grid/perl/lib -I/mware/oracle/11.2/grid/crs/install /mware/oracle/11.2/grid/crs/install/rootcrs.pl execution failed

The group is oinstall, the OCR and VOTING disks have been created successfully and the main part of the install runs without any errors. I found an oracle workaround [ID 1259874.1] which suggests the following.

Code: Select all
Owner of grid can not access olr.loc which is created by root.sh with wrong permission.

/etc/oracle has wrong permission and ownership:

 rwxr-x--- root root /etc/oracle
Solution

Unpublished bug 10357090 is fixed in 11.2.0.3, the workaround is to as root:

chmod g+rx,o+rx /etc/oracle
umask 022


Code: Select all
rvecrcdrprod: >pwd
/etc/oracle
rvecrcdrprod: >ls -ltr
total 32
drwxrwx---    2 root     oinstall        256 07 Sep 18:05 lastgasp
drwxr-xr-x    3 root     oinstall        256 07 Sep 18:05 scls_scr
drwxrwxr-x    5 root     oinstall        256 07 Sep 18:05 oprocd
-rw-r--r--    1 root     system           94 08 Sep 11:59 olr.loc.orig
-rw-r--r--    1 root     oinstall         94 08 Sep 11:59 olr.loc
-rw-r--r--    1 root     system           40 08 Sep 11:59 ocr.loc.orig
-rw-r--r--    1 root     oinstall         40 08 Sep 11:59 ocr.loc
rvecrcdrprod: >


So I implemented this but still the same error arises when I re-execute root.sh

I even changed the olr.loc file to an ownership of grid.oinstall and full 777 priv, but again stil no joy

Any ideas, what this could be and a resolution?

Many thanks

Jnrpeardba
jnrpeardba
Advisor
 
Posts: 392
Joined: Wed May 04, 2011 3:14 pm

Re: root.sh fails with ASM resource is not ONLINE

Postby Tim... » Sat Sep 08, 2012 12:42 pm

Hi.

It's obvious from the output that this is not the first time you've attempted to install GI on this machine. I would be tempted to wipe it totally and start the install from scratch, including the OS.

The reason why I rarely have problem installing this stuff is I always use a totally clean OS. If I'm doing it on a VM, I use snaphosts to switch back to the clean OS. If I'm doing it on physical machines I just reinstall.

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog
Tim...
Site Admin
 
Posts: 17933
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK


Return to Oracle RAC and Clusterware

Who is online

Users browsing this forum: No registered users and 1 guest