Oracle RAC 安装 运行 root.sh时报Failed to upgrade Oracle Cluster Registry configuration问题的解决
Oracle RAC 安装 运行 root.sh时报Failed to upgrade Oracle Cluster Registry configuration问题的解决
CentOS 5.4 x86 Linux安装oracle rac 10.2.0.1的过程中,运行root.sh的时候报如下错误:
rac1@root[/oracle/crs/10.1/bin]> cd .. rac1@root[/oracle/crs/10.1]> ./root.sh WARNING: directory '/oracle/crs' 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 Failed to upgrade Oracle Cluster Registry configuration |
metalink上查询到doc id为 466673.1,按如下方法解决
检查clsfmt命令运行状况
rac1@root[/oracle/crs/10.1/bin]> ./clsfmt ocr /dev/raw/raw1 clsfmt: Received unexpected error 4 from skgfifi skgfifi: Additional information: -2 Additional information: 104857600 |
下载补丁284719,并用补丁中的clsfmt.bin替换$CRS_HOME/bin/clsfmt.bin文件
rac1@oracle[/tmp]> unzip *zip Archive: p4679769_10201_LINUX.zip creating: 4679769/ inflating: 4679769/clsfmt.bin inflating: 4679769/README.txt rac1@oracle[/tmp]> cd 4679769/ rac1@oracle[/tmp/4679769]> cp clsfmt.bin /oracle/crs/10.1/bin/ |
再次运行root.sh脚本
rac1@root[/oracle/crs/10.1]> ./root.sh WARNING: directory '/oracle/crs' 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 Failed to upgrade Oracle Cluster Registry configuration |
发现还是出错。
检查$CRS_HOME/log/rac1/client/下的日子文件,发现如下信息,显示ocr格式错误:
rac1@root[/oracle/crs/10.1/log/rac1/client]> vi *6140.log Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved. 2010-04-24 21:32:12.928: [ OCRCONF][1668768]ocrconfig starts... 2010-04-24 21:32:12.930: [ OCRCONF][1668768]Upgrading OCR data 2010-04-24 21:32:13.142: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT 2010-04-24 21:32:13.160: [ OCRRAW][1668768]ibctx:1:ERROR: INVALID FORMAT 2010-04-24 21:32:13.161: [ OCRRAW][1668768]proprinit:problem reading the bootblock or superbloc 22 2010-04-24 21:32:13.161: [ default][1668768]a_init:7!: Backend init unsuccessful : [22] 2010-04-24 21:32:13.161: [ OCRCONF][1668768]Exporting OCR data to [OCRUPGRADEFILE] 2010-04-24 21:32:13.162: [ OCRAPI][1668768]a_init:7!: Backend init unsuccessful : [33] 2010-04-24 21:32:13.162: [ OCRCONF][1668768]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured] 2010-04-24 21:32:13.329: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT 2010-04-24 21:32:13.330: [ OCRRAW][1668768]ibctx:1:ERROR: INVALID FORMAT 2010-04-24 21:32:13.330: [ OCRRAW][1668768]proprinit:problem reading the bootblock or superbloc 22 2010-04-24 21:32:13.331: [ default][1668768]a_init:7!: Backend init unsuccessful : [22] 2010-04-24 21:32:13.495: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT 2010-04-24 21:32:13.496: [ OCRRAW][1668768]ibctx:1:ERROR: INVALID FORMAT 2010-04-24 21:32:13.496: [ OCRRAW][1668768]proprinit:problem reading the bootblock or superbloc 22 2010-04-24 21:32:13.729: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT 2010-04-24 21:32:13.788: [ OCRRAW][1668768]propriowv: Vote information on disk 0 [/dev/raw/raw1] is adjusted from [0/0] to [2/2] 2010-04-24 21:32:13.822: [ OCRRAW][1668768]propriniconfig:No 92 configuration 2010-04-24 21:32:13.822: [ OCRAPI][1668768]a_init:6a: Backend init successful 2010-04-24 21:32:13.992: [ OCRCONF][1668768]Initialized DATABASE keys in OCR 2010-04-24 21:32:14.104: [ OCRCONF][1668768]csetskgfrblock0: clsfmt returned with error [4]. 2010-04-24 21:32:14.105: [ OCRCONF][1668768]Failure in setting block0 [-1] 2010-04-24 21:32:14.105: [ OCRCONF][1668768]OCR block 0 is not set ! 2010-04-24 21:32:14.133: [ OCRCONF][1668768]Exiting [status=failed]... |
使用dd命令将ocr信息删除
rac1@root[/oracle/crs/10.1/log/rac1/client]> dd if=/dev/zero of=/dev/raw/raw1 bs=1M count=256 dd: writing `/dev/raw/raw1': No space left on device 101+0 records in 100+0 records out 104857600 bytes (105 MB) copied, 1.98218 seconds, 52.9 MB/s |
再次运行root.sh脚本
rac1@root[/oracle/crs/10.1/log/rac1/client]> /oracle/crs/10.1/root.sh WARNING: directory '/oracle/crs' 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/crs' is not owned by root WARNING: directory '/oracle' is not owned by root assigning default hostname rac1 for node 1. assigning default hostname rac2 for node 2. 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: rac1 rac1-priv rac1 node 2: rac2 rac2-priv rac2 Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. Now formatting voting device: /dev/raw/raw2 format of 1 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. |
至此,问题解决
目录 返回
首页