CLSRSC-318: Failed to start Oracle OHASD service-Died at /app01/grid/crs/install/crsinstall.pm line 3209.

CLSRSC-318: Failed to start Oracle OHASD service-Died at /app01/grid/crs/install/crsinstall.pm line 3209.

While execution of root.sh script, ohasd failed to start due to SELINUX issues

[root@dgprim01 grid]# /tmp/GridSetupActions2021-09-02_11-13-48PM/CVU_19.0.0.0.0_oracle/runfixup.sh
All Fix-up operations were completed successfully.
[root@dgprim01 grid]#
[root@dgprim01 grid]#
[root@dgprim01 grid]#
[root@dgprim01 grid]# /app01/grid/root.sh
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /app01/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
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: /app01/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u01/base/crsdata/dgprim01/crsconfig/roothas_2021-09-02_11-30-19PM.log
2021/09/02 23:30:31 CLSRSC-363: User ignored prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node dgprim01 successfully pinned.
2021/09/02 23:31:06 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2021/09/02 23:33:34 CLSRSC-214: Failed to start the resource 'ohasd'
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2021-09-02 23:30:31.886 [CLSECHO(18913)]CLSRSC-0567: Beginning Oracle Grid Infrastructure configuration.
2021-09-02 23:30:44.003 [OCRCONFIG(19100)]CRS-2101: The OLR was formatted using version 4.
2021-09-02 23:30:53.140 [CLSCFG(19187)]CRS-1001: The OCR was formatted using version 4.

2021/09/02 23:33:35 CLSRSC-318: Failed to start Oracle OHASD service
Died at /app01/grid/crs/install/crsinstall.pm line 3209.

I disabled selinux in configuration file

[root@dgprim01 grid]# cat /etc/selinux/config|grep 'SELINUX=d'
SELINUX=disabled

Set the selinux status from enforce to permissive

[root@dgprim01 grid]# getenforce
Enforcing
[root@dgprim01 grid]# setenforce 0
[root@dgprim01 grid]# getenforce
Permissive

Post that, bingo !

[root@dgprim01 grid]# /app01/grid/root.sh
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /app01/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: /app01/grid/crs/install/crsconfig_params
The log of current session can be found at:
  /u01/base/crsdata/dgprim01/crsconfig/roothas_2021-09-02_11-57-50PM.log
2021/09/02 23:57:53 CLSRSC-363: User ignored prerequisites during installation
2021/09/02 23:57:59 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'

dgprim01     2021/09/02 23:59:28     /u01/base/crsdata/dgprim01/olr/backup_20210902_235928.olr     724960844
2021/09/02 23:59:33 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

Leave a Reply

%d bloggers like this: