vmware workstation ACE + RH LINUX 5 + clusterware10 RAC安装相关问题

如果使用ssh而不是rsh
Failed to upgrade Oracle Cluster Registry configuration
防火墙最好关闭
VIPCA报错
SWAP不足
VIP添加过程中不断offline
DBCA无法在节点2创建数据库

[@more@]

如果使用ssh而不是rsh:
需要确保/usr/local/bin/ssh存在,可以使用softlink。否则runcluvfy.sh会识别不出ssh连通性,不能通过。

mkdir -p /usr/local/bin
ln -s -f /usr/bin/ssh /usr/local/bin/ssh
ln -s -f /usr/bin/scp /usr/local/bin/scp
exec /usr/bin/ssh-agent $SHELL

Failed to upgrade Oracle Cluster Registry configuration
具体原因参照metalink note: ID 293819.1
Log:[root@rac1 ~]# /u01/crs/oracle/product/10.2.0/crs/root.sh
WARNING: directory '/u01/crs/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/crs/oracle/product' is not owned by root
WARNING: directory '/u01/crs/oracle' is not owned by root
WARNING: directory '/u01/crs' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory
Setting up NS directoriesFailed to upgrade Oracle Cluster Registry configuration

[root@rac1 client]# tail ocrconfig_16589.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
2010-06-11 23:18:59.313: [ OCRCONF][4004640]ocrconfig starts...
2010-06-11 23:18:59.315: [ OCRCONF][4004640]Upgrading OCR data
2010-06-11 23:18:59.353: [ OCRCONF][4004640]OCR already in current version.2010-06-11 23:18:59.393: [ OCRCONF][4004640]Failed to call clsssinit (21)
2010-06-11 23:18:59.393: [ OCRCONF][4004640]Failed to make a backup copy of OCR
2010-06-11 23:18:59.393: [ OCRCONF][4004640]Exiting [status=failed]...

[root@rac1 client]# more ocrconfig_16218.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
2010-06-11 23:15:17.493: [ OCRCONF][11303712]ocrconfig starts...
2010-06-11 23:15:17.495: [ OCRCONF][11303712]Upgrading OCR data
2010-06-11 23:15:17.622: [ OCRRAW][11303712]propriogid:1: INVALID FORMAT
2010-06-11 23:15:17.625: [ OCRRAW][11303712]ibctx:1:ERROR: INVALID FORMAT
2010-06-11 23:15:17.625: [ OCRRAW][11303712]proprinitroblem reading the bootblock or superbloc 22

2010-06-11 23:15:17.626: [ default][11303712]a_init:7!: Backend init unsuccessful : [22]
2010-06-11 23:15:17.626: [ OCRCONF][11303712]Exporting OCR data to [OCRUPGRADEFILE]
2010-06-11 23:15:17.627: [ OCRAPI][11303712]a_init:7!: Backend init unsuccessful : [33]
2010-06-11 23:15:17.627: [ OCRCONF][11303712]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not co
nfigured]
2010-06-11 23:15:17.684: [ OCRRAW][11303712]propriogid:1: INVALID FORMAT
2010-06-11 23:15:17.685: [ OCRRAW][11303712]ibctx:1:ERROR: INVALID FORMAT
2010-06-11 23:15:17.685: [ OCRRAW][11303712]proprinitroblem reading the bootblock or superbloc 22

2010-06-11 23:15:17.685: [ default][11303712]a_init:7!: Backend init unsuccessful : [22]
2010-06-11 23:15:17.718: [ OCRRAW][11303712]propriogid:1: INVALID FORMAT
2010-06-11 23:15:17.719: [ OCRRAW][11303712]ibctx:1:ERROR: INVALID FORMAT
2010-06-11 23:15:17.719: [ OCRRAW][11303712]proprinitroblem reading the bootblock or superbloc 22

2010-06-11 23:15:17.747: [ OCRRAW][11303712]propriogid:1: INVALID FORMAT
2010-06-11 23:15:17.769: [ OCRRAW][11303712]propriowv: Vote information on disk 0 [/dev/raw/raw1] is adjusted from [0/0] to [2/2]
2010-06-11 23:15:17.792: [ OCRRAW][11303712]propriniconfig:No 92 configuration
2010-06-11 23:15:17.792: [ OCRAPI][11303712]a_init:6a: Backend init successful
2010-06-11 23:15:17.911: [ OCRCONF][11303712]Initialized DATABASE keys in OCR
2010-06-11 23:15:17.978: [ OCRCONF][11303712]csetskgfrblock0: clsfmt returned with error [4].
2010-06-11 23:15:17.978: [ OCRCONF][11303712]Failure in setting block0 [-1]
2010-06-11 23:15:17.978: [ OCRCONF][11303712]OCR block 0 is not set !
2010-06-11 23:15:17.979: [ OCRCONF][11303712]Exiting [status=failed]...

解决方法:

dd if=/dev/zero of=/dev/sdb1 bs=213893120 count=1
dd if=/dev/zero of=/dev/sdc1 bs=213893120 count=1
dd if=/dev/zero of=/dev/sdd1 bs=213893120 count=1

切忌权限需要正确设置:

chown oracle:oinstall /dev/raw/raw1

chown oracle:oinstall /dev/raw/raw2

chown oracle:oinstall /dev/raw/raw3

chmod 640 /dev/raw/raw1

chmod 644 /dev/raw/raw2

chmod 660 /dev/raw/raw3


chown oracle:oinstall /dev/sdb1

chown oracle:oinstall /dev/sdc1

chown oracle:oinstall /dev/sdd1


dd if=/dev/zero of=/dev/raw/raw1 bs=125829120 count=1

dd if=/dev/zero of=/dev/raw/raw2 bs=20971520 count=1

dd if=/dev/zero of=/dev/raw/raw3 bs=125829120 count=1

防火墙最好关闭。
否则会出现节点一root.sh通过, 节点二始终无法连接到css的情况。


[root@rac1 oracle]# /sbin/chkconfig iptables off

[root@rac1 oracle]# /sbin/service iptables stop

Flushing firewall rules: [ OK ]

Setting chains to policy ACCEPT: filter [ OK ]

Unloading iptables modules: [ OK ]

[root@rac1 oracle]# /sbin/service iptables status

Firewall is stopped.


LOG:

clsssInitNative: connect failed, rc 9


VIPCA报错:
LOG:

/u01/crs/oracle/product/10.2.0/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

将vipca中有关LD_ASSUME_KERNEL的段落注释掉。之后的srvctl也遇到相同的问题,同样解决。


SWAP不足。

dd if=/dev/zero of=/swapfile bs=1024 count=524288

/sbin/mkswap /swapfile

激活swap空间:

/sbin/swapon /swapfile

在fstab中添加:

/swapfile swap swap defaults 0 0

/sbin/swapon -s


VIP添加过程中不断offline.
http://www.kods.net/vip-gateway-solution-that-caused-the-error/

通过开启vip的debug模式,可以发现是DEFAULTGW有问题。


DBCA无法在节点2创建数据库。
发现v$asm_disk中已经认出了DATA磁盘,但是无法确认其size和format. 重启二节点的ASM解决。

感谢oracle-base,主要过程依据:
http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21084389/viewspace-1034446/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/21084389/viewspace-1034446/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值