[INS-40401] The Installer has detected a configured Oracle Clusterware home on the system.

[INS-40401] The Installer has detected a configured Oracle Clusterware home on the system.

RAC installation fail due to some misconfiguration

When we reinstall RAC,we see the below error

It is better to deconfigure and cleanup the debris which are partially configured in grid home

Deconfigure the oracle high availability using perl script on the grid home

[root@rac1 grid]# cd /apps01/home/12.1.0/grid/crs/install/
[root@rac1 install]# ./roothas.pl -deconfig -force
Using configuration parameter file: ./crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resourc                                                                                                             es on 'rac1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac1' succeeded
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac1' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ra                                                                                                             c1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2020/11/29 12:53:46 CLSRSC-337: Successfully deconfigured Oracle Restart stack

Run the deinstall script to cleanup the failed inventory

[oracle@rac1 ~]$ cd /apps01/home/12.1.0/grid/deinstall/
[oracle@rac1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2020-11-29_00-56-24PM/logs/

############ ORACLE DECONFIG TOOL START ############


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


Checking for existence of the Oracle home location /apps01/home/12.1.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /apps01/base
Checking for existence of central inventory location /apps01/orainventory
Checking for existence of the Oracle Grid Infrastructure home
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
Checking for sufficient temp space availability on node(s) : 'rac1,rac2'

## [END] Install check configuration ##

Traces log file: /tmp/deinstall2020-11-29_00-56-24PM/logs//crsdc_2020-11-29_12-57-45PM.log

Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/netdc_check2020-11-29_12-57-46-PM.log

Specify all RAC listeners (do not include SCAN listener) that are to be de-configured. Enter .(dot) to deselect all. [LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1]:

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/asmcadc_check2020-11-29_12-58-06-PM.log

ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y
Automatic Storage Management (ASM) instance is detected in this Oracle home /apps01/home/12.1.0/grid.
ASM Diagnostic Destination : /apps01/base
ASM Diskgroups :
ASM diskstring : /dev/oracleasm/disks/*
Diskgroups will not be dropped
 If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering 'y'. Do you  want to modify above information (y|n) [n]: y
Is Grid Infrastructure Storage(OCR) in ASM diskgroup (y|n) [n]: y
Enter the OCR/Voting Disk diskgroup name []: OCR
Specify the ASM Diagnostic Destination [/apps01/base]:
Specify the diskstring [/dev/oracleasm/disks/*]:
Specify the diskgroups that are managed by this ASM instance []:

Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/databasedc_check2020-11-29_12-58-32-PM.log

Oracle Grid Management database was not found in this Grid Infrastructure home

Database Check Configuration END

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


####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is:
The following nodes are part of this cluster: rac1,rac2
Active Remote Nodes are rac2
The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2
Oracle Home selected for deinstall is: /apps01/home/12.1.0/grid
Inventory Location where the Oracle home registered is: /apps01/orainventory
Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1
ASM instance will be de-configured from this Oracle home
Oracle Grid Management database was not found in this Grid Infrastructure home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/tmp/deinstall2020-11-29_00-56-24PM/logs/deinstall_deconfig2020-11-29_00-57-38-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2020-11-29_00-56-24PM/logs/deinstall_deconfig2020-11-29_00-57-38-PM.err'

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/databasedc_clean2020-11-29_12-58-35-PM.log
ASM de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/asmcadc_clean2020-11-29_12-58-35-PM.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/netdc_clean2020-11-29_12-58-36-PM.log

De-configuring RAC listener(s): LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1

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

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

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

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

De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.

De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.

De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.

De-configuring backup files on all nodes...
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END


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

The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on  the local node after the execution completes on all the remote nodes.

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

/tmp/deinstall2020-11-29_00-56-24PM/perl/bin/perl -I/tmp/deinstall2020-11-29_00-56-24PM/perl/lib -I/tmp/deinstall2020-11-29_00-56-24PM/crs/install /tmp/deinstall2020-11-29_00-56-24PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-11-29_00-56-24PM/response/deinstall_OraGI12Home1.rsp"

Press Enter after you finish running the above commands

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

Run the crs perl script on node 2

[root@rac1 oracle]# /tmp/deinstall2020-11-29_00-56-24PM/perl/bin/perl -I/tmp/deinstall2020-11-29_00-56-24PM/perl/lib -I/tmp/deinstall2020-11-29_00-56-24PM/crs/install /tmp/deinstall2020-11-29_00-56-24PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstall2020-11-29_00-56-24PM/response/deinstall_OraGI12Home1.rsp"
Using configuration parameter file: /tmp/deinstall2020-11-29_00-56-24PM/response/deinstall_OraGI12Home1.rsp
Usage: srvctl <command> <object> [<options>]
    commands: enable|disable|start|stop|status|add|remove|modify|update|getenv|setenv|unsetenv|config|upgrade|downgrade
    objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
  srvctl <command> -help [-compatible] or
  srvctl <command> <object> -help [-compatible]
PRKO-2012 : nodeapps object is not supported in Oracle Restart
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
2020/11/29 13:01:12 CLSRSC-463: The deconfiguration or downgrade script could not stop current Oracle Clusterware stack.

2020/11/29 13:01:12 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.

2020/11/29 13:01:42 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.

Failure in execution (rc=-1, 0, 2) for command /etc/init.d/ohasd deinstall
2020/11/29 13:01:46 CLSRSC-557: Oracle Clusterware stack on this node has been successfully deconfigured. There were some errors which can be ignored.

2020/11/29 13:01:49 CLSRSC-46: Error: '/apps01/base/crsdata/rac1/crsconfig/cluutil2.log' does not exist

2020/11/29 13:01:49 CLSRSC-46: Error: '/apps01/base/crsdata/rac1/crsconfig/cluutil2.log' does not exist

Remove all the resources of clusterware and files under grid

[root@rac2 oracle]# /tmp/deinstall2020-11-29_00-56-24PM/perl/bin/perl -I/tmp/dei29_00-56-24PM/crs/install/rootcrs.pl -force  -deconfig -paramfile "/tmp/deinstal
Using configuration parameter file: /tmp/deinstall2020-11-29_00-56-24PM/response
PRCR-1070 : Failed to check if resource ora.net1.network is registered
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1070 : Failed to check if resource ora.helper is registered
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1070 : Failed to check if resource ora.ons is registered
CRS-0184 : Cannot communicate with the CRS daemon.

2020/11/29 13:04:01 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node

2020/11/29 13:04:02 CLSRSC-46: Error: '/apps01/base/crsdata/rac2/crsconfig/cluutil1.log' does not exist

2020/11/29 13:04:02 CLSRSC-46: Error: '/apps01/base/crsdata/rac2/crsconfig/cluutil1.log' does not exist

2020/11/29 13:04:03 CLSRSC-46: Error: '/apps01/base/crsdata/rac2/crsconfig/cluutil2.log' does not exist

2020/11/29 13:04:03 CLSRSC-46: Error: '/apps01/base/crsdata/rac2/crsconfig/cluutil2.log' does not exist

######################### DECONFIG CLEAN OPERATION END #########################


####################### DECONFIG CLEAN OPERATION SUMMARY #######################
There is no Oracle Grid Management database to de-configure in this Grid Infrastructure home
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1
Oracle Clusterware was already stopped and de-configured on node "rac1"
Oracle Clusterware is stopped and successfully de-configured on node "rac2"
Oracle Clusterware is stopped and de-configured successfully.
#######################################################################


############# ORACLE DECONFIG TOOL END #############

Using properties file /tmp/deinstall2020-11-29_00-56-24PM/response/deinstall_2020-11-29_00-57-38-PM.rsp
Location of logs /tmp/deinstall2020-11-29_00-56-24PM/logs/

############ ORACLE DEINSTALL TOOL START ############





####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2020-11-29_00-56-24PM/logs/deinstall_deconfig2020-11-29_00-57-38-PM.out'
Any error messages from this session will be written to: '/tmp/deinstall2020-11-29_00-56-24PM/logs/deinstall_deconfig2020-11-29_00-57-38-PM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to rac1
Setting REMOTE_NODES to rac2
Setting CLUSTER_NODES to rac1,rac2
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2020-11-29_00-56-24PM/oraInst.loc
Setting oracle.installer.local to false

## [END] Preparing for Deinstall ##

Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home '/apps01/home/12.1.0/grid' from the central inventory on the local node : Done

Delete directory '/apps01/home/12.1.0/grid' on the local node : Done

Delete directory '/apps01/orainventory' on the local node : Done

Delete directory '/apps01/base' on the local node : Done

Detach Oracle home '/apps01/home/12.1.0/grid' from the central inventory on the remote nodes 'rac2' : Done

Delete directory '/apps01/home/12.1.0/grid' on the remote nodes 'rac2' : Done

Delete directory '/apps01/orainventory' on the remote nodes 'rac2' : Failed <<<<

The directory '/apps01/orainventory' could not be deleted on the nodes 'rac2'.
The Oracle Base directory '/apps01/base' will not be removed on node 'rac2'. The directory is not empty.

Oracle Universal Installer cleanup completed with errors.

Oracle Universal Installer clean END


## [START] Oracle install clean ##

Clean install operation removing temporary directory '/tmp/deinstall2020-11-29_00-56-24PM' on node 'rac1'
Clean install operation removing temporary directory '/tmp/deinstall2020-11-29_00-56-24PM' on node 'rac2'

## [END] Oracle install clean ##


######################### DEINSTALL CLEAN OPERATION END #########################


####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/apps01/home/12.1.0/grid' from the central inventory on the local node.
Successfully deleted directory '/apps01/home/12.1.0/grid' on the local node.
Successfully deleted directory '/apps01/orainventory' on the local node.
Successfully deleted directory '/apps01/base' on the local node.
Successfully detached Oracle home '/apps01/home/12.1.0/grid' from the central inventory on the remote nodes 'rac2'.
Successfully deleted directory '/apps01/home/12.1.0/grid' on the remote nodes 'rac2'.
Failed to delete directory '/apps01/orainventory' on the remote nodes 'rac2'.
Oracle Universal Installer cleanup completed with errors.


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

Run 'rm -r /opt/ORCLfmap' as root on node(s) 'rac1,rac2' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL TOOL END #############

All good,we can install fresh grid

Leave a Reply

%d