当前位置:   article > 正文

ohasd failed to start: Inappropriate ioctl for device_oracle 扩展表空间报错 inappropriate ioctl for device

oracle 扩展表空间报错 inappropriate ioctl for device

  今天同事在安装GI的时候出现问题,让我帮忙看一下。下面记录如下:

问题现象:

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

  1. Finished running generic part of root.sh script.
  2. Now product-specific root actions will be performed.
  3. 2014-11-18 15:19:34: Checking for super user privileges
  4. 2014-11-18 15:19:34: User has super user privileges
  5. 2014-11-18 15:19:34: Parsing the host name
  6. Using configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_params
  7. Creating trace directory
  8. LOCAL ADD MODE
  9. Creating OCR keys for user 'grid', privgrp 'oinstall'..
  10. Operation successful.
  11. CRS-4664: Node localhost successfully pinned.
  12. Adding daemon to inittab
  13. CRS-4124: Oracle High Availability Services startup failed.
  14. CRS-4000: Command Start failed, or completed with errors.
  15. ohasd failed to start: Inappropriate ioctl for device
  16. ohasd failed to start: Inappropriate ioctl for device at /u01/app/grid/11.2.0/crs/install/roothas.pl line 296.
  17. [root@localhost 11.2.0]#


问题解决:

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

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


重新执行root.sh:

  1. [root@localhost oraInventory]# /u01/app/grid/11.2.0/root.sh
  2. Running Oracle 11g root.sh script...
  3. The following environment variables are set as:
  4. ORACLE_OWNER= grid
  5. ORACLE_HOME= /u01/app/grid/11.2.0
  6. Enter the full pathname of the local bin directory: [/usr/local/bin]:
  7. The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
  8. [n]: y
  9. Copying dbhome to /usr/local/bin ...
  10. The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
  11. [n]:
  12. The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
  13. [n]:
  14. Creating /etc/oratab file...
  15. Entries will be added to the /etc/oratab file as needed by
  16. Database Configuration Assistant when a database is created
  17. Finished running generic part of root.sh script.
  18. Now product-specific root actions will be performed.
  19. 2014-11-18 15:55:09: Checking for super user privileges
  20. 2014-11-18 15:55:09: User has super user privileges
  21. 2014-11-18 15:55:09: Parsing the host name
  22. Using configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_params
  23. Creating trace directory
  24. LOCAL ADD MODE
  25. Creating OCR keys for user 'grid', privgrp 'oinstall'..
  26. Operation successful.
  27. CRS-4664: Node localhost successfully pinned.
  28. Adding daemon to inittab
  29. CRS-4123: Oracle High Availability Services has been started.
  30. ohasd is starting
  31. ADVM/ACFS is not supported on oraclelinux-release-6Server-4.0.4.x86_64
  32. localhost 2014/11/18 15:55:33 /u01/app/grid/11.2.0/cdata/localhost/backup_20141118_155533.olr
  33. Successfully configured Oracle Grid Infrastructure for a Standalone Server
  34. Updating inventory properties for clusterware
  35. Starting Oracle Universal Installer...
  36. Checking swap space: must be greater than 500 MB. Actual 3998 MB Passed
  37. The inventory pointer is located at /etc/oraInst.loc
  38. The inventory is located at /u01/app/oraInventory
  39. 'UpdateNodeList' was successful.
  40. [root@localhost oraInventory]#


至此问题得到临时解决!

 

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

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/231944
推荐阅读
相关标签
  

闽ICP备14008679号