[root@testdb11b ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@testdb11b ~]# /u01/app/11.2./grid/root.sh
Performing root user operation for Oracle 11g The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2./grid Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2./grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
OLR initialization - successful
Adding Clusterware entries to inittab
CRS-: Attempting to start 'ora.mdnsd' on 'testdb11b'
CRS-: Start of 'ora.mdnsd' on 'testdb11b' succeeded
CRS-: Attempting to start 'ora.gpnpd' on 'testdb11b'
CRS-: Start of 'ora.gpnpd' on 'testdb11b' succeeded
CRS-: Attempting to start 'ora.cssdmonitor' on 'testdb11b'
CRS-: Attempting to start 'ora.gipcd' on 'testdb11b'
CRS-: Start of 'ora.cssdmonitor' on 'testdb11b' succeeded
CRS-: Start of 'ora.gipcd' on 'testdb11b' succeeded
CRS-: Attempting to start 'ora.cssd' on 'testdb11b'
CRS-: Attempting to start 'ora.diskmon' on 'testdb11b'
CRS-: Start of 'ora.diskmon' on 'testdb11b' succeeded
CRS-: Start of 'ora.cssd' on 'testdb11b' succeeded ASM created and started successfully. Disk Group DATA created successfully. clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Successful addition of voting disk ad234a0219fa4f05bf03be9cf16122da.
Successfully replaced voting disk group with +DATA.
CRS-: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
. ONLINE ad234a0219fa4f05bf03be9cf16122da (/dev/raw/raw1) [DATA]
Located voting disk(s).
CRS-: Attempting to start 'ora.asm' on 'testdb11b'
CRS-: Start of 'ora.asm' on 'testdb11b' succeeded
CRS-: Attempting to start 'ora.DATA.dg' on 'testdb11b'
CRS-: Start of 'ora.DATA.dg' on 'testdb11b' succeeded
PRCR- : Failed to start resource ora.scan1.vip
CRS-: The resource action "ora.scan1.vip start" encountered the following error:
CRS-5005: IP Address: 192.168.1.24 is already in use in the network
. For details refer to "(:CLSN00107:)" in "/u01/app/11.2.0/grid/log/testdb11b/agent/crsd/orarootagent_root/orarootagent_root.log". CRS-: Start of 'ora.scan1.vip' on 'testdb11b' failed
CRS-: There are no more servers to try to place resource 'ora.scan1.vip' on that would satisfy its placement policy start scan ... failed
FirstNode configuration failed at /u01/app/11.2./grid/crs/install/crsconfig_lib.pm line .
/u01/app/11.2./grid/perl/bin/perl -I/u01/app/11.2./grid/perl/lib -I/u01/app/11.2./grid/crs/install /u01/app/11.2./grid/crs/install/rootcrs.pl execution failed

解决:

第一种原因可能是DNS没有配置,从11.2.0.2开始DNS是必须配置的。

配置DNS

卸载CRS,清理裸设备,使用asmlib方式绑定磁盘

dd if=/dev/zero of=/dev/raw/raw1 bs= count=
dd if=/dev/zero of=/dev/raw/raw2 bs= count=
dd if=/dev/zero of=/dev/raw/raw3 bs= count=
dd if=/dev/zero of=/dev/raw/raw4 bs= count=
[root@testdb11a ~]# oracleasm configure -i
Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: grid
Default group to own the driver interface []: asmdba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
[root@testdb11a ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@testdb11a ~]# /usr/sbin/oracleasm createdisk DISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@testdb11a ~]# /usr/sbin/oracleasm createdisk DISK2 /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@testdb11a ~]# /usr/sbin/oracleasm createdisk DISK3 /dev/sdd1
Writing disk header: done
Instantiating disk: done
[root@testdb11a ~]# /usr/sbin/oracleasm createdisk DISK4 /dev/sde1
Writing disk header: done
Instantiating disk: done
[root@testdb11a ~]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@testdb11a ~]# /usr/sbin/oracleasm listdisks
DISK1
DISK2
DISK3
DISK4

然后重新安装Grid Infrastructure。

(2)我的原因是:

重装了好几次,都是报这个错误,后来发现虚拟机的磁盘紊乱了,本来第一块二磁盘变成了第四块,但是两个虚拟机的顺序是一致的,后来把磁盘删除了又重新加上后搞定了。

a 在设置中删除并创建磁盘(vmware可以在线增删磁盘)

b 操作系统删除分区,并新建分区

c 重新绑定裸设备

d 重新安装Grid Infrastructure

清理方法详见:Oracle 11g RAC 卸载CRS步骤

最新文章

  1. Underscore-分析
  2. Java中用ClassLoader载入各种资源(类、文件、web资源)的方法
  3. LeetCode() 数字1的个数
  4. 编写高质量JS代码的68个有效方法(十)
  5. 《构建之法》阅读有疑 与 个人Week1作业
  6. 实践JAVA wait(), notify(),sleep方法--一道多线程的面试题
  7. 经典线程同步 事件Event
  8. python数据分析之pandas库的Series应用
  9. JavaBean和内省
  10. VisualC++2012 Compiler Warning C4566
  11. nodejs querystring
  12. Mysql中的force index和ignore index
  13. Java开发知识之Java中的泛型
  14. #20175201 实验一 Java开发环境的熟悉(Linux + Eclipse)
  15. Mac OS X 下安装使用 Docker (2017年7月)
  16. Spring Boot的日志配置
  17. Cookie:解决HTTP协议无保存状态
  18. Navicat连接Oracle的几个问题及解决方案
  19. 读书笔记 Bioinformatics Algorithms Chapter5
  20. 404 Note Found 队-Beta6

热门文章

  1. 正确遍历ElasticSearch索引
  2. 解决:笔记本安装mint18时,安装界面显示不全
  3. POJ3249:Test for Job
  4. Js对map的操作
  5. CSS-学习笔记一
  6. JSP登录页面使用Enter键登录【转】
  7. .Net 中的反射(序章) - Part.1
  8. C#设置textBox只能输入数字(正数,负数,小数)简单实现
  9. JVM垃圾回收算法
  10. 22章、Java集合框架习题