Oracle 11gR2 RAC 安装,在第二个节点执行root.sh 脚本的时候,报错。 log 日志如下:
2010-11-14 00:43:36: CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
2010-11-14 00:43:36: CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
2010-11-14 00:43:36: CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
2010-11-14 00:43:36: CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
2010-11-14 00:43:36: CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
2010-11-14 00:43:36: CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
2010-11-14 00:43:36: CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
2010-11-14 00:43:36: CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
2010-11-14 00:43:36: CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
2010-11-14 00:43:36: CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
2010-11-14 00:43:36: CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
2010-11-14 00:43:36: CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
2010-11-14 00:43:36: Querying for existing CSS voting disks
2010-11-14 00:43:37: Performing initial configuration for cluster
2010-11-14 00:43:40: Start of resource "ora.ctssd -init" Succeeded
2010-11-14 00:43:40: Configuring ASM via ASMCA
2010-11-14 00:43:41: Executing as grid: /u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName CRS -diskList /dev/mapper/crsp1 -redundancy EXTERNAL -diskString '/dev/mapper/' -configureLocalASM
2010-11-14 00:43:41: Running as user grid: /u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName CRS -diskList /dev/mapper/crsp1 -redundancy EXTERNAL -diskString '/dev/mapper/' -configureLocalASM
2010-11-14 00:43:41: Invoking "/u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName CRS -diskList /dev/mapper/crsp1 -redundancy EXTERNAL -diskString '/dev/mapper/' -configureLocalASM" as user "grid"
2010-11-14 00:46:15: Configuration of ASM failed, see logs for details
2010-11-14 00:46:15: Did not succssfully configure and start ASM
2010-11-14 00:46:15: Exiting exclusive mode
2010-11-14 00:46:16: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
2010-11-14 00:46:16: Stop of resource "ora.crsd -init" failed
2010-11-14 00:46:16: Failed to stop CRSD
2010-11-14 00:46:59: Initial cluster configuration failed. See /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_rac2.log for details
这里是共享设备的权限问题导致。
[root@rac2 install]# cd /dev/mapper/
[root@rac2 mapper]# ll
total 0
crw------- 1 root root 10, 62 Nov 13 19:12 control
brw-rw---- 1 root disk 253, 0 Nov 13 20:05 crs
brw-rw---- 1 root disk 253, 4 Nov 13 20:57 crsp1
brw-rw---- 1 root disk 253, 1 Nov 13 20:05 data
brw-rw---- 1 root disk 253, 3 Nov 13 20:05 datap1
brw-rw---- 1 root disk 253, 2 Nov 13 20:05 fra
brw-rw---- 1 root disk 253, 5 Nov 13 20:05 frap1
这里的权限是root。 安装需要需要改成Oracle 用户。
执行脚本改变权限:
[root@rac2 mapper]# sh /etc/rc.d/rc.local
[grid@rac1 ~]$ cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
chown oracle:oinstall /dev/mapper/fra*
chown oracle:oinstall /dev/mapper/data*
chown oracle:oinstall /dev/mapper/crs*
在次查看权限:
[root@rac2 mapper]# ll
total 0
crw------- 1 root root 10, 62 Nov 13 19:12 control
brw-rw---- 1 oracle oinstall 253, 0 Nov 13 20:05 crs
brw-rw---- 1 oracle oinstall 253, 4 Nov 13 20:57 crsp1
brw-rw---- 1 oracle oinstall 253, 1 Nov 13 20:05 data
brw-rw---- 1 oracle oinstall 253, 3 Nov 13 20:05 datap1
brw-rw---- 1 oracle oinstall 253, 2 Nov 13 20:05 fra
brw-rw---- 1 oracle oinstall 253, 5 Nov 13 20:05 frap1
删除节点上的信息,在执行root.sh 命令。 不然会报错:
[root@rac2 mapper]# /u01/app/11.2.0/grid/crs/install/roothas.pl -delete -force -verbose
2010-11-14 01:08:03: Checking for super user privileges
2010-11-14 01:08:03: User has super user privileges
2010-11-14 01:08:03: Parsing the host name
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
ACFS-9200: Supported
Successfully deconfigured Oracle Restart stack
[root@rac2 mapper]#
执行root.sh
[root@rac2 mapper]# /u01/app/11.2.0/grid/root.sh
顺利安装结束。
------------------------------------------------------------------------------
Blog: http://blog.csdn.net/tianlesoftware
网上资源: http://tianlesoftware.download.csdn.net
相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx
DBA1 群:62697716(满); DBA2 群:62697977(满)
DBA3 群:62697850 DBA 超级群:63306533;
聊天 群:40132017
--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请