原因是权限的问题导致和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/