[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
问题解决.