Oracle Grid installation: roothas.pl fails with “Oracle Restart stack is not active on this node”

root.sh fails during execution for an Oracle Grid Infrastructure 11.2 installation with the following message:

[root@hostname ~]# /opt/oraInventory/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=  /opt/oraInventory/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: /opt/oraInventory/product/11.2.0/grid/crs/install/crsconfig_params

/opt/oraInventory/product/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=127 with message:

 /opt/oraInventory/product/11.2.0/grid/bin/crsctl.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory

 

Improper Oracle Grid Infrastructure configuration found on this host

Deconfigure the existing cluster configuration before starting

to configure a new Grid Infrastructure

run '/opt/oraInventory/product/11.2.0/grid/crs/install/roothas.pl -deconfig'

to configure existing failed configuration and then rerun root.sh

/opt/oraInventory/product/11.2.0/grid/perl/bin/perl -I/opt/oraInventory/product/11.2.0/grid/perl/lib -I/opt/oraInventory/product/11.2.0/grid/crs/install /opt/oraInventory/product/11.2.0/grid/crs/install/roothas.pl execution failed

 “Oracle Restart stack is not active” error is raised when executing roothas.pl as mentioned by root.sh. Output messages will ask you to restart the SIHA stack (even though you might not have any Oracle Clusterware stack configured)

[root@hostname ~]# /opt/oraInventory/product/11.2.0/grid/crs/install/roothas.pl -deconfig

Using configuration parameter file: /opt/oraInventory/product/11.2.0/grid/crs/install/crsconfig_params

Oracle Restart stack is not active on this node

Restart the SIHA stack (use /opt/oraInventory/product/11.2.0/grid/bin/crsctl start has) and retry

Failed to write the checkpoint:'' with status:FAIL.Error code is 256

Failed to verify HA resources

Cause:

These messages can have various causes. In my cases the cause was previous failed Grid infrastructure installation.

Solution:

Forcefully cleanup old configuration information and rerun root.sh.

[root@hostname ~]# /opt/oraInventory/product/11.2.0/grid/crs/install/roothas.pl -deconfig -force -verbose

Using configuration parameter file: /opt/oraInventory/product/11.2.0/grid/crs/install/crsconfig_params

CRS-4639: Could not contact Oracle High Availability Services

CRS-4000: Command Stop failed, or completed with errors.

CRS-4639: Could not contact Oracle High Availability Services

CRS-4000: Command Delete failed, or completed with errors.

CRS-4544: Unable to connect to OHAS

CRS-4000: Command Stop failed, or completed with errors.

Failure in execution (rc=-1, 0, No such file or directory) for command /etc/init.d/ohasd deinstall

Successfully deconfigured Oracle Restart stack

 

[root@hostname ~]# /opt/oraInventory/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=  /opt/oraInventory/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: /opt/oraInventory/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 hostname successfully pinned.

Adding Clusterware entries to upstart

hostname     2015/06/12 11:03:38     /opt/oraInventory/product/11.2.0/grid/cdata/hostname/backup_20150612_110338.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

Comments