RedHat OCR 报错.docx

上传人:PIYPING 文档编号:11374029 上传时间:2021-07-31 格式:DOCX 页数:9 大小:30.96KB
返回 下载 相关 举报
RedHat OCR 报错.docx_第1页
第1页 / 共9页
RedHat OCR 报错.docx_第2页
第2页 / 共9页
RedHat OCR 报错.docx_第3页
第3页 / 共9页
RedHat OCR 报错.docx_第4页
第4页 / 共9页
RedHat OCR 报错.docx_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《RedHat OCR 报错.docx》由会员分享,可在线阅读,更多相关《RedHat OCR 报错.docx(9页珍藏版)》请在三一文库上搜索。

1、Redhat 5.4 RAC multipath 配置raw,运行root.sh 时报错Failed to upgrade Oracle Cluster Registry configuration 解决方法之前打算装Oracle 11gR2的RAC的。后来因为资源不够,就改装oracle 10g了。raw是用openfiler配置加Multipath多路径配置的。raw的配置参考我的Blog:这种情况下配置有些注意事项。否则会在执行root.sh命令的时候,报错:rootrac1 init.d#/u01/app/oracle/product/crs/root.shWARNING: direc

2、tory /u01/app/oracle/product is not owned by rootWARNING: directory /u01/app/oracle is not owned by rootWARNING: directory /u01/app is not owned by rootWARNING: directory /u01 is not owned by rootChecking to see if Oracle CRS stack is already configuredSetting the permissions on OCR backup directory

3、Setting up NS directoriesPROT-1: Failed to initialize ocrconfigFailed to upgrade Oracle Cluster Registry configuration一般出现这个问题的原因有几种:(1)Bug这种情况参考:Executing root.sh errors with Failed To Upgrade Oracle Cluster Registry Configuration ID 466673.1http:/ rootrac1 raw# pwd /dev/raw rootrac1 raw# lltotal 0

4、crw-r- 1 rootoinstall 162, 1 Nov 25 15:34 raw1crw-r- 1 rootoinstall 162, 2 Nov 25 15:34 raw2crw-r-r- 1 oracle oinstall 162, 3 Nov 25 13:48 raw3crw-r-r- 1 oracle oinstall 162, 4 Nov 25 13:48 raw4crw-r-r- 1 oracle oinstall 162, 5 Nov 25 13:48 raw5权限要设置成如下:chown root.oinstall /dev/raw/raw1-2chown oracl

5、e.oinstall /dev/raw/raw3-5chmod 775 /dev/raw/raw1-2chmod 775 /dev/raw/raw3-5可以在udev的规则里设置,也可以把权限添加到/etc/rc.d/rc.local中。(3)raw设备读写问题这种情况参考:Placement of Voting disk and OCR Files in Oracle RAC 10g and 11gR1 ID 293819.1http:/ raw#dd if=/dev/zero of=/dev/mapper/crsp6 bs=1M count=200dd: writing /dev/mapp

6、er/crsp6:No space left on device197+0 records in196+0 records out205599744 bytes (206 MB) copied, 21.1817 seconds, 9.7 MB/s说明:这里有个提示信息,磁盘空间不足: No space left on device。这里的情况是,我的每个raw是200M。但是实际容量并没有这么多。所以我清空写200M的时候,会报空间不足。这种情况会按照实际大小进行清空。从下面我们可以该raw设备实际大小是197M。rootrac1 raw#dd if=/dev/zero of=/dev/map

7、per/crsp6 bs=1M count=190190+0 records in190+0 records out199229440 bytes (199 MB) copied, 21.9521 seconds, 9.1 MB/srootrac1 raw#dd if=/dev/zero of=/dev/mapper/crsp5 bs=1M count=195195+0 records in195+0 records out204472320 bytes (204 MB) copied, 22.0362 seconds, 9.3 MB/srootrac1 raw#dd if=/dev/zero

8、 of=/dev/mapper/crsp7 bs=1M count=195195+0 records in195+0 records out204472320 bytes (204 MB) copied, 19.9692 seconds, 10.2 MB/srootrac1 raw#dd if=/dev/zero of=/dev/mapper/crsp8 bs=1M count=195195+0 records in195+0 records out204472320 bytes (204 MB) copied, 18.5526 seconds, 11.0 MB/srootrac1 raw#d

9、d if=/dev/zero of=/dev/mapper/crsp9 bs=1M count=195195+0 records in195+0 records out204472320 bytes (204 MB) copied, 21.9439 seconds, 9.3 MB/s我这次遇到问题的Log如下:rootrac1 client# pwd/u01/app/oracle/product/crs/log/rac1/clientrootrac1 client# lsocrconfig_7527.logrootrac1 client# cat ocrconfig_7527.logOracl

10、e Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.All rights reserved.2010-11-25 19:54:14.694: OCRCONF1189568ocrconfig starts.2010-11-25 19:54:14.696: OCRCONF1189568Upgrading OCR data2010-11-25 19:54:15.434: OCRRAW1189568propriogid:1: INVALID FORMAT2010-11-25 19:54:15.464:

11、 OCRRAW1189568propriogid:1: INVALID FORMAT2010-11-25 19:54:15.464: OCRRAW1189568proprioini: both disks are not OCR formatted2010-11-25 19:54:15.464: OCRRAW1189568proprinit: Could not open raw device2010-11-25 19:54:15.465: default1189568a_init:7!: Backend init unsuccessful : 262010-11-25 19:54:15.46

12、5: OCRCONF1189568Exporting OCR data to OCRUPGRADEFILE2010-11-25 19:54:15.465: OCRAPI1189568a_init:7!: Backend init unsuccessful : 332010-11-25 19:54:15.465: OCRCONF1189568There was no previous version of OCR. error:PROC-33: Oracle Cluster Registry is not configured2010-11-25 19:54:16.072: OCRRAW1189

13、568propriogid:1: INVALID FORMAT2010-11-25 19:54:16.075: OCRRAW1189568propriogid:1: INVALID FORMAT2010-11-25 19:54:16.075: OCRRAW1189568proprioini: both disks are not OCR formatted2010-11-25 19:54:16.075: OCRRAW1189568proprinit: Could not open raw device2010-11-25 19:54:16.076: default1189568a_init:7

14、!: Backend init unsuccessful : 262010-11-25 19:54:16.231: OCRRAW1189568propriogid:1: INVALID FORMAT2010-11-25 19:54:16.232: OCRRAW1189568propriogid:1: INVALID FORMAT2010-11-25 19:54:16.265: OCRRAW1189568ibctx:1:ERROR: INVALID FORMAT2010-11-25 19:54:16.265: OCRRAW1189568proprinit:problem reading the

15、bootblock or superbloc 222010-11-25 19:54:16.646: OCRRAW1189568propriogid:1: INVALID FORMAT2010-11-25 19:54:16.647: OCRRAW1189568propriogid:1: INVALID FORMAT2010-11-25 19:54:16.757: OCRRAW1189568propriowv: Vote information on disk 0 /dev/raw/raw1 is adjusted from 0/0 to 1/22010-11-25 19:54:16.762: O

16、CRRAW1189568propriowv: Vote information on disk 1 /dev/raw/raw2 is adjusted from 0/0 to 1/22010-11-25 19:54:17.193: OCRRAW1189568propriniconfig:No 92 configuration2010-11-25 19:54:17.193: OCRAPI1189568a_init:6a: Backend init successful2010-11-25 19:54:18.263: OCRCONF1189568Initialized DATABASE keys

17、in OCR2010-11-25 19:54:18.478: OCRCONF1189568csetskgfrblock0: clsfmt returned with error 4.2010-11-25 19:54:18.478: OCRCONF1189568Failure in setting block0 -12010-11-25 19:54:18.478: OCRCONF1189568OCR block 0 is not set !2010-11-25 19:54:18.479: OCRCONF1189568Exiting status=failed.这个是Multipath的bug问题

18、,就是我们遇到的第一种情况:(1)用clsfmt检查raw设备rootrac1 bin# ./clsfmt.bin ocr /dev/raw/raw1clsfmt: Failure trying to resize OCR file from 205567488 bytes to 205570048 bytesclsfmt: Received unexpected error 4 from skgfifiskgfifi: Additional information: -2Additional information: 205567488这里没有成功,就是bug。(2)用Pathch中的新文件

19、替换clsfmt.bin文件。Patch是:p4679769。这个需要Oracle帐号才能下载。所以我将Linux平台下32位和64位的path都上传到csdn的下载里了。有遇到相同问题的朋友自己去下载。下载地址:http:/ bin# ./clsfmt ocr /dev/raw/raw1clsfmt: Failure trying to resize OCR file from 205567488 bytes to 205570048 bytesclsfmt: successfully initialized file /dev/raw/raw1rootrac1 bin# ./clsfmt

20、ocr /dev/raw/raw2clsfmt: Failure trying to resize OCR file from 205599744 bytes to 205602816 bytesclsfmt: successfully initialized file /dev/raw/raw2rootrac1 bin# ./clsfmt ocr /dev/raw/raw3clsfmt: Failure trying to resize OCR file from 205599744 bytes to 205602816 bytesclsfmt: successfully initializ

21、ed file /dev/raw/raw3rootrac1 bin# ./clsfmt ocr /dev/raw/raw4clsfmt: Failure trying to resize OCR file from 205599744 bytes to 205602816 bytesclsfmt: successfully initialized file /dev/raw/raw4rootrac1 bin# ./clsfmt ocr /dev/raw/raw5clsfmt: Failure trying to resize OCR file from 205599744 bytes to 2

22、05602816 bytesclsfmt: successfully initialized file /dev/raw/raw5bug修复成功了。(4)清空raw设备因为我们已经执行过root.sh命令,会有相关信息写到raw设备里。用dd命令清空这些信息。最好留一点空间。因为在Solaris平台上有预留1M空间的做法,不然会出现问题。rootrac1 rac1# dd if=/dev/zero of=/dev/raw/raw1 bs=10M count=1010+0 records in10+0 records out104857600 bytes (105 MB) copied, 17.

23、4534 seconds, 6.0 MB/srootrac1 rac1# dd if=/dev/zero of=/dev/raw/raw2 bs=10M count=1010+0 records in10+0 records out104857600 bytes (105 MB) copied, 11.4307 seconds, 9.2 MB/srootrac1 rac1# dd if=/dev/zero of=/dev/raw/raw3 bs=10M count=1010+0 records in10+0 records out104857600 bytes (105 MB) copied,

24、 18.4136 seconds, 5.7 MB/srootrac1 rac1# dd if=/dev/zero of=/dev/raw/raw4 bs=10M count=1010+0 records in10+0 records out104857600 bytes (105 MB) copied, 17.821 seconds, 5.9 MB/srootrac1 rac1# dd if=/dev/zero of=/dev/raw/raw5 bs=10M count=1010+0 records in10+0 records out104857600 bytes (105 MB) copi

25、ed, 17.3289 seconds, 6.1 MB/s如果不清空raw设备,直接执行root.sh命令,还是会报错误:rootrac1 bin# /u01/app/oracle/product/crs/root.shWARNING: directory /u01/app/oracle/product is not owned by rootWARNING: directory /u01/app/oracle is not owned by rootWARNING: directory /u01/app is not owned by rootWARNING: directory /u01

26、is not owned by rootChecking to see if Oracle CRS stack is already configuredSetting the permissions on OCR backup directorySetting up NS directoriesPROT-1: Failed to initialize ocrconfigFailed to upgrade Oracle Cluster Registry configuration错误的log日志如下:#cat /u01/app/oracle/product/crs/log/rac1/clien

27、t/ocrconfig_16159.logOracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.All rights reserved.2010-11-25 23:27:25.468: OCRCONF2118112ocrconfig starts.2010-11-25 23:27:25.469: OCRCONF2118112Upgrading OCR data2010-11-25 23:27:25.558: OCRRAW2118112propriogid:1: INVALID FORM

28、AT2010-11-25 23:27:25.559: OCRRAW2118112proprioini: disk 0 (/dev/raw/raw1) doesnt have enough votes (1,2)2010-11-25 23:27:25.559: OCRRAW2118112proprinit: Could not open raw device2010-11-25 23:27:25.560: default2118112a_init:7!: Backend init unsuccessful : 262010-11-25 23:27:25.560: OCRCONF2118112Ex

29、porting OCR data to OCRUPGRADEFILE2010-11-25 23:27:25.560: OCRAPI2118112a_init:7!: Backend init unsuccessful : 332010-11-25 23:27:25.560: OCRCONF2118112There was no previous version of OCR. error:PROC-33: Oracle Cluster Registry is not configured2010-11-25 23:27:25.746: OCRRAW2118112propriogid:1: IN

30、VALID FORMAT2010-11-25 23:27:25.746: OCRRAW2118112proprioini: disk 0 (/dev/raw/raw1) doesnt have enough votes (1,2)2010-11-25 23:27:25.746: OCRRAW2118112proprinit: Could not open raw device2010-11-25 23:27:25.747: default2118112a_init:7!: Backend init unsuccessful : 262010-11-25 23:27:26.112: OCRRAW

31、2118112propriogid:1: INVALID FORMAT2010-11-25 23:27:26.112: OCRRAW2118112proprioini: disk 0 (/dev/raw/raw1) doesnt have enough votes (1,2)2010-11-25 23:27:26.112: OCRRAW2118112proprinit: Could not open raw device2010-11-25 23:27:26.120: OCRAPI2118112a_init:6b!: Backend init unsuccessful : 262010-11-25 23:27:26.120: OCRCONF2118112Failed to initialized OCR context. error:PROC-26: Error while accessing the physical storage2010-11-25 23:27:26.120: OCRCONF2118112Exiting status=failed.(5)清空raw设备后,在执行/u01/app/oracle/product/crs/root.sh命令这次成功执行。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 科普知识


经营许可证编号:宁ICP备18001539号-1