sky 的个人资料DBA日记照片日志列表更多 工具 帮助
2008/11/14

rhel5+ocfs2安装rac时,报PROT-1错误

运行root.sh时,报如下错误:
 PROT-1: Failed to initialize ocrconfig
Failed to upgrade Oracle Cluster Registry configuration

查看$CRS_HOME/logs/hostname/client/*.log,可以看到:
 Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 
  2005 Oracle.  All rights reserved.
 2005-07-11 12:30:29.809: [ OCRCONF][3086915264]ocrconfig starts...
 2005-07-11 12:30:29.810: [ OCRCONF][3086915264]Upgrading OCR data
 2005-07-11 12:30:29.811: [  OCROSD][3086915264]utstoragetype: 
  /ocfs/ocr_disk1 is on FS type 1952539503. Not supported.

提示不支持ocfs2做ocr和votingdisk。
ocfs2就是为rac开发的,不可能不支持,所以一定是遗漏了什么。

查看手册,原来ocfs2给redolog、dafafile、controlfile、ocr、votingdisk等使用时,需要在mount时加上datavolume选项:

mount -t ocfs2 -o datavolume /dev/emcpowera /oracluster

 

运行vipca也报错了,网上找到了解决办法:

在oracle2上执行root.sh时,会提示一个错误,关于vipca无法执行的。于是乎,我手动运行/oracle/product/10.2.0/crs/bin/vipca,结果又告诉我找不到libpthread.so.0。晕~~

你也应该遇到吧!! 别急这是个bug,我们这样来解决:

[root@oracle2 ~]vi /oracle/product/10.2.0/crs/bin/vipca
JREDIR=/oracle/product/10.2.0/crs/jdk/jre/    #把最后/的去掉,改为:

JREDIR=/oracle/product/10.2.0/crs/jdk/jre


LD_ASSUME_KERNEL=2.4.19                      

export LD_ASSUME_KERNEL                       fi                           #找到这部分,改为:

LD_ASSUME_KERNEL=2.4.19                      

export LD_ASSUME_KERNEL                       fi                      
unset LD_ASSUME_KERNEL

现在再运行vipca试试,什么?又出现个错误?

是不是类似下面的错误:

Error 0(Native: listNetInterfaces:[3])
   [Error 0(Native: listNetInterfaces:[3])]

阿弥佗佛,压住火气,这样来解决:

[root@oracle2 bin]# ./oifcfg iflist
eth1 10.0.0.0
eth0 192.168.162.0
[root@oracle2 bin]# ./oifcfg setif -global eth0/192.168.162.0:public
[root@oracle2 bin]# ./oifcfg setif -global eth1/10.0.0.0:cluster_interconnect
[root@oracle2 bin]# ./oifcfg getif
eth0 192.168.162.0 global public
eth1 10.0.0.0 global cluster_interconnect


评论

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

引用通告

此日志的引用通告 URL 是:
http://dbadiary.spaces.live.com/blog/cns!A3ECB1FE1E761C58!1308.trak
引用此项的网络日志