Redhat 5.4 RAC multipath 配raw 运行root.sh 报Failed to upgrade Oracle Cluster Reg

在LINUX AS 5.4上安装Oracle RAC 10.2.0.1,使用多路径软件映射出来的虚拟磁盘分区保存OCR和VOTE DISK信息。执行root.sh时报错"Failed to upgrade Oracle Cluster Registry configuration"。这个错误以前在升级Oracle RAC 10.2.0.3到10.2.0.4 for solaris 时也遇到过。文件clsfmt.bin在root.sh执行过程中不能正常工作。oracle认为这是一个bug,给了一个新的clsfmt.bin,替换到rac中现有的clsfmt.bin后,再执行root.sh就可以。如果还是不行,彻底清理掉RAC安装信息后,再执行root.sh之前替换掉文件clsfmt.bin。

 

它的错误印象深刻,特意记录一下。

 

(miki西游 @mikixiyou 原文链接: http://mikixiyou.iteye.com/blog/1727885 )

它的报错的具体信息如下:

[root@rac11 ~]# /u01/app/oracle/product/10.2.0/crshome_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' 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
Failed to upgrade Oracle Cluster Registry configuration
 

分析ocrconfig.log日志,错误信息如下:

[root@rac11 ~]# more /u01/app/oracle/product/10.2.0/crshome_1/log/rac11/client/ocrconfig_11282.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.  All rights reserved.
2012-11-16 14:36:56.567: [ OCRCONF][521395072]ocrconfig starts...
2012-11-16 14:36:56.567: [ OCRCONF][521395072]Upgrading OCR data
2012-11-16 14:36:56.572: [ OCRCONF][521395072]OCR already in current version.
2012-11-16 14:36:56.579: [ OCRCONF][521395072]Failed to call clsssinit (21)
2012-11-16 14:36:56.579: [ OCRCONF][521395072]Failed to make a backup copy of OCR
2012-11-16 14:36:56.579: [ OCRCONF][521395072]Exiting [status=failed]...
[root@rac11 ~]#

 
使用dd清理raw1,raw2裸设备
dd if=/dev/zero of=/dev/raw/raw1 bs=8192K count=10
dd if=/dev/zero of=/dev/raw/raw2 bs=8192K count=10

清理结果正常,不是磁盘不能读或者保存有旧的配置信息。


于是查找oracle官网,说这是一个bug.

在Redhat 5.4 RAC multipath 配置raw,运行root.sh 时报错Failed to upgrade Oracle Cluster Registry configuration 。

使用clsfmt.bin检查一下。

[root@rac11 ~]# /u01/app/oracle/product/10.2.0/crshome_1/bin/clsfmt.bin ocr /dev/raw/raw1
clsfmt: Received unexpected error 4 from skgfifi
skgfifi: Additional information: -2
Additional information: -2147483648

 
oracle 发布的补丁包p4679769_10201_Linux-x86-64.zip。补丁包中的clsfmt.bin文件替换到系统bin目录的同名称文件即可。

你可能感兴趣的:(oracle,RAC,root.sh)