RedHat 4 RAC 安装crs的一个小问题

RedHat 4 RAC 安装crs的一个小问题(裸设备-ocfs 同)

6month | 06 十二月, 2008 09:15

故障描述如下,出现在第一次安装crs失败,再次安装时,失败后做了如下处理:

rm -f /etc/init.d/init.cssd
rm -f /etc/init.d/init.crs
rm -f /etc/init.d/init.crsd
rm -f /etc/init.d/init.evmd

find /etc -name '*init.crs*' -exec rm {} ;

rm -f /etc/inittab.crs
/etc/inittab 去除文件末尾crs部分

重启
rm -rf /u01/app/oracle/oraInventory -

rm -rf oracle 目录 或者./runInstaller 删除安装组件



rm -rf /etc/oracle/
rm -rf /etc/ora*
rm -rf <CRS安装目录>
rm -rf /tmp/*
rm -rf /var/tmp/*

还有/etc/inittab中对应的条目去处,在最后边,

rm -rf /etc/oracle

再次安装时执行到root.sh
后报错,

[root@Red2 ~]# /opt/ora10g/oraInventory/orainstRoot.sh
Changing permissions of /opt/ora10g/oraInventory to 770.
Changing groupname of /opt/ora10g/oraInventory to oinstall.
The execution of the script is complete
[root@Red2 ~]# /opt/ora10g/product/10.2.0/crs_1/root.sh
WARNING: directory '/opt/ora10g/product/10.2.0' is not owned by root
WARNING: directory '/opt/ora10g/product' is not owned by root
WARNING: directory '/opt/ora10g' 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 directories
Failed to upgrade Oracle Cluster Registry configuration

解决方法1:ocfs

dd if=/dev/zero of=/dev/voting(设备名称) bs=8192 count=2560
dd if=/dev/zero of=/dev/ocr(设备名称)bs=8192 count=12800

解决方法2:裸设备

dd if=/dev/zero of=/dev/sdb1 bs=8192 count=2000

dd if=/dev/zero of=/dev/sdc1 bs=8192 count=2000

原理相同,注意在第一个节点上报错后,就不要在第二个节点上也执行root.sh 了,马上执行上述步骤修复,因为crs是很麻烦的,如果两个节点都执行晚了,再修复恐要重新安装crs了,那可是麻烦的很了,不果我没试过,有兴趣可以一试,呵呵。

-----另一个问题,比较小,细心点就不会犯了,呵!

Creating VIP application resource on (2) nodes...
Creating GSD application resource on (2) nodes...
Creating ONS application resource on (2) nodes...
Starting VIP application resource on (2) nodes...
Starting GSD application resource on (2) nodes...
Starting ONS application resource on (2) nodes.1:CRS-0215: Could not start resource 'ora.red2.ons'.
Check the log file "/opt/ora10g/product/10.2.0/crs_1/log/red2/racg/ora.red2.ons.log" for more details

查看detail:

cat ora.red2.ons.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
2008-12-06 05:15:47.281: [ RACG][3086908160] [10881][3086908160][ora.red2.ons]: Failed to get IP for localhost (2)
Failed to get IP for localhost (2)
Failed to get IP for localhost (2)
onsctl: ons failed to start

。。。。后边略,可见是ip问题

查host 结果red2的少了 127.0.0.1 倒!

 

引用地址:http://6month.itpub.net/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值