When installing the 11g cluster software, the root.sh script was not executed successfully when the root.sh script was run at the end, and the following error was prompted at the end:
[root@r2 ~]# /u01/app/11.2.0/grid_1/root.sh
CRS-4000: Command Add failed, or completed with errors.
CRS-2728: A resource type with the name 'ora.haip.type' is already registered
CRS-4000: Command Add failed, or completed with errors.
CRS-2728: A resource type with the name 'ora.mdns.type' is already registered
CRS-4000: Command Add failed, or completed with errors.
Failed to register Grid Infrastructure type ora.mdns.type at /u01/app/11.2.0/grid_1/crs/install/crsconfig_lib.pm line 7940.
/u01/app/11.2.0/grid_1/perl/bin/perl -I/u01/app/11.2.0/grid_1/perl/lib -I/u01/app/11.2.0/grid_1/crs/install /u01/app/11.2.0/grid_1/crs/install/rootcrs.pl execution failed
Solution:
- Enter $grid_home/install/ and run ./roothas.pl -deconfig -force -verbose, and re-execute root.sh
- [root@r2 ~]# cd /u01/app/11.2.0/grid_1/crs/install/
- [root@r2 install]# ./roothas.pl -deconfig -force -verbose
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.
CLSU-00100: Operating System function: failed failed with error data: 2
CLSU-00101: Operating System error message: No such file or directory
CLSU-00103: error location: scrsearch3
CLSU-00104: additional error information: id doesnt exist scls_scr_setval
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'r2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'r2'
CRS-2673: Attempting to stop 'ora.crf' on 'r2'
CRS-2679: Attempting to clean 'ora.cssd' on 'r2'
CRS-2679: Attempting to clean 'ora.cssdmonitor' on 'r2'
CRS-2677: Stop of 'ora.mdnsd' on 'r2' succeeded
CRS-2677: Stop of 'ora.crf' on 'r2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'r2'
CRS-2681: Clean of 'ora.cssd' on 'r2' succeeded
CRS-2681: Clean of 'ora.cssdmonitor' on 'r2' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'r2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'r2'
CRS-2677: Stop of 'ora.gpnpd' on 'r2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'r2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle Restart stack