处理crs_stat -t状态unknown一例



---基本所有resource状态全是unknown
-bash-3.00$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....SM1.asm application    OFFLINE   UNKNOWN   capitek1    
ora....K1.lsnr application    OFFLINE   UNKNOWN   capitek1    
ora....ek1.gsd application    ONLINE    UNKNOWN   capitek1    
ora....ek1.ons application    ONLINE    UNKNOWN   capitek1    
ora....ek1.vip application    OFFLINE   UNKNOWN   capitek1    
ora....SM2.asm application    OFFLINE   UNKNOWN   capitek2    
ora....K2.lsnr application    OFFLINE   UNKNOWN   capitek2    
ora....ek2.gsd application    ONLINE    UNKNOWN   capitek2    
ora....ek2.ons application    ONLINE    UNKNOWN   capitek2    
ora....ek2.vip application    OFFLINE   UNKNOWN   capitek2    
ora.only.db    application    ONLINE    UNKNOWN   capitek1    
ora....y1.inst application    OFFLINE   OFFLINE               
ora....y2.inst application    OFFLINE   OFFLINE               
ora....ice1.cs application    ONLINE    UNKNOWN   capitek1    
ora....ly1.srv application    ONLINE    UNKNOWN   capitek1    
ora....ice2.cs application    ONLINE    UNKNOWN   capitek1    
ora....ly1.srv application    ONLINE    UNKNOWN   capitek1    
ora....ly2.srv application    ONLINE    UNKNOWN   capitek2    
-bash-3.00$ exit
logout

---直接停止crs进程
[root@capitek1 rc.d]# /etc/init.d/init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.

---ons进程仍在
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     18712  4640  0 01:20 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# su - oracle
-bash-3.00$ crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.


----尝试重启crs进程,结果css及evm并没有启动
-bash-3.00$ exit
logout
[root@capitek1 rc.d]# /etc/init.d/init.crs start
Startup will be queued to init within 90 seconds.
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     18970  4640  0 01:20 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     18972  4640  0 01:20 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     18974  4640  0 01:20 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     18976  4640  0 01:20 pts/0    00:00:00 grep crs


---说明crs进程启动会递归调用很多脚本,请看有crsctl这个命令,有兴趣的同学可以深入研究下,对于troubleshuting大有作用
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19036 19003  0 01:21 ?        00:00:00 /bin/su -l oracle -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19003
oracle   19037 19036  0 01:21 ?        00:00:00 -bash -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19003
oracle   19057 19037  0 01:21 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl.bin check boot
root     19060  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19036 19003  0 01:21 ?        00:00:00 /bin/su -l oracle -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19003
oracle   19037 19036  1 01:21 ?        00:00:00 -bash -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19003
oracle   19057 19037  4 01:21 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl.bin check boot
root     19112 19061  0 01:21 ?        00:00:00 /bin/su -l oracle -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19061
oracle   19113 19112  1 01:21 ?        00:00:00 -bash -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19061
oracle   19140 19113  2 01:21 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl.bin check boot
root     19150 19081  0 01:21 ?        00:00:00 /bin/su -l oracle -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19081
oracle   19151 19150  1 01:21 ?        00:00:00 -bash -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19081
oracle   19171 19151  0 01:21 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl.bin check boot
root     19174  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19112 19061  0 01:21 ?        00:00:00 /bin/su -l oracle -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19061
oracle   19113 19112  0 01:21 ?        00:00:00 -bash -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19061
oracle   19140 19113  1 01:21 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl.bin check boot
root     19150 19081  0 01:21 ?        00:00:00 /bin/su -l oracle -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19081
oracle   19151 19150  0 01:21 ?        00:00:00 -bash -c /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl check boot > /tmp/crsctl.19081
oracle   19171 19151  2 01:21 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl.bin check boot
root     19179  4640  0 01:21 pts/0    00:00:00 grep crs



---经过上面中间脚本的调用结束后,evm,css进程仍旧没有启动
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19187  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19189  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19191  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19193  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19195  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19197  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /bin/sh /etc/init.d/init.crsd run
root     19199  4640  0 01:21 pts/0    00:00:00 grep crs
[root@capitek1 rc.d]# /etc/init.d/init.c
init.crs   init.crsd  init.cssd  


---尝试单独启动css进程,瞧!evm,css进程全部活动起来
[root@capitek1 rc.d]# /etc/init.d/init.cssd start
Startup will be queued to init within 90 seconds.
[root@capitek1 rc.d]# ps -ef|grep crs
oracle    6405     1  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle    6406  6405  0 01:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root     18464     1  0 01:19 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/crsd.bin reboot
root     18472     1  0 01:19 ?        00:00:00 /bin/su -l oracle -c sh -c 'ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/evmd; exec /u01/app/oracle/product/10.2.0/crs_1/bin/evmd '
oracle   19253 18472  5 01:22 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/evmd.bin
root     19351 19239  0 01:22 ?        00:00:00 /bin/su -l oracle -c /bin/sh -c 'ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/cssd;  /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd  || exit $?'
oracle   19352 19351  1 01:22 ?        00:00:00 /bin/sh -c ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/cssd;  /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd  || exit $?
oracle   19372 19352  2 01:22 ?        00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd.bin




小结:
1,对于rac各进程的依赖关系掌握不深入?css,evm,css?需要再查阅文档!
2,crs_stat -t的状态为unknown,是何因造成呢,我这种处理方法,在生产环境上适用性如何?

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-659553/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9240380/viewspace-659553/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值