---基本所有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/