Oracle Grid installation: roothas.pl fails with “Oracle Restart stack is not act

root.sh fails during execution for an Oracle Grid Infrastructure 11.2 installation with following messages .
“Oracle Grid installation: roothas.pl fails with “Oracle Restart stack is not act”

Step 1:

Clead up the ASM Disks

Once you attempt an installation, your ASM disks are marked as being used, so they can no longer be used as candidate disks. To revert them to candidate disk do the following.

Overwrite the header for the relevant partitions using the “dd” command.

# dd if=/dev/zero of=/dev/sdb1 bs=1024 count=100

Remove and create the ASM disk for each partition.

# /etc/init.d/oracleasm deletedisk DATA /dev/sdb1
# /etc/init.d/oracleasm createdisk DATA /dev/sdb1

I started reinstalling and I got this error.

#
[root@sigmafulltdb ~]# /oracle/product/11.2.0.4/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME=  /oracle/product/11.2.0.4/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: /oracle/product/11.2.0.4/grid/crs/install/crsconfig_params
Creating trace directory
/grid/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=-1 with message:
Failure in execution (rc=-1, 0, No such file or directory) for command /grid/11.2.0/grid/bin/crsctl query crs activeversion

Improper Oracle Grid Infrastructure configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Grid Infrastructure
run '/oracle/product/11.2.0.4/grid/crs/install/roothas.pl -deconfig'
to configure existing failed configuration and then rerun root.sh
/oracle/product/11.2.0.4/grid/perl/bin/perl -I/oracle/product/11.2.0.4/grid/perl/lib -I/oracle/product/11.2.0.4/grid/crs/install /oracle/product/11.2.0.4/grid/crs/install/roothas.pl execution failed

Remove and create the ASM disk for each partition.

[root@sigmafulltdb ~]# /oracle/product/11.2.0.4/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME=  /oracle/product/11.2.0.4/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: /oracle/product/11.2.0.4/grid/crs/install/crsconfig_params
Creating trace directory
/grid/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=-1 with message:
Failure in execution (rc=-1, 0, No such file or directory) for command /grid/11.2.0/grid/bin/crsctl query crs activeversion

Improper Oracle Grid Infrastructure configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Grid Infrastructure
run '/oracle/product/11.2.0.4/grid/crs/install/roothas.pl -deconfig'
 to configure existing failed configuration and then rerun root.sh
 /oracle/product/11.2.0.4/grid/perl/bin/perl -I/oracle/product/11.2.0.4/grid/perl/lib -I/oracle/product/11.2.0.4/grid/crs/install /oracle/product/11.2.0.4/grid/crs/install/roothas.pl execution failed

Step 2: deinstall GRID:

#

[oracle@sigmafulltdb ~]$ cd /oracle/product/11.2.0.4/grid/deinstall/
[oracle@sigmafulltdb deinstall]$ ls
bootstrap.pl deinstall deinstall.pl deinstall.xml jlib readme.txt response sshUserSetup.sh
[oracle@sigmafulltdb deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2018-04-04_04-18-23PM/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################### CHECK OPERATION START #########################
## [START] Install check configuration ##

Checking for existence of the Oracle home location /oracle/product/11.2.0.4/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server
Oracle Base selected for deinstall is: /oracle
Checking for existence of central inventory location /oracle/oraInventory
Checking for existence of the Oracle Grid Infrastructure home
Checking for sufficient temp space availability on node(s) : 'sigmafulltdb'

## [END] Install check configuration ##

Traces log file: /tmp/deinstall2018-04-04_04-18-23PM/logs//crsdc.log

Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2018-04-04_04-18-23PM/logs/netdc_check2018-04-04_04-18-29-PM.log

Specify all Oracle Restart enabled listeners that are to be de-configured [LISTENER]:

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /tmp/deinstall2018-04-04_04-18-23PM/logs/asmcadc_check2018-04-04_04-18-31-PM.log

ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Specify the ASM Diagnostic Destination [ ]: OCRVOTE
Specify the diskstring []:
Specify the diskgroups that are managed by this ASM instance []:

######################### CHECK OPERATION END #########################

####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is:
The cluster node(s) on which the Oracle home deinstallation will be performed are:null
Oracle Home selected for deinstall is: /oracle/product/11.2.0.4/grid
Inventory Location where the Oracle home registered is: /oracle/oraInventory
Following Oracle Restart enabled listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2018-04-04_04-18-23PM/logs/deinstall_deconfig2018-04-04_04-18-27-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2018-04-04_04-18-23PM/logs/deinstall_deconfig2018-04-04_04-18-27-PM.err'

######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2018-04-04_04-18-23PM/logs/asmcadc_clean2018-04-04_04-18-48-PM.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2018-04-04_04-18-23PM/logs/netdc_clean2018-04-04_04-18-51-PM.log

De-configuring Oracle Restart enabled listener(s): LISTENER

De-configuring listener: LISTENER
Stopping listener: LISTENER
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.

De-configuring Naming Methods configuration file...
Naming Methods configuration file de-configured successfully.

De-configuring backup files...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END

---------------------------------------->

Run the following command as the root user or the administrator on node "sigmafulltdb".

/tmp/deinstall2018-04-04_04-18-23PM/perl/bin/perl -I/tmp/deinstall2018-04-04_04-18-23PM/perl/lib -I/tmp/deinstall2018-04-04_04-18-23PM/crs/install /tmp/deinstall2018-04-04_04-18-23PM/crs/install/roothas.pl -force -deconfig -paramfile "/tmp/deinstall2018-04-04_04-18-23PM/response/deinstall_Ora11g_gridinfrahome1.rsp"

Press Enter after you finish running the above commands

<----------------------------------------

Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'sigmafulltdb' at the end of the session.

Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'sigmafulltdb' at the end of the session.
Run 'rm -rf /etc/oratab' as root on node(s) 'sigmafulltdb' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################

....

run as root user deinstall root.sh scripts.

Step 3:

Forcefully cleanup old conguration information and run root.sh

#

[root@sigmafulltdb ~]$ /oracle/product/11.2.0.4/grid/root.sh

problem is solved. Have a good day.referances : https://oracle-base.com/articles/rac/clean-up-a-failed-grid-infrastructure-installation

Hits: 14

Leave a Reply

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