Oracle RAC 安裝 執行 root.sh時報Failed to upgrade Oracle Cluster Registry configuration問題的解決

cnhtm發表於2010-04-26

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
[@more@]

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 :
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.

至此,問題解決

--end--

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1033180/,如需轉載,請註明出處,否則將追究法律責任。

相關文章