cluvfy(Cluster Verify),简称CVU,是随Oracle集群管理软件一起发布的检查工具。它的功能是整个集群系统实施过程的各个阶段以及各个组件进行检查,并验证是否满足Oracle的要求
一、命令列表
- cluvfy stage {-list|-help}
列出所有参数 - cluvfy stage {-pre|-post} <stage-name> <stage-specific options> [-verbose]
- -pre cfs:对CFS设置进行预检;
- -pre crsinst:对CRS安装进行预检查;
- -pre acfscfg:对ACFS设置进行预检查;
- -pre dbinst:对数据库安装进行预检查;
- -pre dbcfg:对数据库配置进行预检查;
- -pre hacfg:对数据库的HA配置进行预检查;
- -pre nodeadd:为添加节点进行预检查;
- -post hwos:对硬件和操作系统进行后期检查;
- -post cfs:对CFS设置进行后期检查;
- -post crsinst:对CRS安装进行后期检查;
- -post acfscfg:对ACFS设置进行后期检查;
- -post hacfg:对数据库的HA配置进行后期检查;
- -post nodeadd:添加节点进行后期检查;
- -post nodedel:对接点删除进行后期检查;
- -n:表示需要检查的节点列表。
- -r:表示需要安装的软件版本
- -verbose:表示列出检查内容的详细信息
- -fixup:修复
- cluvfy comp {-list|-help}
- cluvfy comp <component-name> <component-specific options> [-verbose]
- nodereach:checks reachability between nodes
- nodecon:checks node connectivity
- cfs:checks CFS integrity
- ssa:checks shared storage accessibility
- space:checks space availability
- sys:checks minimum system requirements
- clu:checks cluster integrity
- clumgr:checks cluster manager integrity
- ocr:checks OCR integrity
- olr:checks OLR integrity
- ha:checks HA integrity
- freespace:checks free space in CRS Home
- crs:checks CRS integrity
- nodeapp:checks node applications existence
- admprv:checks administrative privileges
- peer:compares properties with peers
- software:checks software distribution
- acfs:checks ACFS integrity
- asm:checks ASM integrity
- gpnp:checks GPnP integrity
- gns:checks GNS integrity
- scan:检查 SCAN 配置
- ohasd:checks OHASD integrity
- clocksync:检查时钟同步
- vdisk:checks Voting Disk configuration and UDEV settings
- healthcheck:checks mandatory requirements and/or best practice recommendations
- dhcp:检查 DHCP 配置
- dns:检查 DNS 配置
- baseline:collect and compare baselines
二、例子
crs预安装检查
WTCCN-BJ-ECDB1[oracle]/home/oracle> cluvfy stage -pre crsinst -n WTCCN-BJ-ECDB1,WTCCN-BJ-ECDB2 -fixup -verbose
Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "wtccn-bj-ecdb1"
Destination Node Reachable?
------------------------------------ ------------------------
wtccn-bj-ecdb1 yes
wtccn-bj-ecdb2 yes
Result: Node reachability check passed from node "wtccn-bj-ecdb1"
Checking user equivalence...
Check: User equivalence for user "oracle"
Node Name Status
------------------------------------ ------------------------
wtccn-bj-ecdb2 passed
wtccn-bj-ecdb1 passed
Result: User equivalence check passed for user "oracle"
Checking node connectivity...
Checking hosts config file...
Node Name Status
------------------------------------ ------------------------
wtccn-bj-ecdb2 passed
wtccn-bj-ecdb1 passed
Verification of the hosts config file successful
... ...