RHEL5单机安装11gR2 asm运行root.sh报错:CRS-4124

原因是权限的问题导致和has相关的很多信息没有真真写入磁盘组

RHEL5单机安装11gR2 asm运行root.sh报错:CRS-4124

[@more@]

[root@localhost grid]# ./root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /opt/grid/product/11.2.0/grid

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


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.
2015-03-26 06:06:18: Checking for super user privileges
2015-03-26 06:06:18: User has super user privileges
2015-03-26 06:06:18: Parsing the host name
Using configuration parameter file: /opt/grid/product/11.2.0/grid/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 /opt/grid/product/11.2.0/grid/crs/install/roothas.pl line 296.
[root@localhost grid]# cd /dev/oracleasm/disks
[root@localhost disks]# ls -l
total 0
brw-rw---- 1 oracle oinstall 8, 97 Mar 26 05:11 CRS
brw-rw---- 1 oracle oinstall 8, 49 Mar 26 05:12 DATA1
brw-rw---- 1 oracle oinstall 8, 65 Mar 26 05:12 DATA2
brw-rw---- 1 oracle oinstall 8, 81 Mar 26 05:12 FLASH
[root@localhost disks]# chown grid.oinstall CRS
[root@localhost disks]# ls -l
total 0
brw-rw---- 1 grid oinstall 8, 97 Mar 26 05:11 CRS
brw-rw---- 1 oracle oinstall 8, 49 Mar 26 05:12 DATA1
brw-rw---- 1 oracle oinstall 8, 65 Mar 26 05:12 DATA2
brw-rw---- 1 oracle oinstall 8, 81 Mar 26 05:12 FLASH
--===================================

之前DISK:CRS的owner是oracle,所以grid用户没有权限写入导致报错。修改权限之后如果不想重头安装,可以执行

$GRID_HOME/crs/install下的roothas.pl和rootcrs.pl(该命令一般用于rac安装出错清楚crs,单机下也可以尝试使用)来清楚root.sh的执行结果,之后重新执行root.sh。

./roothas.pl -deconfig -verbose -force

rootcrs.pl -deconfig -verbose -force

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/19602/viewspace-1059630/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/19602/viewspace-1059630/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值