10G RAC安装时Failed to upgrade Oracle Cluster Registry configuration

10G RAC安装时遇到Failed to upgrade Oracle Cluster Registry configuration,原因为使用DMM多路径软件device-mapper-multipath,触发此BUG。

关于DMM多路径软件device-mapper-multipath上安装RAC,参考文档Configuring raw devices (multipath) for Oracle Clusterware 10g Release 2 (10.2.0) on RHEL5/OL5 (文档 ID 564580.1),使用多路径时,需要手动创建裸设备-10G中OCR
and voting disks需要用裸设备,11g开始支持DMM mapping出来的文件。

3. Create Raw Devices

During the installation of Oracle Clusterware 10g Release 2 (10.2.0), the Universal Installer (OUI) is unable to verify the sharedness of block devices, therefore requires the use of raw devices (whether to singlepath or multipath devices) to be specified
for OCR and voting disks. As mentioned earlier, this is no longer the case from Oracle11g R1 (11.1.0) that can use multipathed block devices directly.

Manually create raw devices to bind against multipathed device partitions (/dev/mapper/*pN). Disregard device permissions for now - this will
be addressed later.For example:

# raw /dev/raw/raw1 /dev/mapper/ocr1p1

/dev/raw/raw1:  bound to major 253, minor 11

这里遇到的为执行root.sh脚本是地

[[email protected] ~]# sh /oracle/app/oracle/product/10.2.0/crs/root.sh

WARNING: directory ‘/oracle/app/oracle/product/10.2.0‘ is not owned by root

WARNING: directory ‘/oracle/app/oracle/product‘ is not owned by root

WARNING: directory ‘/oracle/app/oracle‘ is not owned by root

WARNING: directory ‘/oracle/app‘ is not owned by root

WARNING: directory ‘/oracle‘ is not owned by root

Checking to see if Oracle CRS stack is already configured

/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory

Setting up NS directories

Failed to upgrade Oracle Cluster Registry configuration

这一点在参考文档Configuring raw devices (multipath) for Oracle Clusterware 10g Release 2 (10.2.0) on RHEL5/OL5 (文档 ID 564580.1)中也有描述,

7. Install Oracle 10gR2 Clusterware

Proceed to install Oracle Clusterware 10g Release 2 (10.2.0), ensuring to specify the appropriate raw devices (/dev/raw/rawN) for OCR and voting disks. OCR devices are initialised (formatted) as part of running
the root.sh script. Before running
root.sh, be aware that several known issues exist that will cause the Clusterware installation to fail, namely:

  • Bug.4679769 FAILED TO FORMAT OCR DISK USING CLSFMT
  • Note.414163.1 10gR2 RAC Install issues on Oracle EL5 or RHEL5 or SLES10 (VIPCA Failures)

Due to Bug.4679769, initialisation of multipathed OCR devices will fail. Therefore, before runningroot.sh, download and apply patch for
Bug.4679769. If root.sh was already run without first having applied patch forBug.4679769,
remove (null) the failed, partially initialised OCR structures from all OCR devices, for example:

也就是说在运行root.sh脚本前要先打补丁Bug.4679769,再将OCR盘DD一下,再用clsfmt.bin验证一下是否能FORMAT OCR盘

大致如下:

[[email protected] bin]# cd /home/oracle/install/4679769/

[[email protected] 4679769]# ls

clsfmt.bin  README.txt

[[email protected] 4679769]# ls -al

total 692

drwxrwxr-x 2 oracle oinstall   4096 Nov  9  2005 .

drwxr-xr-x 6 oracle oinstall   4096 Dec 29 16:51 ..

-rw-r--r-- 1 oracle oinstall 687320 Nov  9  2005 clsfmt.bin

-rw-rw-r-- 1 oracle oinstall   4266 Nov  9  2005 README.txt

[[email protected] 4679769]# cp clsfmt.bin /oracle/app/oracle/product/10.2.0/crs/bin/

[[email protected] 4679769]# cd -

/oracle/app/oracle/product/10.2.0/crs/bin

[[email protected] bin]# chmod 755 clsfmt.bin

[[email protected] bin]# dd if=/dev/null of=/dev/raw/raw9 bs=1024k count=1000

0+0 records in

0+0 records out

0 bytes (0 B) copied, 3.9e-05 seconds, 0.0 kB/s

[[email protected] bin]# dd if=/dev/zero of=/dev/raw/raw9 bs=1024k count=1000

1000+0 records in

1000+0 records out

1048576000 bytes (1.0 GB) copied, 2.00336 seconds, 523 MB/s

[[email protected] bin]# dd if=/dev/zero of=/dev/raw/raw10 bs=1024k count=1000

1000+0 records in

1000+0 records out

1048576000 bytes (1.0 GB) copied, 1.99393 seconds, 526 MB/s

[[email protected] bin]# ./clsfmtbin ocr /dev/raw/raw9

bash: ./clsfmtbin: No such file or directory

[[email protected] bin]# ./clsfmt.bin ocr /dev/raw/raw9

clsfmt: successfully initialized file /dev/raw/raw9

[[email protected] bin]# ./clsfmt.bin ocr /dev/raw/raw10

clsfmt: successfully initialized file /dev/raw/raw10

再次执行root.sh就可以了

[[email protected] bin]# sh /oracle/app/oracle/product/10.2.0/crs/root.sh

WARNING: directory ‘/oracle/app/oracle/product/10.2.0‘ is not owned by root

WARNING: directory ‘/oracle/app/oracle/product‘ is not owned by root

WARNING: directory ‘/oracle/app/oracle‘ is not owned by root

WARNING: directory ‘/oracle/app‘ is not owned by root

WARNING: directory ‘/oracle‘ is not owned by root

Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory

Setting up NS directories

Oracle Cluster Registry configuration upgraded successfully

WARNING: directory ‘/oracle/app/oracle/product/10.2.0‘ is not owned by root

WARNING: directory ‘/oracle/app/oracle/product‘ is not owned by root

WARNING: directory ‘/oracle/app/oracle‘ is not owned by root

WARNING: directory ‘/oracle/app‘ is not owned by root

WARNING: directory ‘/oracle‘ is not owned by root

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node <nodenumber>: <nodename> <private interconnect name> <hostname>

node 1: 315rac01 priv_rac01 315rac01

node 2: 315rac02 priv_rac02 315rac02

Creating OCR keys for user ‘root‘, privgrp ‘root‘..

Operation successful.

Now formatting voting device: /dev/raw/raw3

Now formatting voting device: /dev/raw/raw4

Now formatting voting device: /dev/raw/raw5

Format of 3 voting devices complete.

Startup will be queued to init within 90 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

315rac01

CSS is inactive on these nodes.

315rac02

Local node checking complete.

Run root.sh on remaining nodes to start CRS daemons.

时间: 2024-10-10 16:06:32

10G RAC安装时Failed to upgrade Oracle Cluster Registry configuration的相关文章

Failed to upgrade Oracle Cluster Registry configuration(root.sh)

近期在给客户基于Suse 11 sp3安装Oracle 10g RAC,在安装完clusterware运行/u01/app/crs/root.sh时收到错误提示.Failed to upgrade Oracle Cluster Registry configuration因为当前的环境使用了多路径,从Oracle的描写叙述来看.这是一个Oracle Bug(4679769),假设你有同样的问题,请接着往下看. 一.故障现象suse11a:/u01/app/crs # /u01/app/crs/r

RAC安装时需要执行4个脚本及意义

RAC安装时需要执行4个脚本 1) $ORACLE_BASE/oraInventory/orainstRoot.sh (clusterware 结束时执行) 2) $CRS_HOME/root.sh (clusterware 结束时执行) 3) $CRS_HOME/bin/vipca.sh(该脚本是在第二个节点执行$CRS_HOME/root.sh时被自动调用) 4) $ORACLE_HOME/root.sh (安装完数据库以后执行) 1. orainstRoot.sh 脚本 1.1 orain

Redhat 5.4 + ASM + RAW+ Oracle 10g RAC 安装文档

基于Redhat 5 和redhat 4 的RAC 区别在对raw的处理上. 之前做的是redhat 4.7 的 RAC 实验. 准备做一个Redhat 5.4 的环境. RAC 的一些理论东西: http://blog.csdn.net/tianlesoftware/archive/2010/02/27/5331067.aspx RAW+ASM+ REDHAT 4.7 RAC 文档 http://blog.csdn.net/tianlesoftware/archive/2010/02/27/5

10G rac 安装报The specified nodes are not clusterable 错误

环境: oracle clusterware:10.2.0.1 redhat 5.5 在验证完相关配置后,提示RAC安装时,报The specified nodes are not clusterable:排查/etc/hosts和信任关系没有错误的情况下,那么要注意rootpre.sh是否都在任何节点执行了

About Oracle Cluster Registry

Oracle Cluster Registry (OCR) is a file that contains information about the cluster node list and instance-to-node mapping information. OCR also contains information about Oracle Clusterware resource profiles for resources that you have customized. T

VMware安装失败 “Failed to create the requested registry key Key:installer Error:1021&quot;

今天来到公司,公司的电脑的系统全都换成了win7家庭版的了,然后想重新安装vmware,安装时出现了这个错误: 解决方法: 1.按win+r打开 regedit 2.打开注册表,找到 "HKEY_LOCAL_MACHINE" -->  "SOFWARE"  --> "Wow6432Node"  -->   "VMware,Inc." 直接把VMware,Inc.删除了 删除VMware.Inc. 然后再重装就

管理 Oracle Cluster Registry(OCR)

oracle的clusterware包含两个重要组件:OCR(包含本地组件OLR)和voting disks --OCR管理oracle clusterware和oracle rac数据库的配置信息 --OLR位于每个节点本地,管理着本地节点的clusterware配置信息 --voting disks管理成员关系信息.每个voting disk都必须能被集群中的所有节点访问. 在12C中,必须将OCR和voting disks中放在asm中(12c不支持块设备和裸设备:12.2不再支持其他共享

10g rac安装注意事项

1.配置ip地址不要忘记网关DEVICE=eth0BOOTPROTO=noneBROADCAST=192.168.100.255HWADDR=00:0C:29:28:8F:ACIPADDR=192.168.100.101NETMASK=255.255.255.0NETWORK=192.168.100.0ONBOOT=yesTYPE=EthernetGATEWAY=192.168.100.1 2.域名解析不要忘记了localhost127.0.0.1 localhost192.168.100.10

Oracle Cluster Registry Location to be Added is not Accessible

APPLIES TO: Oracle Server - Enterprise Edition - Version 11.2.0.1 and laterInformation in this document applies to any platform. GOAL This note is to list OCR storage requirement and to provide location of diagnostic information if PROT-30 is reporte