Some time ago I got the issue from below:
Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/11.2.0/grid Enter the full pathname of the local bin directory: [/usr/local/bin]: The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying dbhome to /usr/local/bin ... The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying oraenv to /usr/local/bin ... The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y Copying coraenv to /usr/local/bin ... 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.sh script. Now product-specific root actions will be performed. 2011-05-11 02:20:52: Checking for super user privileges 2011-05-11 02:20:52: User has super user privileges 2011-05-11 02:20:52: Parsing the host name Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params Creating trace directory LOCAL ADD MODE Creating OCR keys for user 'oracle', privgrp 'oinstall'.. Operation successful. CRS-4664: Node localhost successfully pinned. 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: Inappropriate ioctl for device at /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl line 296.
Some possible solutions could be:
1. Look at these 2 documents:
– OHASD Failed to Start: Inappropriate ioctl for device [ID1069182.1]
– How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]
2. You will have to follow the steps where you monitor the /var/tmp/.oracle directory for the file creation and run the following command as root user as soon as the file exist:
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
3. Be sure that you’re using the certified configurations. For instance, I got this error while I was using OEL6 and I was trying to install 126.96.36.199 Grid on it. When I realized, I have used 188.8.131.52 Grid version and all went smoothly.
If you have encountered other situations, please post them in the comments.