Clusterware resource ora.cvu FAQ

To BottomTo Bottom

In this Document

  Purpose
  Questions and Answers
  What is ora.cvu?
  What does ora.cvu do?
  Where are the traces/logs of ora.cvu located?
  Is ssh user equivalence required for ora.cvu to run?
  How to check if ora.cvu is running?
  Is it expected that ora.cvu is running on only one node of the cluster?
  How to stop/start ora.cvu?
  How to enable/disable ora.cvu?
  Use of CHECK_RESULT parameter?
  Known issues with ora.cvu
  References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.2.0 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

PURPOSE

 The purpose of this note is to answer frequently asked questions about the clusterware (Grid Infrastructure) resource ora.cvu.

QUESTIONS AND ANSWERS

What is ora.cvu?

ora.cvu is a new resource introduced with Grid Infrastructure 11.2.0.2. The purpose of this resource is to invoke clusterware health checks at regular intervals.

What does ora.cvu do?

ora.cvu invokes the cluster verification utility. It executes the following command in the background.

 cluvfy comp health -_format
  • "cluvfy comp health" is the normal cluvfy command which does a complete health check.
  • The attribute '_format' sets the format which is redirected to the log file of the ora.cvu.

Where are the traces/logs of ora.cvu located?

The logs related to ora.cvu are located under <GRID_HOME>/log/<node>/cvu/.

There are two directories underneath: one for log file s(cvulog) and one for trace files (cvutrc).

For 12.1.0.2 onward, it's in <ORACLE_BASE>/crsdata/<node>/cvu/cvulog and <ORACLE_BASE>/crsdata/<node>/cvu/cvutrc

Is ssh user equivalence required for ora.cvu to run?

Yes, it's required for grid user, ref:

note 1943147.1 - Frequent sshd login by grid user in cluster nodes by ora.cvu resource

How to check if ora.cvu is running?

The status of the resource ora.cvu can be checked with the following command.

$ crsctl stat res ora.cvu -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cvu
      1        ONLINE  ONLINE       rac1

Is it expected that ora.cvu is running on only one node of the cluster?

Yes, that's the correct behavior. 

If the node on which this resource is running goes down, it will relocate to another node of the cluster.

How to stop/start ora.cvu?

Customer should not stop ora.cvu without guidance from Oracle Development/Support.

ora.cvu can be stopped using the "srvctl stop cvu". For example:

$ srvctl stop cvu
$ srvctl status cvu
CVU is enabled but is not running
$ crsctl stat res ora.cvu -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cvu
      1        OFFLINE OFFLINE
 

ora.cvu can be started using the "srvctl start cvu". For example:

$ srvctl start cvu
$ srvctl status cvu
CVU is enabled and running on node rac1
$ crsctl stat res ora.cvu -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cvu
      1        ONLINE  ONLINE       rac1

The resource can be started/stopped with grid infrastructure user.

The resource has to be enabled to be started. It is enabled by default.

How to enable/disable ora.cvu?

Customer should not disable ora.cvu without guidance from Oracle Development/Support.

Follow below to enable/disable cvu and verify its status.

Step 1: To enable cvu

$ srvctl enable cvu
$ srvctl status cvu
CVU is enabled but is not running
$ crsctl stat res ora.cvu -p | grep ENABLED
ENABLED=1

Step 2: To disable cvu

$ srvctl disable cvu
$ srvctl status cvu
CVU is disabled
$ crsctl stat res ora.cvu -p | grep ENABLED
ENABLED=0

The resource can be enabled/disbaled with grid Infrastructure user.

Please note that CVU was stopped while executing this command.

 

Use of CHECK_RESULT parameter?

You can view the result of the earlier execution of cvu in the check_result parameter. For example,

$ crsctl stat res ora.cvu -p | grep CHECK_RESULT
CHECK_RESULTS=PRVF-7573 : Sufficient swap size is not available on node "rac1" [Required = 2.9218GB (3063714.0KB) ; Found = 2GB (2097144.0KB)],
PRVF-7573 : Sufficient swap size is not available on node "rac2" [Required = 2.9218GB (3063714.0KB) ; Found = 2GB (2097144.0KB)]

Known issues with ora.cvu

  1. In 11.2.0.3, Cluvfy health check on WINDOWS leaves behind cmd.exe and exhausts windows heap memory. Also when running cluvfy.bat it might report %%I was unexpected or report Java stack overflow. This could leave the listeners in the intermediate state. Bug 14245094 is logged for the same and the fix is available in 11.2.0.3 Patch 12 (patch 14731193). Workaround is to disable ora.cvu. Refer Note 14324057.8 for more details.
  2. Similar issue is reported in 11.2.0.2 as well. Refer to Note 1368033.1 for more details.

REFERENCES

NOTE:316817.1 - Cluster Verification Utility (CLUVFY) FAQ
NOTE:1368033.1 - Windows: ora.CVU Health Check Leaves Processes Open And Exhaust Heap Memory (and processes)
原文地址:https://www.cnblogs.com/yaoyangding/p/15737234.html