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.
[root@localhost 11.2.0]# 


问题解决:

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

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


重新执行root.sh:

[root@localhost 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.
[root@localhost oraInventory]# 


至此问题得到临时解决!

 

注意:如果之前安装过gi,在执行root.sh的时候需要删除之前的配置信息:命令如下:

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

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。