ohasd failed to start: Inappropriate ioctl for device

Posted gcczhongduan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ohasd failed to start: Inappropriate ioctl for device相关的知识,希望对你有一定的参考价值。

  今天同事在安装GI的时候出现故障。让我帮忙看一下。

以下记录例如以下:

问题现象:

在安装gi的时候运行root.sh报例如以下错误;

Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2014-11-18 15:19:34: Checking for super user privileges
2014-11-18 15:19:34: User has super user privileges
2014-11-18 15:19:34: Parsing the host name
Using configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'grid', 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/grid/11.2.0/crs/install/roothas.pl line 296.
[[email protected] 11.2.0]# 


问题解决:

经过确认该版本号为11.2.0.1存在bug问题,随机採用暂时办法进行解决:

[[email protected] grid]#cd  /var/tmp/.oracle/
[[email protected] .oracle]# ls -l
total 0
prw-r--r--. 1 grid oinstall 0 Nov 18 15:19 npohasd
[[email protected] .oracle]# chown root:oinstall npohasd 
[[email protected] .oracle]# ls -l
total 0
prw-r--r--. 1 root oinstall 0 Nov 18 15:19 npohasd


又一次运行root.sh:

[[email protected] oraInventory]# /u01/app/grid/11.2.0/root.sh 
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid/11.2.0

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]: 
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 


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.sh script.
Now product-specific root actions will be performed.
2014-11-18 15:55:09: Checking for super user privileges
2014-11-18 15:55:09: User has super user privileges
2014-11-18 15:55:09: Parsing the host name
Using configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on oraclelinux-release-6Server-4.0.4.x86_64

localhost     2014/11/18 15:55:33     /u01/app/grid/11.2.0/cdata/localhost/backup_20141118_155533.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Updating inventory properties for clusterware
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 3998 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
[[email protected] oraInventory]# 


至此问题得到暂时解决!

 

注意:假设之前安装过gi,在运行root.sh的时候须要删除之前的配置信息:命令例如以下:

/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig -force-verbose

以上是关于ohasd failed to start: Inappropriate ioctl for device的主要内容,如果未能解决你的问题,请参考以下文章

Web server failed to start. Port 8080 was already in use.

Web server failed to start. Port 8080 was already in use.

Web server failed to start. Port 10000 was already in use.

Web server failed to start. Port 8081 was already in use.

端口占用解决:Web server failed to start. Port 8081 was already in use.

端口占用解决:Web server failed to start. Port 8081 was already in use.