使用 Cluster Verification Utility(cluvfy)执行前置/后置检查
OracleRAC 与 Grid命令
# Full check after a Grid installation/change:
cluvfy stage -post crsinst -n all -verbose
# Before adding a node:
cluvfy stage -pre nodeadd -n <new_node> -verbose
# Component checks:
cluvfy comp nodecon -n all -verbose
cluvfy comp clocksync -n all -verbose
cluvfy comp ocr -n all -verbose
cluvfy comp asm -n all -verbose
# Report only failed checks:
cluvfy stage -post crsinst -n all -verbose | grep -iE "failed|warning"作用
在所有节点上验证网络连通性、时钟同步、OCR、ASM、用户等效性和操作系统先决条件;报告问题并给出修复建议。
适用场景
Grid 安装、添加节点和升级前后;作为排查原因不明的集群问题的基线验证。
注意
只读,但会通过 ssh 连接所有节点;grid 用户需要 ssh 等效性。未经审查不要运行 -fixup 脚本(root);它们会修改操作系统参数。