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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章