Cluster Verification Utility (CVU) performs system checks in preparation for installation, patch updates, or other system changes. Using CVU ensures that you have completed the required system configuration and preinstallation steps so that your Oracle Grid Infrastructure or Oracle Real Application Clusters (Oracle RAC) installation, update, or patch operation, completes successfully.
Oracle Universal Installer is fully integrated with CVU, automating many CVU prerequisite checks. Oracle Universal Installer runs all prerequisite checks and associated fixup scripts when you run the installer.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for information about using the Server Control utility (SRVCTL) to manage CVU
Oracle Grid Infrastructure Installation Guide and Oracle Real Application Clusters Installation Guide for information about how to manually install CVU
Note:
Check for and download updated versions of CVU on Oracle Technology Network atThis appendix describes CVU under the following topics:
This section includes topics which relate to using CVU.
CVU can verify the primary cluster components during an operational phase or stage. A component can be basic, such as free disk space, or it can be complex, such as checking Oracle Clusterware integrity. For example, CVU can verify multiple Oracle Clusterware subcomponents across Oracle Clusterware layers. Additionally, CVU can check disk space, memory, processes, and other important cluster components. A stage could be, for example, database installation, for which CVU can verify whether your system meets the criteria for an Oracle Real Application Clusters (Oracle RAC) installation. Other stages include the initial hardware setup and the establishing of system requirements through the fully operational cluster setup.
Table A-1 lists verifications you can perform using CVU.
Table A-1 Performing Various CVU Verifications
Verification to Perform | CVU Commands to Use |
---|---|
System requirements verification |
|
Oracle Cluster File System verification |
|
Storage verifications |
|
Network verification |
|
Connectivity verifications |
|
Cluster Time Synchronization Services verification |
|
User and Permissions verification |
|
Node comparison and verification |
|
Installation verification |
|
Deletion verification |
|
Oracle Clusterware and Oracle ASM Component verifications |
This section includes the following topics:
CVU installation requirements are:
At least 30 MB free space for the CVU software on the node from which you run CVU
A work directory with at least 25 MB free space on each node. The default location of the work directory is /tmp
on Linux and UNIX systems, and the value specified in the TEMP
environment variable on Windows systems. You can specify a different location by setting the CV_DESTLOC
environment variable.
When using CVU, the utility attempts to copy any needed information to the CVU work directory. It checks for the existence of the work directory on each node. If it does not find one, then it attempts to create one. Make sure that the CVU work directory either exists on all nodes in your cluster or proper permissions are established on each node for the user running CVU to create that directory.
CVU includes two scripts: runcluvfy.sh
(runcluvfy.bat
on Windows), which you use before installing Oracle software, and cluvfy
(cluvfy.bat
on Windows), located in the Grid_home
/bin
directory. The runcluvfy.sh
script contains temporary variable definitions which enable it to run before you install Oracle Grid Infrastructure or Oracle Database. After you install Oracle Grid Infrastructure, use the cluvfy
command to check prerequisites and perform other system readiness checks.
Note:
Oracle Universal Installer runscluvfy
to check all prerequisites during Oracle software installation.Before installing Oracle software, run runcluvfy.sh
from the mountpoint path of the software installation media, as follows:
cd /mountpoint ./runcluvfy.sh options
In the preceding example, the options
variable represents CVU command options that you select. For example:
$ cd /mnt/dvdrom $ ./runcluvfy.sh comp nodereach -n node1,node2 -verbose
When you enter a CVU command, it provides a summary of the test. During preinstallation, Oracle recommends that you obtain detailed output by using the -verbose
argument with the CVU command. The -verbose
argument produces detailed output of individual checks. Where applicable, it shows results for each node in a tabular layout.
Run the CVU command-line tool using the cluvfy
command. Using cluvfy
does not adversely affect your cluster environment or your installed software. You can run cluvfy
commands at any time, even before the Oracle Clusterware installation. In fact, CVU is designed to assist you as soon as your hardware and operating system are operational. If you run a command that requires Oracle Clusterware on a node, then CVU reports an error if Oracle Clusterware is not yet installed on that node.
The node list that you use with CVU commands should be a comma-delimited list of host names without a domain. CVU ignores domains while processing node lists. If a CVU command entry has duplicate node entries after removing domain information, then CVU eliminates the duplicate node entries.
For network connectivity verification, CVU discovers all of the available network interfaces if you do not specify an interface on the CVU command line. For storage accessibility verification, CVU discovers shared storage for all of the supported storage types if you do not specify a particular storage identification on the command line. CVU also discovers the Oracle Clusterware home if one is available.
See Also:
"Privileges and Security" for usage security informationYou can use the CVU configuration file to define specific inputs for the execution of CVU. The path for the configuration file is Grid_home
/cv/admin/cvu_config
(or Staging_area
\clusterware\stage\cvu\cv\admin
on Windows platforms). You can modify this file using a text editor. The inputs to CVU are defined in the form of key entries. You must follow these rules when modifying the CVU configuration file:
Key entries have the syntax name=value
Each key entry and the value assigned to the key only defines one property
Lines beginning with the number sign (#
) are comment lines and are ignored
Lines that do not follow the syntax name=value
are ignored
The following is the list of keys supported by CVU:
CV_NODE_ALL
: If set, it specifies the list of nodes that should be picked up when Oracle Clusterware is not installed. By default, this entry is commented out.
CV_ORACLE_RELEASE
: If set, it specifies the specific Oracle release (10.1
, 10.2
, 11.1
, 11.2
, or 12.1
) for which the verifications have to be performed. If set, you do not have to use the -r
release
option wherever it is applicable. The default value is 12.1
.
CV_RAW_CHECK_ENABLED
: If set to TRUE
, it enables the check for accessibility of shared disks on Linux and UNIX systems. This shared disk accessibility check requires that you install the cvuqdisk
RPM Package Manager (rpm) on all of the nodes. By default, this key is set to TRUE
and shared disk check is enabled.
CV_ASSUME_DISTID
: This property is used in cases where CVU cannot detect or support a particular platform or a distribution. Oracle does not recommend that you change this property as this might render CVU non-functional.
CV_XCHK_FOR_SSH_ENABLED
: If set to TRUE
, it enables the X-Windows check for verifying user equivalence with ssh
. By default, this entry is commented out and X-Windows check is disabled.
ORACLE_SRVM_REMOTECOPY
: If set, it specifies the location for the scp
or rcp
command to override the CVU default value. By default, this entry is commented out and CVU uses /usr/bin/scp
and /usr/sbin/rcp
.
ORACLE_SRVM_REMOTESHELL
: If set, it specifies the location for ssh
command to override the CVU default value. By default, this entry is commented out and the tool uses /usr/sbin/ssh
.
CV_ASSUME_CL_VERSION
: By default, the command line parser uses crs activeversion
for the display of command line syntax usage and syntax validation. Use this property to pass a version other than crs activeversion
for command line syntax display and validation. By default, this entry is commented out.
If CVU does not find a key entry defined in the configuration file, then CVU searches for the environment variable that matches the name of the key. If the environment variable is set, then CVU uses its value, otherwise CVU uses a default value for that entity.
Because of a lack of user equivalence for the root
user, most CVU commands cannot be run as root
to perform any remote node operations, except for the following:
However, using privilege delegation, you can specify the -method
parameter and choose one of two methods (sudo
or root
) to enable the checks and run the fixup scripts that require root privileges to be performed on remote nodes. You will be prompted for a password but the password is used dynamically while the CVU commands run, rather than being stored on a storage device.
Specifying the -method
parameter is advantageous in the context of fixup scripts. If you choose privilege delegation, then all the fixup scripts can be run at one time from the local node. If you do not choose privilege delegation, then you must log onto each relevant node as root
and run the fixup script.
The cluvfy
commands have context sensitive help that shows their usage based on the command-line arguments that you enter. For example, if you enter cluvfy
, then CVU displays high-level generic usage text describing the stage and component syntax. The following is a list of context help commands:
cluvfy -help
: CVU displays detailed CVU command information.
cluvfy -version
: CVU displays the version of Oracle Clusterware.
cluvfy comp -list
: CVU displays a list of components that can be checked, and brief descriptions of how the utility checks each component.
cluvfy comp -help
: CVU displays detailed syntax for each of the valid component checks.
cluvfy stage -list
: CVU displays a list of valid stages.
cluvfy stage -help
: CVU displays detailed syntax for each of the valid stage checks.
You can also use the -help
option with any CVU command. For example, cluvfy stage -pre nodeadd -help
returns detailed information for that particular command.
If you enter an invalid CVU command, then CVU shows the correct usage for that command. For example, if you type cluvfy stage -pre dbinst
, then CVU shows the correct syntax for the precheck commands for the dbinst
stage. Enter the cluvfy -help
command to see detailed CVU command information.
This section includes the following topics:
You can use the -fixup
flag with certain CVU commands to generate fixup scripts before installation. Oracle Universal Installer can also generate fixup scripts during installation. The installer then prompts you to run the script as root
in a separate terminal session. If you generate a fixup script from the command line, then you can run it as root
after it is generated. When you run the script, it raises kernel values to required minimums, if necessary, and completes other operating system configuration.
Alternatively, you can specify the -method
parameter with certain CVU commands to enable privilege delegation and enable you to run fixup scripts as root
on remote nodes from the local node.
See Also:
"Privileges and Security"You can use CVU to determine which system prerequisites for installation are completed. Use this option if you are installing Oracle Database 12c software on a system with a pre-existing Oracle software installation. In using this option, note the following:
You must run CVU as the user account you plan to use to run the installation. You cannot run CVU as root
, and running CVU as another user other than the user that is performing the installation does not ensure the accuracy of user and group configuration for installation or other configuration checks.
Before you can complete a clusterwide status check, SSH must be configured for all cluster nodes. You can use the installer to complete SSH configuration, or you can complete SSH configuration yourself between all nodes in the cluster. You can also use CVU to generate a fixup script to configure SSH connectivity.
CVU can assist you by finding preinstallation steps that must be completed, but it cannot perform preinstallation tasks.
Use the following syntax to determine what preinstallation steps are completed, and what preinstallation steps you must perform; running the command with the -fixup
flag generates a fixup script to complete kernel configuration tasks as needed:
$ ./runcluvfy.sh stage -pre crsinst -fixup -n node_list
In the preceding syntax example, replace the node_list
variable with the names of the nodes in your cluster, separated by commas. On Windows, you must enclose the comma-delimited node list in double quotation marks (""
).
For example, for a cluster with mountpoint /mnt/dvdrom/
, and with nodes node1
, node2
, and node3
, enter the following command:
$ cd /mnt/dvdrom/ $ ./runcluvfy.sh stage -pre crsinst -fixup -n node1,node2,node3
Review the CVU report, and complete additional steps as needed.
See Also:
Your platform-specific installation guide for more information about installing your productYou can use CVU included on the Oracle Database 12c media to check system requirements for Oracle Database 10g release 1 (10.1) and later installations. To use CVU to check Oracle Clusterware installations, append the command -r
release_code
flag to the standard CVU system check commands.
For example, to perform a verification check before installing Oracle Clusterware version 10. 2 on a system where the media mountpoint is /mnt/dvdrom
and the cluster nodes are node1
, node2
, and node3
, enter the following command:
$ cd /mnt/dvdrom $ ./runcluvfy.sh stage -pre crsinst -n node1,node2,node3 -r 10.2
Note:
If you do not specify a release version to check, then CVU checks for 12c release 1 (12.1) requirements.When verifying stages, CVU uses entry and exit criteria. Each stage has entry criteria that define a specific set of verification tasks to be performed before initiating that stage. This check prevents you from beginning a stage, such as installing Oracle Clusterware, unless you meet the Oracle Clusterware prerequisites for that stage.
The exit criteria for a stage define another set of verification tasks that you must perform after the completion of the stage. Post-checks ensure that the activities for that stage have been completed. Post-checks identify stage-specific problems before they propagate to subsequent stages.
Although by default CVU reports in nonverbose mode by only reporting the summary of a test, you can obtain detailed output by using the -verbose
argument. The -verbose
argument produces detailed output of individual checks and where applicable shows results for each node in a tabular layout.
If a cluvfy
command responds with UNKNOWN
for a particular node, then this is because CVU cannot determine whether a check passed or failed. The cause could be a loss of reachability or the failure of user equivalence to that node. The cause could also be any system problem that was occurring on that node when CVU was performing a check.
The following is a list of possible causes for an UNKNOWN
response:
The node is down
Executables that CVU requires are missing in Grid_home
/bin
or the Oracle home
directory
The user account that ran CVU does not have privileges to run common operating system executables on the node
The node is missing an operating system patch or a required package
The node has exceeded the maximum number of processes or maximum number of open files, or there is a problem with IPC segments, such as shared memory or semaphores
To provide CVU a list of all of the nodes of a cluster, enter -n all
. CVU attempts to obtain the node list in the following order:
If vendor clusterware is available, then CVU selects all of the configured nodes from the vendor clusterware using the lsnodes
utility.
If Oracle Clusterware is installed, then CVU selects all of the configured nodes from Oracle Clusterware using the olsnodes
utility.
If neither the vendor clusterware nor Oracle Clusterware is installed, then CVU searches for a value for the CV_NODE_ALL
key in the configuration file.
If vendor clusterware and Oracle Clusterware are not installed and no key named CV_NODE_ALL
exists in the configuration file, then CVU searches for a value for the CV_NODE_ALL
environmental variable. If you have not set this variable, then CVU reports an error.
To provide a partial node list, you can set an environmental variable and use it in the CVU command. For example, on Linux or UNIX systems you can enter:
setenv MYNODES node1,node3,node5 cluvfy comp nodecon -n $MYNODES [-verbose]
This section lists and describes the following CVU commands:
Use the cluvfy comp acfs
component verification command to check the integrity of Oracle Automatic Storage Management Cluster File System (Oracle ACFS) on all nodes in a cluster.
Table A-2 cluvfy comp acfs Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-f file_system
|
The name of the file system to check. |
-verbose |
CVU prints detailed output. |
Use the cluvfy comp admprv
command to check the required administrative privileges for the operation specified by -o
parameter on all the nodes that you specify in the node list. The operations are mutually exclusive and you can specify only one operation at a time.
On Linux and UNIX platforms:
cluvfy comp admprv [-n node_list] -o user_equiv [-sshonly] | -o crs_inst [-asmgrp asmadmin_group] [-asmdbagrp asmdba_group] [-orainv orainventory_group] [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] | -o db_inst [-osdba osdba_group] [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location dir_path] | root}] | -o db_config -d oracle_home [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose]
On Windows platforms:
cluvfy comp admprv [-n node_list] | -o user_equiv | -o crs_inst [-fixup] [-fixupnoexec] | -o db_inst [-fixup] [-fixupnoexec] | -o db_config -d oracle_home [-fixup] [-fixupnoexec] [-verbose]
Table A-3 cluvfy comp admprv Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-o user_equiv [-sshonly] |
Checks user equivalence between the nodes. On Linux and UNIX platforms, this command verifies user equivalence using |
-o crs_inst [-asmgrp asmadmin_group] [-asmdbagrp asmdba_group] [-orainv orainventory_group] |
Checks administrative privileges for installing Oracle Clusterware. Optionally, you can specify the following: -asmgrp : Specify the name of the OSASM group. The default is asmadmin .-asmdbagrp : Specify the name of the ASMDBA group. The default is asmdba .-orainv : Specify the name of the Oracle Inventory group. The default is oinstall . |
-o db_inst [-osdba osdba_group]
|
Checks administrative privileges for installing an Oracle RAC database. Optionally, you can specify the following: -osdba : The name of the OSDBA group. The default is dba . |
-o db_config -d oracle_home
|
Checks administrative privileges for creating or configuring an Oracle RAC database. Specify the location of the Oracle home for the Oracle RAC database. |
-fixup |
Specifies that if the verification fails, then CVU generates fixup instructions, if feasible. |
-fixupnoexec |
Specifies that if verification fails, then CVU generates the fixup data and displays the instructions for manual execution of the generated fixups. |
-method {sudo -user user_name [-location dir_path] | root} |
Specify whether the privilege delegation method is |
-verbose |
CVU prints detailed output. |
By default, the equivalence check does not verify X-Windows configurations, such as whether you have disabled X-forwarding, whether you have the proper setting for the DISPLAY
environment variable, and so on.
To verify X-Windows aspects during user equivalence checks, set the CV_XCHK_FOR_SSH_ENABLED
key to TRUE
in the configuration file that resides in the CV_HOME/cv/admin/cvu_config
directory before you run the cluvfy comp admprv -o user_equiv
command.
Example 1: Verifying Permissions Required to Install Oracle Clusterware
You can verify that the permissions required for installing Oracle Clusterware have been configured on the nodes racnode1
and racnode2
by running the following command:
cluvfy comp admprv -n racnode1,racnode2 -o crs_inst -verbose
Example 1: Verifying Permissions Manage Oracle RAC Databases
You can verify that the permissions required for creating or modifying an Oracle RAC database using the C:\app\oracle\product\11.2.0\dbhome_1
Oracle home directory, and generate a script to configure the permissions by running the following command:
cluvfy comp admprv -n racnode1,racnode2 -o db_config -d C:\app\oracle\product\11.2.0\dbhome_1 -fixup -verbose
Use the cluvfy comp asm
component verification command to check the integrity of Oracle Automatic Storage Management (Oracle ASM) on specific nodes in the cluster. This check ensures that the Oracle ASM instances on the specified nodes are running from the same Oracle home and that asmlib
, if it exists, has a valid version and ownership.
Verifying the Integrity of Oracle ASM on All Nodes
To verify the integrity of Oracle ASM on all of the nodes in the cluster, use the following command:
cluvfy comp asm –n all
This command produces output similar to the following:
Verifying ASM Integrity Task ASM Integrity check started... Starting check to see if ASM is running on all cluster nodes... ASM Running check passed. ASM is running on all specified nodes Starting Disk Groups check to see if at least one Disk Group configured... Disk Group Check passed. At least one Disk Group configured Task ASM Integrity check passed... Verification of ASM Integrity was successful.
Use the cluvfy comp baseline
command to capture system and cluster configuration information to create a baseline. You can use this baseline for comparison with the state of the system. You can collect baselines at strategic times, such as after Oracle Clusterware installation, before and after upgrading Oracle Clusterware, or automatically as part of periodic execution of CVU running as an Oracle Clusterware resource. You can also compare several baselines.
cluvfy comp baseline -collect {all | cluster | database} [-n node_list] [-d Oracle_home] [-db db_unique_name] [-bestpractice | -mandatory] [-binlibfilesonly [-reportname report_name] [-savedir save_dir] cluvfy comp baseline -compare baseline1,baseline2,... [-deviations]
Table A-5 cluvfy comp baseline Command Parameters
Parameter | Description |
---|---|
-collect {all | cluster | database} |
The You can collect a baseline related to Oracle Clusterware ( |
-n node_list
|
Specify a comma-delimited list of non-domain qualified node names on which the test should be conducted. |
-d Oracle_home
|
When collecting a database baseline, if you specify an Oracle home, then CVU collects baselines for all the databases running from the Oracle home. Use the |
-db db_unique_name
|
The name of the database for which you want to collect information. When collecting a database baseline, if you specify the |
-bestpractice | -mandatory |
Specify |
-binlibfilesonly |
Specify |
-report report_name
|
Use this optional parameter to specify a name for the report. |
-savedir save_dir
|
Use this optional parameter to specify a location in which CVU saves the reports. If you do not specify the |
-compare baseline1,baseline2,... |
Specify |
-deviations |
Specify this parameter to display only the deviations from best practice recommendations or mandatory requirements, or both, (depending on whether you specified the |
Specify either the -collect
or -compare
parameter.
Items that CVU collects when running this command include:
/etc/inittab
permissions/var/tmp/.oracle
/boot
mount, Huge Pages existence, 8888 port availability, Ethernet jumbo frames)css miscount
, reboottime
, disktimeout
)Use the cluvfy comp clocksync
component verification command to clock synchronization across all the nodes in the node list. CVU verifies a time synchronization service is running (Oracle Cluster Time Synchronization Service (CTSS) or Network Time Protocol (NTP)), that each node is using the same reference server for clock synchronization, and that the time offset for each node is within permissible limits.
Table A-6 cluvfy comp clocksync Command Parameters
Parameter | Description |
---|---|
-noctss |
If you specify this option, then CVU does not perform a check on CTSS. Instead, CVU checks the platform's native time synchronization service, such as NTP. |
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-verbose |
CVU prints detailed output. |
Use the cluvfy comp clumgr
component verification command to check the integrity of cluster manager subcomponent, or Oracle Cluster Synchronization Services (CSS), on the nodes in the node list.
Run the cluvfy comp crs
component verification command to check the integrity of the Cluster Ready Services (CRS) daemon on the specified nodes.
Use the cluvfy comp dhcp
component verification command to verify that the DHCP server exists on the network, and that it can provide a required number of IP addresses. The required number of IP addresses is calculated, as follows:
Regardless of the size of the cluster, there must be three scan VIPs
One node VIP for each node you specify with the -n
option
One application VIP for each application VIP resource you specify with the -vipresname
option
This verification also verifies the response time for the DHCP server.
cluvfy comp dhcp -clustername cluster_name [-vipresname application_vip_resource_name] [-port dhcp_port] [-n node_list] [-method {sudo -user user_name [-location directory_path] | root}] [-networks network_list] [-verbose]
Table A-9 cluvfy comp dhcp Command Parameters
Parameter | Description |
---|---|
-clustername cluster_name
|
The name of the cluster of which you want to check the integrity of DHCP. |
-vipresname application_vip_resource_name
|
A comma-delimited list of the names of the application VIP resource. |
-port dhcp_port
|
The port to which DHCP packages are sent. The default port is 67. |
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-method {sudo -user user_name [-location directory_path] | root} |
Specify whether the privilege delegation method is |
-networks network_list
|
Specify a list of network classifications for the cluster separated by forward slashes ( In the preceding format, you must enclose |
-verbose |
CVU prints detailed output. |
You must run this command as root
.
Do not run this check while the default network Oracle Clusterware resource, configured to use a DHCP-provided IP address, is online (because the VIPs get released and, since the cluster is online, DHCP has provided IP, so there is no need to double the load on the DHCP server).
Run this check on the local node. This is unlike other CVU commands, which run on all nodes specified in node list. As a result, even though the local node is not included in the node list you specify with the -n
option, the error messages get reported to the local node.
Before running this command, ensure that the network resource is offline. Use the srvctl stop nodeapps
command to bring the network resource offline, if necessary.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about thesrvctl stop nodeapps
commandUse the cluvfy comp dns
component verification command to verify that the Grid Naming Service (GNS) subdomain delegation has been properly set up in the Domain Name Service (DNS) server.
Note:
Oracle does not support this command on Windows.cluvfy comp dns -server -domain gns_sub_domain -vipaddress gns_vip_address [-port dns_port] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose] cluvfy comp dns -client -domain gns_sub_domain -vip gns_vip [-port dns_port] [-last] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose]
Table A-10 cluvfy comp dns Command Parameters
Parameter | Description |
---|---|
-server |
Start a test DNS server for the GNS subdomain that listens on the domain specified by the |
-client |
Validate connectivity to a test DNS server started on a specific address. You must specify the same information you specified when you started the DNS server. |
-domain gns_sub_domain
|
The GNS subdomain name. |
-vipaddress gns_vip_address
|
GNS virtual IP address in the form |
-vip gns_vip
|
GNS virtual IP address, which is either a name that resolves to an IP address or a dotted decimal numeric IP address. |
-port dns_port
|
The port on which the test DNS server listens. The default port is 53. |
-last |
Send a termination request to the test DNS server after all the validations are complete. |
-method {sudo -user user_name [-location directory_path] | root} |
Specify whether the privilege delegation method is |
-verbose |
CVU prints detailed output. |
You must run this command as root
.
Run cluvfy comp dns -server
on one node of the cluster.
Run cluvfy comp dns -client
on each node of the cluster to verify DNS server setup for the cluster.
On the last node, specify the -last
option to terminate the cluvfy comp dns -server
instance.
Do not run this command while the GNS resource is online.
Use the cluvfy comp freespace
component verification command to check the free space available in the Oracle Clusterware home storage and ensure that there is at least 5% of the total space available. For example, if the total storage is 10GB, then the check ensures that at least 500MB of it is free.
Use the cluvfy comp gns
component verification command to verify the integrity of the Grid Naming Service (GNS) on the cluster.
cluvfy comp gns -precrsinst {-vip gns_vip [-domain gns_domain] | -clientdata file_name} [-networks network_list] [-n node_list] [-verbose] cluvfy comp gns -postcrsinst [-verbose]
Table A-11 cluvfy comp gns Command Parameters
Parameter | Description |
---|---|
-precrsinst |
Perform checks on GNS domain name and VIP address before Oracle Clusterware is installed. |
-vip gns_vip
|
Specify the GNS virtual IP address. When you specify |
-domain gns_domain
|
Optionally, you can specify the GNS sub domain name. |
-clientdata file_name
|
Specify the name of the file that contains the GNS credentials. CVU validates that this cluster can use the specified client data to become a client GNS cluster of another GNS server cluster (shared GNS). |
-networks network_list
|
Specify a list of network classifications for the cluster, including public networks for GNS, separated by forward slashes ( In the preceding format, you must enclose |
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-postcrsinst |
Check the integrity of GNS on all nodes in the cluster |
-verbose |
CVU prints detailed output. |
Use the cluvfy comp gpnp
component verification command to check the integrity of Grid Plug and Play on a list of nodes in a cluster.
Use the cluvfy comp ha
component verification command to check the integrity of Oracle Restart on the local node.
Use the cluvfy comp healthcheck
component verification command to check your Oracle Clusterware and Oracle Database installations for their compliance with mandatory requirements and best practices guidelines, and to ensure that they are functioning properly.
cluvfy comp healthcheck [-collect {cluster|database}] [-db db_unique_name] [-bestpractice|-mandatory] [-deviations] [-html] [-save [-savedir directory_path]]
Table A-13 cluvfy comp healthcheck Command Parameters
Parameter | Description |
---|---|
-collect {cluster|database} |
Use |
-db db_unique_name
|
Use CVU uses JDBC to connect to the database as the user There is a SQL script included in the If you use the |
[-bestpractice|-mandatory] [-deviations] |
Use the |
-html |
Use the If you specify the If you do not specify the |
-save [-savedir directory_path]
|
Use the If you use the If you use the |
Use the component cluvfy comp nodeapp
command to check for the existence of node applications, namely VIP, NETWORK, and ONS, on all of the specified nodes.
Use the cluvfy comp nodecon
component verification command to check the connectivity among the nodes specified in the node list. If you provide an interface list, then CVU checks the connectivity using only the specified interfaces.
Table A-15 cluvfy comp nodecon Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-networks network_list
|
The forward slash (/)-delimited list of networks on which to conduct the verification. |
-verbose |
CVU prints detailed output. |
You can run this command in verbose mode to identify the mappings between the interfaces, IP addresses, and subnets.
On Solaris platforms, this command skips testing IP addresses that are marked as deprecated.
Use the nodecon
command without the -networks
option and with -n
set to all
to use CVU to:
Discover all of the network interfaces that are available on the cluster nodes
Review the interfaces' corresponding IP addresses and subnets
Obtain the list of interfaces that are suitable for use as VIPs and the list of interfaces to private interconnects
Verify the connectivity between all of the nodes through those interfaces
Example 1: Verifying the connectivity between nodes through specific network interfaces:
You can verify the connectivity between the nodes node1
and node3
through interface eth0
by running the following command:
cluvfy comp nodecon -n node1/node3 –networks eth0 -verbose
Example 2: Discovering all available network interfaces and verifying the connectivity between the nodes in the cluster through those network interfaces:
Use the following command to discover all of the network interfaces that are available on the cluster nodes. CVU then reviews the interfaces' corresponding IP addresses and subnets. Using this information, CVU obtains a list of interfaces that are suitable for use as VIPs and a list of interfaces to private interconnects. Finally, CVU verifies the connectivity between all of the nodes in the cluster through those interfaces.
cluvfy comp nodecon -n all -verbose
Use the cluvfy comp nodereach
component verification command to check the reachability of specified nodes from a source node.
Table A-16 cluvfy comp nodereach Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-srcnode node
|
The name of the source node from which CVU performs the reachability test. If you do not specify a source node, then the node on which you run the command is used as the source node. |
-verbose |
CVU prints detailed output. |
Verifying the network connectivity between nodes in the cluster:
To verify that node3
is reachable over the network from the local node, use the following command:
cluvfy comp nodereach -n node3
This command produces output similar to the following:
Verifying node reachability Checking node reachability... Node reachability check passed from node ”node1” Verification of node reachability was successful.
Use the cluvfy comp ocr
component verification command to check the integrity of Oracle Cluster Registry (OCR) on all the specified nodes.
cluvfy comp ocr [-n node_list] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose]
Table A-17 cluvfy comp ocr Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-method {sudo -user user_name [-location directory_path] | root} |
Specify whether the privilege delegation method is |
-verbose |
CVU prints detailed output. |
This command does not verify the integrity of OCR contents. You must use the OCRCHECK utility to verify the contents of OCR.
Verifying the integrity of OCR on the local node
To verify the integrity of OCR on the local node, run the following command:
cluvfy comp ocr
This command produces output similar to the following:
Verifying OCR integrity Checking OCR integrity... Checking the absence of a non-clustered configurationl... All nodes free of non-clustered, local-only configurations ASM Running check passed. ASM is running on all specified nodes Checking OCR config file ”/etc/oracle/ocr.loc”... OCR config file ”/etc/oracle/ocr.loc” check successful Disk group for ocr location ”+DATA” available on all the nodes NOTE: This check does not verify the integrity of the OCR contents. Execute ’ocrcheck' as a privileged user to verify the contents of OCR. OCR integrity check passed Verification of OCR integrity was successful.
Use the cluvfy comp ohasd
component verification command to check the integrity of the Oracle High Availability Services daemon.
Verifying the integrity of the Oracle High Availability Services daemon on all nodes in the cluster
To verify that the Oracle High Availability Services daemon is operating correctly on all nodes in the cluster, use the following command:
cluvfy comp ohasd -n all -verbose
This command produces output similar to the following:
Verifying OHASD integrity Checking OHASD integrity... ohasd is running on node ”node1” ohasd is running on node ”node2” ohasd is running on node ”node3” ohasd is running on node ”node4” OHASD integrity check passed Verification of OHASD integrity was successful.
Use the cluvfy comp olr
component verification command to check the integrity of Oracle Local Registry (OLR) on the local node.
This command does not verify the integrity of the OLR contents. You must use the ocrcheck -local
command to verify the contents of OCR.
Verifying the integrity of the OLR on a node
To verify the integrity of the OLR on the current node, run the following command:
cluvfy comp olr -verbose
This command produces output similar to the following:
Verifying OLR integrity Checking OLR integrity... Checking OLR config file... OLR config file check successful Checking OLR file attributes... OLR file check successful WARNING: This check does not verify the integrity of the OLR contents. Execute ’ocrcheck -local' as a privileged user to verify the contents of OLR. OLR integrity check passed Verification of OLR integrity was successful.
Use the cluvfy comp peer
component verification command to check the compatibility and properties of the specified nodes against a reference node. You can check compatibility for non-default user group names and for different releases of the Oracle software. This command compares physical attributes, such as memory and swap space, and user and group values, kernel settings, and installed operating system packages.
cluvfy comp peer -n node_list [-refnode node] [-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1}] [-orainv orainventory_group] [-osdba osdba_group] [-verbose]
Table A-20 cluvfy comp peer Command Parameters
Parameter | Description |
---|---|
-refnode |
The node that CVU uses as a reference for checking compatibility with other nodes. If you do not specify this option, then CVU reports values for all the nodes in the node list. |
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1} |
Specifies the software release that CVU checks as required for installation of Oracle Clusterware or Oracle RAC. If you do not specify this option, then CVU assumes Oracle Clusterware 12c or Oracle Database 12c. |
-orainv orainventory_group
|
The name of the Oracle Inventory group. If you do not specify this option, then CVU uses Note: This parameter is not available on Windows systems. |
-osdba osdba_group
|
The name of the OSDBA group. If you do not specify this option, then CVU uses Note: This parameter is not available on Windows systems. |
-verbose |
CVU prints detailed output. |
Peer comparison with the -refnode
option compares the system properties of other nodes against the reference node. If the value of the other node is not greater than the value for that of the reference node, then CVU flags that comparison as a deviation from the reference node. If a group or user exists on neither the reference node nor on the other node, then CVU reports a match to indicate that there is no deviation from the reference node. Similarly, CVU reports as mismatched a comparison with a node that has less total memory than the reference node.
Use the cluvfy comp scan
component verification command to check the Single Client Access Name (SCAN) configuration.
cluvfy comp scan [-verbose]
If you include the -verbose
option, then CVU prints detailed output.
Verifying the SCAN configuration
To verify that the SCAN and SCAN listeners are configured and operational on all nodes in the cluster, use the following command:
cluvfy comp scan
This command produces output similar to the following:
Verifying scan Checking Single Client Access Name (SCAN)... Checking TCP connectivity to SCAN Listeners... TCP connectivity to SCAN Listeners exists on all cluster nodes Checking name resolution setup for ”node1.example.com”... Verification of SCAN VIP and Listener setup passed Verification of scan was successful.
Use the cluvfy comp software
component verification command to check the files and attributes installed with the Oracle software.
cluvfy comp software [-n node_list] [-d oracle_home] [-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1}] [-allfiles] [-verbose]
Table A-21 cluvfy comp software Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-d oracle_home
|
The directory where the Oracle Database software is installed. If you do not specify this option, then the files installed in the Grid home are verified. |
-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1} |
Specifies the software release that CVU checks as required for installation of Oracle Clusterware or Oracle RAC. If you do not specify this option, then CVU assumes Oracle Clusterware 12c or Oracle Database 12c. |
-allfiles |
If you specify this parameter, then CVU checks the attributes of all files of the specified Oracle home. If you do not specify this parmater, then CVU checks the attributes of the |
-verbose |
CVU prints detailed output. |
Verifying the software configuration on all nodes in the cluster for the Oracle Clusterware home directory
To verify that the installed files for Oracle Clusterware 12c are configured correctly, use a command similar to the following:
cluvfy comp software -n all -verbose
This command produces output similar to the following:
Verifying software Check: Software 1021 files verified Software check passed Verification of software was successful.
Use the cluvfy comp space
component verification command to check for free disk space at the location you specify in the -l
option on all the specified nodes.
cluvfy comp space [-n node_list] -l storage_location -z disk_space {B | K | M | G} [-verbose]
Table A-22 cluvfy comp space Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
-l storage_location
|
The directory path to the storage location to check |
-z disk_space {B|K|M|G}
|
The required disk space, in units of bytes (B), kilobytes (K), megabytes (M), or gigabytes (G). There should be no space between the numeric value and the byte indicator, for example, 2G. Use only whole numbers. |
-verbose |
CVU prints detailed output. |
Use the cluvfy comp ssa
component verification command to discover and check the sharing of the specified storage locations. CVU checks sharing for nodes in the node list.
cluvfy comp ssa [-n node_list | -flex -hub hub_list [-leaf leaf_list]] [-s storage_path_list] [-t {software | data | ocr_vdisk}] [-asm] [-asmdev asm_device_list] [-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1}] [-verbose]
Table A-23 cluvfy comp ssa Command Parameters
Parameter | Description |
---|---|
-n node_list | -flex -hub hub_list -leaf leaf_list |
The comma-delimited list of nondomain qualified node names on which to conduct the verification. Optionally, you can check sharing of storage locations on Hub and Leaf Nodes by specifying either If you do not specify any of these options, then CVU checks only the local node. |
-s storage_path_list
|
A comma-delimited list of storage paths, for example, If you do not specify the |
-t {software | data | ocr_vdisk} |
The type of Oracle files (either Oracle Grid Infrastructure binaries or Oracle Database binaries) that will be stored on the storage device. If you do not specify |
-asm |
Specify this parameter to discover all storage suitable for use by Oracle ASM. |
-asmdev asm_device_list
|
A comma-delimited list of Oracle ASM devices for which you want to check sharing of storage locations. If the list contains shell metacharacters, then enclose the list in double quotation marks ( |
-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1} |
Optionally, you can specify the release number of the product for which you are running the verification. If you do not specify |
-verbose |
CVU prints detailed output. |
The current release of cluvfy
has the following limitations on Linux regarding shared storage accessibility check.
Currently NAS storage and OCFS2 (version 1.2.1 or higher) are supported.
See Also:
Oracle Grid Infrastructure Installation Guide for more information about NAS mount optionsWhen checking sharing on NAS, cluvfy
commands require that you have write permission on the specified path. If the cluvfy
user does not have write permission, cluvfy
reports the path as not
shared
.
To perform discovery and shared storage accessibility checks for SCSI disks on Linux systems, CVU requires the CVUQDISK package. If you attempt to use CVU and the CVUQDISK package is not installed on all of the nodes in your Oracle RAC environment, then CVU responds with an error. See "Shared Disk Discovery on Red Hat Linux" for information about how to install the CVUQDISK package.
Example 1: Discovering All of the Available Shared Storage Systems on Your System
To discover all of the shared storage systems available on your system:
cluvfy comp ssa -n all -verbose
Example 2: Using the Oracle ASM Discovery String Check
To verify the Oracle ASM discovery string:
cluvfy comp ssa -n node1,node2 -asm -asmdev "/dev/xda*"
Example 3: Verifying the Accessibility of a Specific Storage Location
You can verify the accessibility of specific storage locations, such as an Oracle ASM disk group called OCR13
, for storing data files for all the cluster nodes by running a command similar to the following:
cluvfy comp ssa -n all -s OCR13
This command produces output similar to the following:
Verifying shared storage acessibility Checking shared storage accessibility... "OCR13" is shared Shared storage check was successful on nodes "node1,node2,node3,node4" Verification of shared storage accessibility was successful.
Use the cluvfy comp sys
component verification command to check that the minimum system requirements are met for the specified product on all the specified nodes.
Table A-24 cluvfy comp sys Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. If you do not specify this option, then CVU checks only the local node. |
|
Specifies whether CVU checks the system requirements for Oracle Clusterware, Oracle Restart (HA), or Oracle RAC. Note: Oracle does not support Oracle Restart for Oracle Database 10g. If you use the |
-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1} |
Specifies the Oracle Database release that CVU checks as required for installation of Oracle Clusterware or Oracle RAC. If you do not specify this option, then CVU assumes Oracle Database 12c. |
-osdba osdba_group
|
The name of the OSDBA group. If you do not specify this option, then CVU uses |
-orainv orainventory_group
|
The name of the Oracle Inventory group. If you do not specify this option, then CVU uses |
-fixup |
Specifies that if the verification fails, then CVU performs fixup operations, if feasible. |
-fixupnoexec |
Specifies that if verification fails, then CVU generates the fixup data and displays the instructions for manual execution of the generated fixups. |
-method {sudo -user user_name [-location directory_path] | root} |
Specify whether the privilege delegation method is |
-verbose |
CVU prints detailed output. |
Use the cluvfy comp vdisk
component verification command to check the voting files configuration and the udev
settings for the voting files on all the specified nodes.
See Also:
Oracle Grid Infrastructure Installation Guide for Linux for more information aboutudev
settingsUse the cluvfy stage -pre acfscfg
command to verify your cluster nodes are set up correctly before configuring Oracle Automatic Storage Management Cluster File System (Oracle ACFS).
Use the cluvfy stage -post acfscfg
to check an existing cluster after you configure Oracle ACFS.
cluvfy stage -pre acfscfg -n node_list [-asmdev asm_device_list] [-verbose] cluvfy stage -post acfscfg -n node_list [-verbose]
Table A-26 cluvfy stage [-pre | -post] acfscfg Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-asmdev asm_device_list
|
The list of devices you plan for Oracle ASM to use. If you do not specify this option, then CVU uses an internal operating system-dependent value, for example, |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -pre cfs
stage verification command to verify your cluster nodes are set up correctly before setting up OCFS2.
Use the cluvfy stage -post cfs
stage verification command to perform the appropriate checks on the specified nodes after setting up OCFS2.
See Also:
Oracle Grid Infrastructure Installation Guide for your platform for a list of supported shared storage typescluvfy stage -pre cfs -n node_list -s storageID_list [-verbose] cluvfy stage -post cfs -n node_list -f file_system [-verbose]
Table A-27 cluvfy stage [-pre | -post] cfs Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-s storageID_list
|
The comma-delimited list of storage locations to check. |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -pre crsinst
command with either the -file
, -n
, -flex
, or -upgrade
parameters to check the specified nodes before installing or upgrading Oracle Clusterware.
Use the cluvfy stage -post crsinst
command to check the specified nodes after installing Oracle Clusterware.
cluvfy stage -pre crsinst -file config_file [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose] cluvfy stage -pre crsinst -n node_list | -flex -hub hub_list [-leaf leaf_list] [-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1}] [-c ocr_location_list] [-q voting_disk_list] [-osdba osdba_group] [-orainv orainventory_group] [-asm [-presence {local | flex} | -asmcredentials client_data_file] [-asmgrp asmadmin_group] [-asmdev asm_device_list]] [-crshome Grid_home] [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-networks network_list] [-dhcp -clustername cluster_name [-dhcpport dhcp_port]] [-verbose] crsinst -upgrade [-rolling] [-src_crshome src_crshome] -dest_crshome dest_crshome -dest_version dest_version [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose] cluvfy stage -post crsinst -n node_list [-method {sudo -user user_name [-location directory_path] | root}] [-verbose]
Table A-28 cluvfy stage [-pre | -post] crsinst Command Parameters
Parameter | Description |
---|---|
-file config_file
|
Specify the root script configuration file containing Oracle installation variables. |
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-flex -hub hub_list [-leaf leaf_list] |
Alternative to the |
-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1} |
Specifies the Oracle Clusterware release that CVU checks as required for installation of Oracle Clusterware. If you do not specify this option, then CVU assumes Oracle Clusterware 12c. |
-c ocr_location_list
|
Specify a comma-delimited list of directory paths for OCR locations or files that CVU checks for availability to all nodes. If you do not specify this option, then the OCR locations are not checked. |
-q voting_disk_list
|
Specify a comma-delimited list of directory paths for voting files that CVU checks for availability to all nodes. If you do not specify this option, then the voting file locations are not checked |
-osdba osdba_group
|
Specify the name of the OSDBA group. If you do not specify this option, then CVU uses |
-orainv orainventory_group
|
Specify the name of the Oracle Inventory group. If you do not specify this option, then CVU uses |
-asm [-presence {local | flex} | -asmcredentials client_data_file] |
This parameter indicates that Oracle ASM is used for storing the Oracle Clusterware files. Specify the Oracle ASM presence, either |
-asmgrp asmadmin_group
|
Specify the name of the OSASM group. If you do not specify this option, then CVU uses the same group as the Oracle Inventory group. |
-asmdev asm_device_list
|
Specify a list of devices you plan for Oracle ASM to use that CVU checks for availability to all nodes. If you do not specify this option, then CVU uses an internal operating system-dependent value. |
-crshome Grid_home
|
Specify the location of the Oracle Grid Infrastructure or Oracle Clusterware home directory. If you specify this option, then the supplied file system location is checked for sufficient free space for an Oracle Clusterware installation. |
-networks [network_list]
|
Checks the network parameters of a slash ("
|
-dhcp -clustername cluster_name [-dhcpport dhcp_port] |
Specify the name of the cluster. Optionally, you can specify the port to which the DHCP packets will be sent. The default value for this port is 67. |
-rolling |
Specify this if the upgrade you want to perform is a rolling upgrade. |
-src_crshome src_crshome
|
Specify the location of the source Grid home. |
-dest_crshome dest_crshome
|
Specify the location of the destination Grid home. |
-dest_version dest_version
|
Specify the version to which you are upgrading, including any patchset, such as 11.2.0.1.0 or 11.2.0.2.0. |
-fixup |
Specifies that if the verification fails, then CVU performs fixup operations, if feasible. |
-fixupnoexec |
Specifies that if verification fails, then CVU generates the fixup data and displays the instructions for manual execution of the generated fixups. |
-method {sudo -user user_name [-location dir_path] | root} |
Specify whether the privilege delegation method is |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -pre dbcfg
command to check the specified nodes before configuring an Oracle RAC database to verify whether your system meets all of the criteria for creating a database or for making a database configuration change.
On Linux and UNIX platforms:
cluvfy stage -pre dbcfg -n node_list -d Oracle_home [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-servicepwd] [-verbose]
On Windows platforms:
cluvfy stage -pre dbcfg -n node_list -d oracle_homew [-fixup] [-fixupnoexec] [-verbose] [-servicepwd]
Table A-29 cluvfy stage -pre dbcfg Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-d Oracle_home
|
The location of the Oracle home directory for the database that is being checked. |
-fixup |
Specifies that if the verification fails, then CVU performs fixup operations, if feasible. |
-fixupnoexec |
Specifies that if verification fails, then CVU generates the fixup data and displays the instructions for manual execution of the generated fixups. |
-method {sudo -user user_name [-location dir_path] | root} |
Specify whether the privilege delegation method is |
-servicepwd |
If you specify this option, then CVU performs checks similar to those performed by the If the service password is not in the wallet or you did not specify the Note: This parameter only applies to Windows. |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -pre dbinst
command to check the specified nodes before installing or creating an Oracle RAC database to verify that your system meets all of the criteria for installing or creating an Oracle RAC database.
On Linux and UNIX platforms:
cluvfy stage -pre dbinst -n <node_list> [-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1}] [-osdba osdba_group] [-osbackup osbackup_group] [-osdg osdg_group] [-oskm oskm_group] [-d oracle_home] [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose] cluvfy stage pre dbinst -upgrade -src_dbhome src_dbhome [-dbname dbname-list] -dest_dbhome dest_dbhome -dest_version dest_version [-fixup] [-fixupnoexec] [-method sudo -user user_name [-location directory_path]
On Windows platforms:
cluvfy stage -pre dbinst -n node_list [-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1}] [-d Oracle_home] [-fixup] [-fixupnoexec] [-serviceuser user_name [-servicepasswd]]] [-verbose] cluvfy stage -pre dbinst -upgrade -src_dbhome src_dbhome [-dbname dbname-list -dest_dbhome dest_dbhome -dest_version dest_version [-fixup] [-fixupnoexec] [-verbose]]
Table A-30 cluvfy stage -pre dbinst Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-r {10.1 | 10.2 | 11.1 | 11.2 | 12.1} |
Specifies the Oracle Database release that CVU checks as required for installation of Oracle RAC. If you do not specify this option, then CVU assumes Oracle Database 12c. |
-osdba osdba_group
|
The name of the OSDBA group. If you do not specify this option, then CVU uses |
-d Oracle_home
|
The location of the Oracle home directory where you are installing Oracle RAC and creating the Oracle RAC database. If you specify this option, then the specified location is checked for sufficient free disk space for a database installation. |
-osbackup osbackup_group
|
Specify the name of the OSBACKUP group. |
-osdg osdg_group
|
Specify the name of the OSDG group. |
-oskm oskm_group
|
Specify the name of the OSKM group. |
-fixup |
Specifies that if the verification fails, then CVU performs fixup operations, if feasible. |
-upgrade |
Specify this parameter to verify upgrade prerequisites. |
-src_dbhome src_dbhome
|
Specify the location of the source database home from which you are upgrading. |
-dbname dbname-list
|
Specify a comma-delimited list of unique names of the databases you want to upgrade. |
-dest_dbhome dest_dbhome |
Specify the location of the destination database home to which you are upgrading. |
-dest_version dest_version
|
Specify the version to which you are upgrading, including any patchset, such as 11.2.0.1.0 or 11.2.0.2.0. |
-fixupnoexec |
Specifies that if verification fails, then CVU generates the fixup data and displays the instructions for manual execution of the generated fixups. |
-method {sudo -user user_name [-location dir_path] | root} |
Specify whether the privilege delegation method is |
[-serviceuser user_name [-servicepwd]]
|
If you specify this option, then CVU checks the following:
Note: The |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -pre hacfg
command to check a local node before configuring Oracle Restart.
Use the cluvfy stage -post hacfg
command to check the local node after configuring Oracle Restart.
cluvfy stage -pre hacfg [-osdba osdba_group] [-orainv orainventory_group] [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose] cluvfy stage -post hacfg [-verbose]
Table A-31 cluvfy stage [-pre | -post] hacfg Command Parameters
Parameter | Description |
---|---|
-osdba osdba_group
|
The name of the OSDBA group. If you do not specify this option, then CVU uses |
-orainv orainventory_group
|
The name of the Oracle Inventory group. If you do not specify this option, then CVU uses |
-fixup |
Specifies that if the verification fails, then CVU performs fixup operations, if feasible. |
-fixupnoexec |
Specifies that if verification fails, then CVU generates the fixup data and displays the instructions for manual execution of the generated fixups. |
-method {sudo -user user_name [-location dir_path] | root} |
Specify whether the privilege delegation method is |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -post hwos
stage verification command to perform network and storage verifications on the specified nodes in the cluster before installing Oracle software. This command also checks for supported storage types and checks each one for sharing.
Table A-32 cluvfy stage -post hwos Command Parameters
Parameter | Description |
---|---|
-n node_list
|
The comma-delimited list of nondomain qualified node names on which to conduct the verification. |
-s storageID_list
|
Checks the comma-delimited list of storage locations for sharing of supported storage types. If you do not provide the |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -pre nodeadd
command to verify the specified nodes are configured correctly before adding them to your existing cluster, and to verify the integrity of the cluster before you add the nodes.
This command verifies that the system configuration, such as the operating system version, software patches, packages, and kernel parameters, for the nodes that you want to add, is compatible with the existing cluster nodes, and that the clusterware is successfully operating on the existing nodes. Run this command on any node of the existing cluster.
Use the cluvfy stage -post nodeadd
command to verify that the specified nodes have been successfully added to the cluster at the network, shared storage, and clusterware levels.
cluvfy stage -pre nodeadd -n node_list [-vip vip_list] | -flex [-hub hub_list [-vip vip_list]] [-leaf leaf_list] [-fixup] [-fixupnoexec] [-method {sudo -user user_name [-location directory_path] | root}] [-verbose] cluvfy stage -post nodeadd -n node_list [-verbose]
Table A-33 cluvfy stage [-pre | -post] nodeadd Command Parameters
Parameter | Description |
---|---|
-n node_list
|
A comma-delimited list of nondomain qualified node names on which to conduct the verification. These are the nodes you are adding or have added to the cluster. |
-vip vip_list
|
A comma-delimited list of virtual IP addresses to be used by the new nodes. |
-flex [-hub hub_list [-vip vip_list]] |
Specify Additionally, you can specify a comma-delimited list of virtual IP addresses that will be applied to the list of Hub Nodes you specify. |
-leaf leaf_list
|
Optionally, you can specify a comma-delimited list of non-domain qualified node names that you want to add to the cluster as Leaf Nodes. |
-fixup |
Specifies that if the verification fails, then CVU performs fixup operations, if feasible. |
-fixupnoexec |
Specifies that if verification fails, then CVU generates the fixup data and displays the instructions for manual execution of the generated fixups. |
-method {sudo -user user_name [-location dir_path] | root} |
Specify whether the privilege delegation method is |
-verbose |
CVU prints detailed output. |
Use the cluvfy stage -post nodedel
command to verify that specific nodes have been successfully deleted from a cluster. Typically, this command verifies that the node-specific interface configuration details have been removed, the nodes are no longer a part of cluster configuration, and proper Oracle ASM cleanup has been performed.
This section describes the following troubleshooting topics for CVU:
CVU generates trace files unless you disable tracing. You can disable tracing by setting the SRVM_TRACE
environment variable to false
or FALSE
. For example, in tcsh
an entry such as setenv SRVM_TRACE FALSE
disables tracing.
The CVU trace files are created in the ORACLE_BASE/crsdata/
host_name
/cvu
directory by default. Oracle Database automatically rotates the log files and the most recently created log file has the name cvutrace.log.0
. You should remove unwanted log files or archive them to reclaim disk place if needed.
Oracle Clusterware stores log files that CVU generates when it runs periodically in the ORACLE_BASE/crsdata/
host_name
/cvu/cvutrc
directory.
To use a non-default location for the trace files, set the CV_TRACELOC
environment variable to the absolute path of the desired trace directory.
This section describes the following known limitations for Cluster Verification Utility (CVU):
The current CVU release supports only Oracle Database 10g or higher, Oracle RAC, and Oracle Clusterware; CVU is not backward compatible. CVU cannot check or verify Oracle Database products for releases before Oracle Database 10g.
The current release of cluvfy
has the following limitations on Linux regarding shared storage accessibility check.
OCFS2 (version 1.2.1 or higher) is supported.
For sharedness checks on NAS, cluvfy
commands require you to have write permission on the specified path. If the user running the cluvfy
command does not have write permission, then cluvfy
reports the path as not
shared
.
To perform discovery and shared storage accessibility checks for SCSI disks on Red Hat Linux 5.0 (or higher) and Oracle Linux 5.0 (or higher), and SUSE Linux Enterprise Server, CVU requires the CVUQDISK package. If you attempt to use CVU and the CVUQDISK package is not installed on all of the nodes in your Oracle RAC environment, then CVU responds with an error.
Perform the following procedure to install the CVUQDISK package:
Login as the root
user.
Copy the package, cvuqdisk-1.0.9-1.rpm
(or higher version) to a local directory. You can find this rpm in the rpm
subdirectory of the top-most directory in the Oracle Clusterware installation media. For example, you can find cvuqdisk-1.0.9-1.rpm
in the directory /
mountpoint
/clusterware/rpm/
where mountpoint
is the mount point for the disk on which the directory is located.
# cp /mount_point/clusterware/rpm/cvuqdisk-1.0.9-1.rpm /u01/oradba
Set the CVUQDISK_GRP
environment variable to the operating system group that should own the CVUQDISK package binaries. If CVUQDISK_GRP
is not set, then, by default, the oinstall
group is the owner's group.
# set CVUQDISK_GRP=oinstall
Determine whether previous versions of the CVUQDISK package are installed by running the command rpm -q cvuqdisk
. If you find previous versions of the CVUQDISK package, then remove them by running the command rpm -e cvuqdisk
previous_version
where previous_version
is the identifier of the previous CVUQDISK version, as shown in the following example:
# rpm -q cvuqdisk cvuqdisk-1.0.2-1 # rpm -e cvuqdisk-1.0.2-1
Install the latest CVUQDISK package by running the command rpm -iv cvuqdisk-1.0.9-1.rpm
.
# cd /u01/oradba # rpm -iv cvuqdisk-1.0.9-1.rpm