Thursday, January 9, 2020

Oracle Linux 7 -- Oracle Grid Infrastructure 11.2 Installation Fails with CRS-4124: Oracle High Availability Services startup failed

Problem

Installation of the Oracle Grid Infrastructure 11.2.0.4 for a Cluster fails on the execution of the root.sh script:

[root@oelinux76 ~]# /u01/app/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
.
.
.
Adding daemon to inittab
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: Inappropriate ioctl for device
ohasd failed to start at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.

Solution

The root cause for this issue is that Oracle Linux 7 (RHEL 7 as well) has deprecated initd in favor of systemd, as a result init.ohasd will not start through /etc/inittab. init.ohasd needs to be set up as a service but root.sh does not handle this properly. 

This is documented in the Oracle Database 11.2 Release Notes:
 
The issue is tracked as Bug 18370031  - RC SCRIPTS (/ETC/RC.D/RC.* , /ETC/INIT.D/* ) ON OL7 FOR CLUSTERWARE
 
 
Solution is to apply patch 18370031 just before executing the root.sh script. 
The patch should be applied as:
<GRID_HOME>/OPatch/opatch napply -oh <GRID_HOME> -local <UNZIPPED_PATCH_LOCATION>/18370031
 
Applying patch 18370031 may fail with "Can't locate Switch.pm in @INC". This is Bug 18824047 - OPATCH AUTO FAILS "CAN'T LOCATE SWITCH.PM IN @INC "
Workaround is:
cp -p /u01/app/11.2.0/grid/perl/lib/5.10.0/Switch.pm  /usr/lib64/perl5
 
 
If applying the patch is not possible, a temporal workaround can be applied:
nohup etc/init.d/init.ohasd run &

Reference:
  • Install of Clusterware fails while running root.sh on OL7 - ohasd fails to start (Doc ID 1959008.1)
  • Installation walk-through - Oracle Grid/RAC 11.2.0.4 on Oracle Linux 7 (Doc ID 1951613.1)
  • Opatch Auto fails with: Can't locate Switch.pm in @INC (Doc ID 1915430.1)
  • Troubleshoot Grid Infrastructure Startup Issues (Doc ID 1050908.1)
    GI Fails to Start as Process "init.ohasd run" is not Running (Doc ID 1680406.1)

No comments: