Oracle Verification Utility 参考

2018-01-24 Oracle 宅必备

这节讲集群中Verification Utility 工具的一些东西


1. 关于Cluster Verification Utility

Cluster Verification Utility是Oracle用来检查集群相关信息的工具

他可以用来检查安装前的环境也可以用来进行安装后的检查

从11.2开始 OUI已经集成了CVU,用来在安装集群软件时检查相关环境


2. CVU使用范围

我们可以使用CVU做如下操作

2.1 System requirements verification

cluvfy comp sys

2.2 Oracle ACFS verification

cluvfy stage [-pre | -post] cfs

2.3 Storage verifications

cluvfy comp cfs

cluvfy comp space

cluvfy comp ssa

cluvfy stage [-pre | -post] acfscfg

2.4 Network verification

cluvfy stage -post hwos

2.5 Connectivity verifications

cluvfy comp nodecon

cluvfy comp nodereach

2.6 Cluster Time Synchronization Services verification

cluvfy comp clocksync

2.7 User and Permissions verification

cluvfy comp admprv

2.8 Node comparison and verification

cluvfy comp peer

2.9 Installation verification

cluvfy stage -pre dbcfg

cluvfy stage -pre dbinst

cluvfy stage [-pre | -post] crsinst

cluvfy stage [-pre | -post] hacfg

cluvfy stage [-pre | -post] nodeadd

2.10 Deletion verification

cluvfy stage -post nodedel

2.11 Cluster Integrity verification

cluvfy comp clu

2.12 Oracle Clusterware and Oracle ASM Component verifications

cluvfy comp acfs

cluvfy comp asm

cluvfy comp clumgr

cluvfy comp crs

cluvfy comp dhcp

cluvfy comp dns

cluvfy comp gns

cluvfy comp gpnp

cluvfy comp ha

cluvfy comp nodeapp

cluvfy comp ocr

cluvfy comp ohasd

cluvfy comp olr

cluvfy comp scan

cluvfy comp software

cluvfy comp vdisk

3. cvu脚本位置

如果我们使用Oracle Universal Installer(OUI)安装clusterware,会自动安装并检查

CVU包含两个脚本:

Oracle建议加上-verbose参数以使输出结果更加具体

我们可以在任何时候使用cvu命令而不影响现有环境


4. CVU 配置文件

可以使用文本工具打开CVU控制文件

文件位置为:Grid_home/cv/admin/cvu_config

修改需遵守一些规则


5. CVU使用权限

大部分命令我们可通过Oracle软件的所有者(grid)完成而不需要root


6.CVU使用帮助

我们可以使用-help参数来查看命令用法,我们可以在各层次使用它

如果我们输入了错误的cvu命令,Orale会提示我们正确的


7.具体命令:

具体命令请参考官方手册,这里不详细介绍

https://docs.oracle.com/cd/B28359_01/rac.111/b28255/cvu.htm#BEHHHICG