标签:
今天同事在安装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
ohasd failed to start: Inappropriate ioctl for device
标签:
原文地址:http://www.cnblogs.com/gcczhongduan/p/5325253.html