rac02 : CRS-1019: Resource ora.rac01.ons(application) cannot run on rac02

yhj20041128001發表於2011-05-30

root@rac01 bin]# ./crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....01.lsnr application    ONLINE    ONLINE    rac01      
ora.rac01.gsd  application    ONLINE    ONLINE    rac01      
ora.rac01.ons  application    ONLINE    OFFLINE              
ora.rac01.vip  application    ONLINE    ONLINE    rac01      
ora....02.lsnr application    ONLINE    ONLINE    rac02      
ora.rac02.gsd  application    ONLINE    ONLINE    rac02      
ora.rac02.ons  application    ONLINE    OFFLINE              
ora.rac02.vip  application    ONLINE    ONLINE    rac02  

[root@rac01 bin]# ./crs_start ora.rac01.ons


Attempting to start `ora.rac01.ons` on member `rac01`
Start of `ora.rac01.ons` on member `rac01` failed.
rac02 : CRS-1019: Resource ora.rac01.ons(application) cannot run on rac02

CRS-0215: Could not start resource 'ora.rac01.ons'.
CRS-0210: Could not find resource 'resource'.


 

檢查ons配置資訊


 


 

 

配置檔案路徑:$CRS_HOME/opmn/conf/ons.config

資訊如下:

[root@rac01 conf]# more  ons.config

localport=6113
remoteport=6200
loglevel=3
useocr=on

檢視日誌檔案:

檔案路徑:$CRS_HOME/opmn/log/ons.log

[root@rac01 logs]# more ons.log
10/04/25 12:47:25 [2] BIND (Address already in use)
10/04/25 12:47:25 [2] 0.0.23.225:6113 - listener BIND failed
10/04/25 12:47:25 [1] Local listener terminated
10/04/25 12:54:28 [2] BIND (Address already in use)
10/04/25 12:54:28 [2] 0.0.23.225:6113 - listener BIND failed
10/04/25 12:54:28 [1] Local listener terminated
10/04/25 12:57:44 [2] BIND (Address already in use)
10/04/25 12:57:44 [2] 0.0.23.225:6113 - listener BIND failed
10/04/25 12:57:44 [1] Local listener terminated
10/04/25 13:22:24 [2] BIND (Address already in use)
10/04/25 13:22:24 [2] 0.0.23.225:6113 - listener BIND failed
10/04/25 13:22:24 [1] Local listener terminated
系統顯示好像無法繃定6113埠

檢查ons的6113埠情況:

 [root@rac01 bin]# netstat -ano|grep 6113
tcp        0      X.X.X.X:6113            X.X.X.X:*                   LISTEN      waited (0.00/0/0)

.

.

.

不斷的出現6113埠等待連線的資訊.

難道是6113的埠被其它佔用的原因嗎,或者系統沒有釋放ons所佔用的6113埠嗎

再次檢查:

[root@rac01 bin]#  netstat -lnp|grep 6113
tcp        0      0 127.0.0.1:6113              0.0.0.0:*                   LISTEN      22158/ons   

真的有一個nos佔用6113埠沒有釋放

嘗試殺死所有的ons程式資訊

[root@rac01 conf]# ps -ef|grep ons
root      2513     1  0 12:11 ?        00:00:00 sendmail: accepting connections
root      5170     1  0 12:46 ?        00:00:00 /opt/ora10g/product/10.2.0/crs_1/opmn/bin/ons -d
root     27208  5170 29 13:56 ?        00:00:12 /opt/ora10g/product/10.2.0/crs_1/opmn/bin/ons -d
root     30429  5545  0 13:56 pts/1    00:00:00 grep ons
[root@rac01 conf]# kill -9 5170
[root@rac01 conf]# kill -9 27208
[root@rac01 conf]# kill -9 2513
[root@rac01 conf]# ps -ef|grep ons
root     12239  5545  0 13:57 pts/1    00:00:00 grep ons

檢查6113埠占用情況

[root@rac01 conf]# netstat -lnp|grep 6113

嘗試再次啟動ora.rac01.ons服務

[root@rac01 bin]# ./crs_start ora.rac01.ons
Attempting to start `ora.rac01.ons` on member `rac01`
Start of `ora.rac01.ons` on member `rac01` succeeded.

[root@rac01 bin]# ./crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....01.lsnr application    ONLINE    ONLINE    rac01      
ora.rac01.gsd  application    ONLINE    ONLINE    rac01      
ora.rac01.ons  application    ONLINE    ONLINE    rac01      
ora.rac01.vip  application    ONLINE    ONLINE    rac01      
ora....02.lsnr application    ONLINE    ONLINE    rac02      
ora.rac02.gsd  application    ONLINE    ONLINE    rac02      
ora.rac02.ons  application    ONLINE    OFFLINE 
ora.rac02.vip  application    ONLINE    ONLINE    rac02 

啟動成功!

再啟動ora.rac02.ons服務,

同樣啟動成功.

[root@rac01 bin]# ./crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....01.lsnr application    ONLINE    ONLINE    rac01      
ora.rac01.gsd  application    ONLINE    ONLINE    rac01      
ora.rac01.ons  application    ONLINE    ONLINE    rac01      
ora.rac01.vip  application    ONLINE    ONLINE    rac01      
ora....02.lsnr application    ONLINE    ONLINE    rac02      
ora.rac02.gsd  application    ONLINE    ONLINE    rac02      
ora.rac02.ons  application    ONLINE    ONLINE    rac02      
ora.rac02.vip  application    ONLINE    ONLINE    rac02 

問題解決.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23757700/viewspace-696707/,如需轉載,請註明出處,否則將追究法律責任。

相關文章