CRS-0184: Cannot communicate with the CRS daemon.----一步步解决(OCR问题)

刚刚装好的10g RAC,重启一下,等了很久,数据库还是没起来,然后:

[oracle@rac1 ~]$ crs_stat -t -v
CRS-0184: Cannot communicate with the CRS daemon.

不科学呀,首先习惯性的检查了盘的状况:

[root@rac1 log]# ll /dev/raw/*
crw-rw---- 1 oracle dba      162, 1 Nov  1 12:56 /dev/raw/raw1
crw-rw---- 1 oracle dba      162, 2 Nov  1 12:56 /dev/raw/raw2
crw-rw---- 1 oracle dba      162, 3 Nov  1 12:56 /dev/raw/raw3
crw-rw---- 1 oracle dba      162, 4 Nov  1 12:56 /dev/raw/raw4
crw-rw---- 1 oracle dba      162, 5 Nov  1 12:56 /dev/raw/raw5
crw-r----- 1 root   oinstall 162, 6 Nov  1 12:56 /dev/raw/raw6
crw-r----- 1 root   oinstall 162, 7 Nov  1 12:56 /dev/raw/raw7
crw-r----- 1 root   oinstall 162, 8 Nov  1 12:56 /dev/raw/raw8

没问题呀,跟我装的时候一模一样。那好,我开始专业DBA的套路了,看日志!

[root@rac1 ~]# cd /u01/crs/oracle/product/10.2.0/app/log/
[root@rac1 log]# cd rac1/
[root@rac1 rac1]# ll
total 28
drwxr-x--- 2 oracle oinstall 4096 Oct 31 11:36 admin
-rw-rw-r-- 1 root   oinstall 3864 Oct 31 17:43 alertrac1.log
drwxr-x--- 2 oracle oinstall 4096 Oct 31 19:19 client
drwxr-x--- 2 root   oinstall 4096 Oct 31 11:39 crsd
drwxr-x--- 4 oracle oinstall 4096 Oct 31 15:39 cssd
drwxr-x--- 2 oracle oinstall 4096 Oct 31 17:20 evmd
drwxrwxr-t 5 oracle oinstall 4096 Oct 31 17:42 racg
现在时间是11月1号,而日志却没有在11月1号改变,不甘心,于是每个目录进去看,都没有在今天改变过(试验机,用完后都是关机,故不会有日志变化)。

这个不科学。。。。。。既然没有cluster日志,那么是不是操作系统层面都没过?于是:

[root@rac1 ~]# cd /var/log/
[root@rac1 log]# vi messages 
...
Nov  1 14:36:23 rac1 logger: Cluster Ready Services waiting on dependencies. Diagnostics in /tmp/crsctl.2826.
Nov  1 14:36:23 rac1 logger: Cluster Ready Services waiting on dependencies. Diagnostics in /tmp/crsctl.2977.
Nov  1 14:36:23 rac1 logger: Cluster Ready Services waiting on dependencies. Diagnostics in /tmp/crsctl.3005.
Nov  1 14:37:24 rac1 logger: Cluster Ready Services waiting on dependencies. Diagnostics in /tmp/crsctl.2977.
Nov  1 14:37:24 rac1 logger: Cluster Ready Services waiting on dependencies. Diagnostics in /tmp/crsctl.3005.
Nov  1 14:37:24 rac1 logger: Cluster Ready Services waiting on dependencies. Diagnostics in /tmp/crsctl.2826.

有戏!

[root@rac1 log]# vi  /tmp/crsctl.2826
Failure -2 opening file handle for (ocr1)
Failure 1 checking the CSS voting disk 'ocr1'.
Failure -2 opening file handle for (ocr2)
Failure 1 checking the CSS voting disk 'ocr2'.
Failure -2 opening file handle for (ocr3)
Failure 1 checking the CSS voting disk 'ocr3'.
Not able to read adequate number of voting disks

好吧,原来是这样。莫非我磁盘权限设置不对?改权限:

KERNEL=="raw1", OWNER="oracle", GROUP="oinstall", MODE="660"
KERNEL=="raw2", OWNER="oracle", GROUP="oinstall", MODE="660"
KERNEL=="raw3", OWNER="oracle", GROUP="oinstall", MODE="660"
KERNEL=="raw4", OWNER="oracle", GROUP="oinstall", MODE="660"
KERNEL=="raw5", OWNER="oracle", GROUP="oinstall", MODE="660"
"/etc/udev/rules.d/99-asm-highgo.rules" 19L, 1803C written
[root@rac1 log]# start_udev
Starting udev: [  OK  ]
[root@rac1 log]# ll /dev/raw*
crw------- 1 root root 162, 0 Nov  1 12:56 /dev/rawctl

/dev/raw:
total 0
crw-rw---- 1 oracle oinstall 162, 1 Nov  1 14:42 raw1
crw-rw---- 1 oracle oinstall 162, 2 Nov  1 14:42 raw2
crw-rw---- 1 oracle oinstall 162, 3 Nov  1 14:42 raw3
crw-rw---- 1 oracle oinstall 162, 4 Nov  1 14:42 raw4
crw-rw---- 1 oracle oinstall 162, 5 Nov  1 14:42 raw5
crw-rw---- 1 oracle oinstall 162, 6 Nov  1 14:42 raw6
crw-rw---- 1 oracle oinstall 162, 7 Nov  1 14:42 raw7
crw-rw---- 1 oracle oinstall 162, 8 Nov  1 14:42 raw8



然后:

[root@rac1 log]# cd /u01/crs/oracle/product/10.2.0/app/bin/
[root@rac1 bin]# ./crsctl start crs
Attempting to start CRS stack 
The CRS stack will be started shortly

可以了:

[oracle@rac1 bdump]$ crs_stat -t -v
Name           Type           R/RA   F/FT   Target    State     Host        
----------------------------------------------------------------------
ora.orcl.db    application    0/0    0/1    ONLINE    ONLINE    rac1        
ora....l1.inst application    0/5    0/0    ONLINE    ONLINE    rac1        
ora....l2.inst application    0/5    0/0    ONLINE    ONLINE    rac2        
ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    rac1        
ora.rac1.gsd   application    0/5    0/0    ONLINE    ONLINE    rac1        
ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1        
ora.rac1.vip   application    0/0    0/0    ONLINE    ONLINE    rac1        
ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    0/5    0/0    ONLINE    ONLINE    rac2        
ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2        
ora.rac2.vip   application    0/0    0/0    ONLINE    ONLINE    rac2     




你可能感兴趣的:(cannot,comm,CRS-0184)