暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

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

黄廷忠 2019-06-18
1878

问题描述

环境: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

创建成功

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论