在10201版本上測試ocr mirror時常會遇到PROT-22: Storage too small

warehouse發表於2012-03-22

oracle說這是一個bug,在10.2.0.2 patchset.修正了。其實完全可以

在關閉crs之後手動對crs做mirror。

這是由於一個bug造成的:
Oracle Cluster Registry (OCR)2009-05-23 13:11$ ocrconfig -replace ocrmirror /ora10g/app/oracle/oradata/V10/OracleClusterRegistry2
PROT-22: Storage too small
The problem is due to an Oracle bug where this operation requires the OCR mirror partition/file to be larger than the original by up to 128MB. The bug has been fixed in the 10.2.0.2 patchset.

[@more@]

下面是手動mirror crs的過程。

1、首先編輯2個節點的ocr.loc檔案,新增ocrmirrorconfig_loc=/dev/raw/raw24,前提肯定是raw24是事先存在的

[root@node1 ocrbak]# more /etc/oracle/ocr.loc
#Device/file /dev/raw/raw27 being deleted
ocrconfig_loc=/dev/raw/raw23
ocrmirrorconfig_loc=/dev/raw/raw24
local_only=false
[root@node1 ocrbak]#

2、把ocrconfig_loc和ocrmirrorconfig_loc對應的裝置清空一下

[root@node1 ocrbak]# dd if=/dev/zero of=/dev/raw/raw23 bs=1024k count=100
100+0 records in
100+0 records out
[root@node1 ocrbak]# dd if=/dev/zero of=/dev/raw/raw24 bs=1024k count=100
100+0 records in
100+0 records out
3、匯入ocr的備份,(事先做過備份)

[root@node1 ocrbak]# ls
ocr20120322.bak.dd votedisk20120322.bak.dd votedisk20120322.bak.dd_30m
ocr20120322.bak.dmp votedisk20120322.bak.dd_20m votedisk20120322.bak.dd_raw25
[root@node1 ocrbak]# ocrconfig -import ocr20120322.bak.dmp
4、檢查已經成功

[root@node1 ocrbak]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 104272
Used space (kbytes) : 4592
Available space (kbytes) : 99680
ID : 1565793265
Device/File Name : /dev/raw/raw23
Device/File integrity check succeeded
Device/File Name : /dev/raw/raw24
Device/File integrity check succeeded

Cluster registry integrity check succeeded

4、很顯然是crs停止以後做的(資訊如下)

[root@node1 ocrbak]# crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.

5、啟動crs

[root@node1 cssd]# crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly

6、驗證crs已經resoruces的狀態

[oracle@node2 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....b1.inst application ONLINE ONLINE node1
ora....b2.inst application ONLINE ONLINE node2
ora.asmdb.db application ONLINE ONLINE node2
ora....db1.srv application ONLINE ONLINE node1
ora....db2.srv application ONLINE ONLINE node2
ora.....taf.cs application ONLINE ONLINE node2
ora....SM1.asm application ONLINE ONLINE node1
ora....E1.lsnr application ONLINE ONLINE node1
ora.node1.gsd application ONLINE ONLINE node1
ora.node1.ons application ONLINE ONLINE node1
ora.node1.vip application ONLINE ONLINE node1
ora....SM2.asm application ONLINE ONLINE node2
ora....E2.lsnr application ONLINE ONLINE node2
ora.node2.gsd application ONLINE ONLINE node2
ora.node2.ons application ONLINE ONLINE node2
ora.node2.vip application ONLINE ONLINE node2
[oracle@node2 ~]$

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

相關文章