powerlinux下安裝10grac(三)

tonglei2000發表於2014-11-09
安裝好ibm的包,就往下走了,到第二個節點複製完成的時候,還是報了個錯,就是因為作業系統不支援的錯,手工執行下腳步,繼續往下走。
開始執行root.sh.
報錯,說是selinux沒有改。修改/etc/下面一個檔案,然後重新啟動。
重新安裝,到執行root.sh的時候還是報錯,參考網上這個資訊,下載了補丁

在Linux AS 5.4上安裝 RAC 10.2.0.1,使用多路徑軟體對映出來的虛擬磁碟分割槽儲存OCR和VOTE DISK資訊。執行root.sh時報錯"Failed to upgrade Oracle Cluster Registry configuration"。

報錯具體資訊如下:

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

在 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 Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.  All rights reserved.
2014-11-07 19:27:54.810: [ OCRCONF][1951239456]ocrconfig starts...
2014-11-07 19:27:54.810: [ OCRCONF][1951239456]Upgrading OCR data
2014-11-07 19:27:54.970: [  OCRRAW][1951239456]propriogid:1: INVALID FORMAT
2014-11-07 19:27:54.971: [  OCRRAW][1951239456]ibctx:1:ERROR: INVALID FORMAT
2014-11-07 19:27:54.971: [  OCRRAW][1951239456]proprinit:problem reading the bootblock or superbloc 22


2014-11-07 19:27:54.971: [ default][1951239456]a_init:7!: Backend init unsuccessful : [22]
2014-11-07 19:27:54.971: [ OCRCONF][1951239456]Exporting OCR data to [OCRUPGRADEFILE]
2014-11-07 19:27:54.971: [  OCRAPI][1951239456]a_init:7!: Backend init unsuccessful : [33]
2014-11-07 19:27:54.971: [ OCRCONF][1951239456]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
2014-11-07 19:27:54.976: [  OCRRAW][1951239456]propriogid:1: INVALID FORMAT
2014-11-07 19:27:54.976: [  OCRRAW][1951239456]ibctx:1:ERROR: INVALID FORMAT
2014-11-07 19:27:54.976: [  OCRRAW][1951239456]proprinit:problem reading the bootblock or superbloc 22


2014-11-07 19:27:54.977: [ default][1951239456]a_init:7!: Backend init unsuccessful : [22]
2014-11-07 19:27:54.981: [  OCRRAW][1951239456]propriogid:1: INVALID FORMAT
2014-11-07 19:27:54.982: [  OCRRAW][1951239456]ibctx:1:ERROR: INVALID FORMAT
2014-11-07 19:27:54.982: [  OCRRAW][1951239456]proprinit:problem reading the bootblock or superbloc 22


2014-11-07 19:27:54.987: [  OCRRAW][1951239456]propriogid:1: INVALID FORMAT
2014-11-07 19:27:54.997: [  OCRRAW][1951239456]propriowv: Vote information on disk 0 [/dev/raw/raw1] is adjusted from [0/0] to [2/2]
2014-11-07 19:27:55.005: [  OCRRAW][1951239456]propriniconfig:No 92 configuration
2014-11-07 19:27:55.005: [  OCRAPI][1951239456]a_init:6a: Backend init successful
2014-11-07 19:27:55.031: [ OCRCONF][1951239456]Initialized DATABASE keys in OCR
2014-11-07 19:27:55.148: [ OCRCONF][1951239456]csetskgfrblock0: clsfmt returned with error [1].
2014-11-07 19:27:55.148: [ OCRCONF][1951239456]Failure in setting block0 [-1]
2014-11-07 19:27:55.148: [ OCRCONF][1951239456]OCR block 0 is not set !
2014-11-07 19:27:55.148: [ OCRCONF][1951239456]Exiting [status=failed]...
[root@db2 client]# 

一時無法解決,來日再說

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

相關文章