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包含两个脚本:
-
runcluvfy.sh 用于安装Oracle 软件之前
-
cluvfy 位于Grid_home/bin
Oracle建议加上-verbose参数以使输出结果更加具体
我们可以在任何时候使用cvu命令而不影响现有环境
4. CVU 配置文件
可以使用文本工具打开CVU控制文件
文件位置为:Grid_home/cv/admin/cvu_config
修改需遵守一些规则
-
必须使用name=value语法
-
Key值请只定义一次
-
号为注释
-
不符合name=value语法的行会被忽略
5. CVU使用权限
大部分命令我们可通过Oracle软件的所有者(grid)完成而不需要root
6.CVU使用帮助
我们可以使用-help参数来查看命令用法,我们可以在各层次使用它
如果我们输入了错误的cvu命令,Orale会提示我们正确的
-
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.
7.具体命令:
具体命令请参考官方手册,这里不详细介绍
https://docs.oracle.com/cd/B28359_01/rac.111/b28255/cvu.htm#BEHHHICG