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