当前位置: 首页 > ORA > 正文

ocrconfig PROT-30: The Oracle Cluster Registry location to be added is not usable

环境:os:rhel 5,db 11.2.0.3.7(gi), sfrac:5.1

ocrconfig增加ocr时候报下面的错误

[root@rac31 ocrvote]# /u01/app/11.2.0/grid/bin/ocrconfig -add /ocrvote/ocr2
PROT-30: The Oracle Cluster Registry location to be added is not usable
PROC-8: Cannot perform cluster registry operation because one of the parameters is invalid. Operating System error [No such file or directory] [2]

1,查看ocrvote的大小

[root@rac31 ocrvote]# vxprint -u
Disk group: ocrvotedg

TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg ocrvotedg    ocrvotedg    -        -        -        -        -       -

dm disk_01      disk_01      -        1.96g    -        -        -       -
dm disk_11      disk_11      -        1.96g    -        -        -       -

v  ocrvotevol   fsgen        ENABLED  1.56g    -        ACTIVE   -       -
pl ocrvotevol-01 ocrvotevol  ENABLED  1.56g    -        ACTIVE   -       -
sd disk_01-01   ocrvotevol-01 ENABLED 1.56g    0        -        -       -
pl ocrvotevol-02 ocrvotevol  ENABLED  1.56g    -        ACTIVE   -       -
sd disk_11-01   ocrvotevol-02 ENABLED 1.56g    0        -        -       -

Disk group: oradatadg

TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg oradatadg    oradatadg    -        -        -        -        -       -

dm oradatadg01  disk_21      -        4.96g    -        -        -       -

v  oradatalv1   fsgen        ENABLED  4g       -        ACTIVE   -       -
pl oradatalv1-01 oradatalv1  ENABLED  4g       -        ACTIVE   -       -
sd oradatadg01-01 oradatalv1-01 ENABLED 4g     0        -        -       -

有1.6G,完全足够了。

2,查看ocrconfig日志

/u01/app/11.2.0/grid/log/rac31/client/ocrconfig_13020.log

Oracle Database 11g Clusterware Release 11.2.0.3.0 - Production Copyright 1996, 2011 Oracle. All rights reserved.
2013-09-14 04:37:33.089: [ OCRCONF][1326977840]ocrconfig starts...
[ default][1326977840]prgdevid: Failed to open the OCR location to be added [/ocrvote/ocr2]. Retval[2]
[ OCRCONF][1326977840]chkid: Failed to get the OCR id from the new device to be added/replaced[/ocrvote/ocr2]. Retval[26]
2013-09-14 04:37:33.349: [ OCRCONF][1326977840]Failed to compare the OCR id in the device to be added/replaced [/ocrvote/ocr2] and OCR id in repository the context is pointing to. Skiping the check.
2013-09-14 04:37:33.351: [  OCRCLI][1326977840]proac_replace_dev:[/ocrvote/ocr2]: Failed. Retval [8]
2013-09-14 04:37:33.351: [  OCRAPI][1326977840]procr_replace_dev: failed to replace device (8)
2013-09-14 04:37:33.351: [ OCRCONF][1326977840]Failed to replace the OCR device. OCR error:[PROC-8: Cannot perform cluster registry operation because one of the parameters is invalid. Operating System error [No such file or directory] [2]]
2013-09-14 04:37:33.351: [ OCRCONF][1326977840]The new OCR device [/ocrvote/ocr2] cannot be opened
2013-09-14 04:37:33.351: [ OCRCONF][1326977840]Exiting [status=failed]...

这里发现是不能路径不能访问,文件不能打开,查看权限完全正确,

3,touch一个ocr2

[root@rac31 ocrvote]# touch ocr2
[root@rac31 ocrvote]# /u01/app/11.2.0/grid/bin/ocrconfig -add /ocrvote/ocr2

创建成功

本文固定链接: http://www.htz.pw/2013/09/14/ocrconfig-prot-30-the-oracle-cluster-registry-location-to-be-added-is-not-usable.html | 认真就输

该日志由 huangtingzhong 于2013年09月14日发表在 ORA 分类下, 通告目前不可用,你可以至底部留下评论。
原创文章转载请注明: ocrconfig PROT-30: The Oracle Cluster Registry location to be added is not usable | 认真就输