ohasd failed to start: Inappropriate ioctl for device,ohasdinappropriate

來源:互聯網
上載者:User

ohasd failed to start: Inappropriate ioctl for device,ohasdinappropriate

  今天同事在安裝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 privileges2014-11-18 15:19:34: User has super user privileges2014-11-18 15:19:34: Parsing the host nameUsing configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_paramsCreating trace directoryLOCAL ADD MODE Creating OCR keys for user 'grid', privgrp 'oinstall'..Operation successful.CRS-4664: Node localhost successfully pinned.Adding daemon to inittabCRS-4124: Oracle High Availability Services startup failed.CRS-4000: Command Start failed, or completed with errors.ohasd failed to start: Inappropriate ioctl for deviceohasd 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 -ltotal 0prw-r--r--. 1 grid oinstall 0 Nov 18 15:19 npohasd[root@localhost .oracle]# chown root:oinstall npohasd [root@localhost .oracle]# ls -ltotal 0prw-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.0Enter 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 byDatabase Configuration Assistant when a database is createdFinished 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 privileges2014-11-18 15:55:09: User has super user privileges2014-11-18 15:55:09: Parsing the host nameUsing configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_paramsCreating trace directoryLOCAL ADD MODE Creating OCR keys for user 'grid', privgrp 'oinstall'..Operation successful.CRS-4664: Node localhost successfully pinned.Adding daemon to inittabCRS-4123: Oracle High Availability Services has been started.ohasd is startingADVM/ACFS is not supported on oraclelinux-release-6Server-4.0.4.x86_64localhost     2014/11/18 15:55:33     /u01/app/grid/11.2.0/cdata/localhost/backup_20141118_155533.olrSuccessfully configured Oracle Grid Infrastructure for a Standalone ServerUpdating inventory properties for clusterwareStarting Oracle Universal Installer...Checking swap space: must be greater than 500 MB.   Actual 3998 MB    PassedThe inventory pointer is located at /etc/oraInst.locThe 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

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.