RHEL5單機安裝11gR2 asm執行root.sh報錯:CRS-4124

warehouse發表於2012-10-18

原因是許可權的問題導致和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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章