CLSRSC-218: Failed to install the OHASD startup script CLSRSC-317: Failed to register Oracle OHASD service

Problem:

During Standalone 12c oracle grid installation it has been observed that root.sh is failing on SUSE Linux 11 due to errors CLSRSC-218 & CLSRSC-317

$ /rdbms/app/12.1.0.2/grid/root.sh
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= ora11g
    ORACLE_HOME=  /rdbms/app/12.1.0.2/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: /rdbms/app/12.1.0.2/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'ora11g', 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 testlab2 successfully pinned.
2015/09/14 12:11:01 CLSRSC-218: Failed to install the OHASD startup script (error: 25)

2015/09/14 12:11:01 CLSRSC-317: Failed to register Oracle OHASD service

Died at /rdbms/app/12.1.0.2/grid/crs/install/crsohasd.pm line 138.
The command '/rdbms/app/12.1.0.2/grid/perl/bin/perl -I/rdbms/app/12.1.0.2/grid/perl/lib -I/rdbms/app/12.1.0.2/grid/crs/install /rdbms/app/12.1.0.2/grid/crs/install/roothas.pl ' execution failed

/tmp/deinstall2015-09-14_00-38-39PM/perl/bin/perl -I/tmp/deinstall2015-09-14_00-38-39PM/perl/lib -I/tmp/deinstall2015-09-14_00-38-39PM/crs/install /tmp/deinstall2015-09-14_00-38-39PM/crs/install/roothas.pl -force  -deconfig -paramfile "/tmp/deinstall2015-09-14_00-38-39PM/response/deinstall_OraGI12Home1.rsp"
 


Solution :

Mine below logs probably roothas.log in below locations ,

1. <oraInventory_location>/logs/* installation logs
2. <GRID_HOME>/cfgtoollogs/crsconfig/root*.log


Will find problem causing resource service name highlighted below,

>  sles-release-11.2-1.234
>End Command output
2015-09-14 15:23:31: Executing cmd: /bin/rpm -q sles-release
2015-09-14 15:23:31: Command output:
>  sles-release-11.2-1.234
>End Command output
2015-09-14 15:23:31: Executing cmd: /usr/lib/lsb/install_initd /etc/init.d/ohasd
2015-09-14 15:23:31: Command output:
>  insserv: script netbackup.01-28-15.18:48:17: service netbackup already provided!
>  insserv: warning: script 'init.ohasd' missing LSB tags and overrides
>  insserv: Default-Start undefined, assuming default start runlevel(s) for script `init.ohasd'
>  insserv: script netbackup.07-07-14.15:50:05: service netbackup already provided!
>  insserv: There is a loop between service hostagent and init.ohasd if stopped
>  insserv:  loop involving service init.ohasd at depth 2
>  insserv:  loop involving service hostagent at depth 1
>  insserv: Stopping init.ohasd depends on hostagent and therefore on system facility `$all' which can not be true!>  insserv: exiting now without changing boot order!
>End Command output
2015-09-14 15:23:31: Executing cmd: /rdbms/app/oracle/12.1.0.2/db/bin/clsecho -p has -f clsrsc -m 218 "25"
2015-09-14 15:23:31: Command output:
>  CLSRSC-218: Failed to install the OHASD startup script (error: 25)
>End Command output
2015-09-14 15:23:31: Executing cmd: /rdbms/app/oracle/12.1.0.2/db/bin/clsecho -p has -f clsrsc -m 218 "25"
2015-09-14 15:23:31: Command output:
>  CLSRSC-218: Failed to install the OHASD startup script (error: 25)
>End Command output


Here ,  init.ohasd configuration is problematic which can be fixed by below changes in /etc/init.d/init.ohasd

Modify below line of /etc/init.d/init.ohasd from 

#   Required-Start: $all
#   Required-Stop: $all
 


to

#   Required-Start: $network $syslog
#   Required-Stop: $network $syslog


And re-run root.sh

Also refer /rdbms/app/oracle/12.1.0.2/db/crs/init/ohasd.sles i.e. $ORACLE_HOME/crs/init/ohasd.sles incase such changes are required

Resolved:

$sudo /rdbms/app/oracle/12.1.0.2/db/root.sh
ora11g's password:
Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= ora11g
    ORACLE_HOME=  /rdbms/app/oracle/12.1.0.2/db

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.

To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
/rdbms/app/oracle/12.1.0.2/db/perl/bin/perl -I/rdbms/app/oracle/12.1.0.2/db/perl/lib -I/rdbms/app/oracle/12.1.0.2/db/crs/install /rdbms/app/oracle/12.1.0.2/db/crs/install/roothas.pl

To configure Grid Infrastructure for a Cluster execute the following command as ora11g user:
/rdbms/app/oracle/12.1.0.2/db/crs/config/config.szh
This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.

/tmp/deinstall2015-09-15_11-52-44AM/perl/bin/perl -I/tmp/deinstall2015-09-15_11-52-44AM/perl/lib -I/tmp/deinstall2015-09-15_11-52-44AM/crs/install /tmp/deinstall2015-09-15_11-52-44AM/crs/install/roothas.pl -force  -deconfig -paramfile "/tmp/deinstall2015-09-15_11-52-44AM/response/deinstall_OraGI12Home1.rsp"


Success !?

Reference -  SUSE Linux: root.sh fails with: Failed to install ohasd startup script, error: Inappropriate ioctl for device (Doc ID 1485604.1)

My Popular Posts