ORACLE RAC VIP飄到priv IP上的問題解決

前幾天在安裝RAC的時候遇到的問題,完全相同的環境,裝了幾次了,都沒問題,最後一次的時候網卡選的不是ent0,在運行VIPCA的時候,把public(ent9)和private(ent11)倆塊網卡都選了,然後有一臺機器的vip就老是飄到priv-ip上,鬱悶了一晚上。

 

以後還是規規矩矩的使用ent0做public吧

 


Make sure there is a recent copy of the OCR file before making any changes:
ocrconfig –showbackup

To fix an incorrect USR_ORA_IF attribute of the VIP resource do as follows:
(1) Log in as root.
(2) set the ORA_CRS_HOME in your environment to the crs home
(2) Recreate a 'cap', file for the vips:
crs_stat -p ora.dbserver1.vip > $ORA_CRS_HOME/crs/profile/ora.dbserver1.vip.cap
crs_stat -p ora.dbserver2.vip > $ORA_CRS_HOME/crs/profile/ora.dbserver2.vip.cap

(3) Stop the vips, this will also require you to stop resources that depending on
them.(database,instance,asm ,service)
crs_stop -f ora.dbserver1.vip
crs_stop -f ora.dbserver2.vip

(4) Edit the profiles(.cap files) manually .. modify the
USR_ORA_IF=ipge0|ipge2
to
USR_ORA_IF=ipge0
(5)Update the OCR records by re-registering the resource with the update
option:
crs_register -u ora.dbserver1.vip
crs_register -u ora.dbserver2.vip

(6) Print the resources to make sure it took ok:
crs_stat -p ora.dbserver1.vip ora.dbserver2.vip

(7) Then start them:
crs_start ora.dbserver1.vip ora.dbserver2.vip

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