CRS-0202: No resources are registered

Oracle RAC

[[email protected] bin]# su – oracle
rac1-> crs_stat -t
CRS-0202: No resources are registered.

rac1-> oerr crs 0202
oerr: Unknown facility ‘crs’
rac1-> olsnodes
rac1
rac2
rac1-> cluvfy stage -post crsinst -n all

Performing post-checks for cluster services setup

Checking node reachability…
Node reachability check passed from node “rac1”.
Checking user equivalence…
User equivalence check passed for user “oracle”.

Checking Cluster manager integrity…
Checking CSS daemon…
Daemon status check passed for “CSS daemon”.

Cluster manager integrity check passed.

Checking cluster integrity…
Cluster integrity check passed
Checking OCR integrity…

Checking the absence of a non-clustered configuration…
All nodes free of non-clustered, local-only configurations.

Uniqueness check for OCR device passed.

Checking the version of OCR…
OCR of correct Version “2” exists.

Checking data integrity of OCR…
Data integrity check for OCR passed.

OCR integrity check passed.

Checking CRS integrity…

Checking daemon liveness…
Liveness check passed for “CRS daemon”.

Checking daemon liveness…
Liveness check passed for “CSS daemon”.

Checking daemon liveness…
Liveness check passed for “EVM daemon”.

Checking CRS health…
CRS health check passed.

CRS integrity check passed.

Checking node application existence…
Checking existence of VIP node application (required)
Check passed.

Checking existence of ONS node application (optional)
Check passed.

Checking existence of GSD node application (optional)
Check passed.
Post-check for cluster services setup was successful.
rac1-> crs_stat -t
CRS-0202: No resources are registered.

rac1-> crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
rac1->

——————————————————————————–

Applies to:
Oracle Server – Enterprise Edition – Version: 10.1.0.2 to 10.2.0.1
Information in this document applies to any platform.
Oracle Clusterware
Goal
The goal of this document is to document the steps to confirm if the Oracle Clusterware (CRS) installation is valid
Solution
You have completed the Oracle Clusterware (CRS) install. Now you want to verify if the install is valid.

To Ensure that the Oracle Clusterware (CRS) install on all the nodes is valid, the following commands can be executed on all the nodes.

1.cluvfy stage -post crsinst  -n all
2.Run the command $ORA_CRS_HOME/bin/crs_stat. Please ensure that this command does not error out but dumps the information for each resource. It does not matter what CRS stat returns for each resource. If the crs_stat exits after printing information about each resource then it means that the CRSD daemon is up and  the client crs_stat utility can communicate with it.  This will also indicate that the CRSD can read the OCR. If the crs_stat errors out with CRS-0202: No resources are registered, Then this means that there are no resources registered. This is not an error.
3.Output of command crsctl check crs returns all daemon as heallthy

然后再节点2执行:

[[email protected] bin]# ./crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[[email protected] bin]# ./crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[[email protected] bin]# ./crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM
[[email protected] bin]# rm -rf /tmp/.oracle
[[email protected] bin]# rm -rf /var/tmp/.oracle
[[email protected] bin]# ./crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.

[[email protected] bin]# ping rac1
PING rac1 (192.168.205.131) 56(84) bytes of data.
64 bytes from rac1 (192.168.205.131): icmp_seq=0 ttl=64 time=0.857 ms
64 bytes from rac1 (192.168.205.131): icmp_seq=1 ttl=64 time=0.275 ms

— rac1 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.275/0.566/0.857/0.291 ms, pipe 2
[[email protected] bin]# ./crsctl check crs
Failure 1 contacting CSS daemon
Cannot communicate with CRS
Cannot communicate with EVM
[[email protected] bin]# ./crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
[[email protected] bin]#
[[email protected] bin]# ls -l /dev/raw/raw*
crw-rw—-  1 oracle dba      162, 1 Oct  9 18:44 /dev/raw/raw1
crw-rw—-  1 oracle dba      162, 2 Oct  9 18:44 /dev/raw/raw2
crw-rw—-  1 oracle dba      162, 3 Oct  9 18:44 /dev/raw/raw3
crw-rw—-  1 oracle oinstall 162, 4 Oct  9 18:44 /dev/raw/raw4
crw-rw—-  1 root   oinstall 162, 5 Oct  9 18:44 /dev/raw/raw5
[[email protected] bin]# ./crsctl check crs
CSS appears healthy
Cannot communicate with CRS
Cannot communicate with EVM
[[email protected] bin]# ./crsctl check crs
CSS appears healthy
Cannot communicate with CRS
EVM appears healthy
[[email protected] bin]# ./crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
[[email protected] bin]# ./crs_stat -t
CRS-0202: No resources are registered.

[[email protected] bin]# /u01/app/oracle/product/10.2.0/crs_1/bin/vipca
[[email protected] bin]# ./crs_stat -t
Name           Type           Target    State     Host
————————————————————
ora.rac1.gsd   application    ONLINE    ONLINE    rac1
ora.rac1.ons   application    ONLINE    ONLINE    rac1
ora.rac1.vip   application    ONLINE    ONLINE    rac1
ora.rac2.gsd   application    ONLINE    ONLINE    rac2
ora.rac2.ons   application    ONLINE    ONLINE    rac2
ora.rac2.vip   application    ONLINE    ONLINE    rac2
[[email protected] bin]#