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

[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

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

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 -forceUsing configuration parameter file: ./crsconfig_paramsCRS-4535: Cannot communicate with Cluster Ready ServicesCRS-4000: Command Stop failed, or completed with errors.CRS-4535: Cannot communicate with Cluster Ready ServicesCRS-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' succeededCRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeededCRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeededCRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeededCRS-2677: Stop of 'ora.evmd' on 'rac1' succeededCRS-2677: Stop of 'ora.gipcd' on 'rac1' succeededCRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ra c1' has completedCRS-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]$ ./deinstallChecking 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/gridOracle Home type selected for deinstall is: Oracle Grid Infrastructure for a ClusterOracle Base selected for deinstall is: /apps01/baseChecking for existence of central inventory location /apps01/orainventoryChecking for existence of the Oracle Grid Infrastructure homeThe following nodes are part of this cluster: rac1,rac2Active Remote Nodes are rac2Checking 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.logNetwork Configuration check config STARTNetwork de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/netdc_check2020-11-29_12-57-46-PM.logSpecify 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 ENDAsm Check Configuration STARTASM de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/asmcadc_check2020-11-29_12-58-06-PM.logASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: yAutomatic Storage Management (ASM) instance is detected in this Oracle home /apps01/home/12.1.0/grid.ASM Diagnostic Destination : /apps01/baseASM 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]: yIs Grid Infrastructure Storage(OCR) in ASM diskgroup (y|n) [n]: yEnter the OCR/Voting Disk diskgroup name []: OCRSpecify 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 STARTDatabase de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/databasedc_check2020-11-29_12-58-32-PM.logOracle Grid Management database was not found in this Grid Infrastructure homeDatabase 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,rac2Active Remote Nodes are rac2The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2Oracle Home selected for deinstall is: /apps01/home/12.1.0/gridInventory Location where the Oracle home registered is: /apps01/orainventoryFollowing RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1ASM instance will be de-configured from this Oracle homeOracle Grid Management database was not found in this Grid Infrastructure homeDo you want to continue (y - yes, n - no)? [n]: yA 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.logASM de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/asmcadc_clean2020-11-29_12-58-35-PM.logASM Clean Configuration STARTASM Clean Configuration ENDNetwork Configuration clean config STARTNetwork de-configuration trace file location: /tmp/deinstall2020-11-29_00-56-24PM/logs/netdc_clean2020-11-29_12-58-36-PM.logDe-configuring RAC listener(s): LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1De-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.rspUsage: 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|onsFor 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 RestartCRS-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 deinstall2020/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 exist2020/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/deinstalUsing configuration parameter file: /tmp/deinstall2020-11-29_00-56-24PM/responsePRCR-1070 : Failed to check if resource ora.net1.network is registeredCRS-0184 : Cannot communicate with the CRS daemon.PRCR-1070 : Failed to check if resource ora.helper is registeredCRS-0184 : Cannot communicate with the CRS daemon.PRCR-1070 : Failed to check if resource ora.ons is registeredCRS-0184 : Cannot communicate with the CRS daemon.2020/11/29 13:04:01 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node2020/11/29 13:04:02 CLSRSC-46: Error: '/apps01/base/crsdata/rac2/crsconfig/cluutil1.log' does not exist2020/11/29 13:04:02 CLSRSC-46: Error: '/apps01/base/crsdata/rac2/crsconfig/cluutil1.log' does not exist2020/11/29 13:04:03 CLSRSC-46: Error: '/apps01/base/crsdata/rac2/crsconfig/cluutil2.log' does not exist2020/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 homeASM instance was de-configured successfully from the Oracle homeFollowing RAC listener(s) were de-configured successfully: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1Oracle 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.rspLocation 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 rac1Setting REMOTE_NODES to rac2Setting CLUSTER_NODES to rac1,rac2Setting CRS_HOME to falseSetting oracle.installer.invPtrLoc to /tmp/deinstall2020-11-29_00-56-24PM/oraInst.locSetting oracle.installer.local to false## [END] Preparing for Deinstall ##Setting the force flag to falseSetting the force flag to cleanup the Oracle BaseOracle Universal Installer clean STARTDetach Oracle home '/apps01/home/12.1.0/grid' from the central inventory on the local node : DoneDelete directory '/apps01/home/12.1.0/grid' on the local node : DoneDelete directory '/apps01/orainventory' on the local node : DoneDelete directory '/apps01/base' on the local node : DoneDetach Oracle home '/apps01/home/12.1.0/grid' from the central inventory on the remote nodes 'rac2' : DoneDelete directory '/apps01/home/12.1.0/grid' on the remote nodes 'rac2' : DoneDelete 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

Related

Comments 0

Leave a Reply

[INS-40401] The Installer has detected a configured Oracle Clusterware home on the system. (2024)
Top Articles
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 6507

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.