首页 > 数据库 > Oracle > RAC cluvfy工具应用
$cluvfy -help
USAGE:
cluvfy [-help|-version]
cluvfy stage {-list|-help}
cluvfy stage {-pre|-post} <stage-name> <stage-specific options> [-verbose]
cluvfy comp {-list|-help}
cluvfy comp <component-name> <component-specific options> [-verbose]
一. stage
Oracle RAC安装过程中,每一阶段之前和之后的检查。
$cluvfy stage -list
USAGE:
cluvfy stage {-pre|-post} <stage-name> <stage-specific options> [-verbose]
Valid Stages are:
-pre cfs : pre-check for CFS setup
-pre crsinst : pre-check for CRS installation
-pre acfscfg : pre-check for ACFS Configuration.
-pre dbinst : pre-check for database installation
-pre dbcfg : pre-check for database configuration
-pre hacfg : pre-check for HA configuration
-pre nodeadd : pre-check for node addition.
-pre appcluster : pre-check for Oracle Clusterware Application Cluster Installation
-post hwos : post-check for hardware and operating system
-post cfs : post-check for CFS setup
-post crsinst : post-check for CRS installation
-post acfscfg : post-check for ACFS Configuration.
-post hacfg : post-check for HA configuration
-post nodeadd : post-check for node addition.
-post nodedel : post-check for node deletion.
-post appcluster : post-check for Oracle Clusterware Application Cluster Installation
-post hwos:对硬件和操作系统进行后期检查;
-pre cfs:对CFS设置进行预检;
-post cfs:对CFS设置进行后期检查;
-pre crsinst:对CRS安装进行预检查;
-post crsinst:对CRS安装进行后期检查;
-pre dbinst:对数据库安装进行预检查;
-pre dbcfg:对数据库配置进行预检查。
例如对两个节点硬件和操作系统进行后检查
$cluvfy stage -post hwos -n rac1,rac2 Verifying Node Connectivity ... Verifying Hosts File ...PASSED Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED Verifying subnet mask consistency for subnet "109.115.12.0" ...PASSED Verifying subnet mask consistency for subnet "192.168.11.0" ...PASSED Verifying Node Connectivity ...PASSED Verifying Multicast check ...PASSED Verifying ASM Integrity ... Verifying Node Connectivity ... Verifying Hosts File ...PASSED Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED Verifying subnet mask consistency for subnet "109.115.12.0" ...PASSED Verifying subnet mask consistency for subnet "192.168.11.0" ...PASSED Verifying Node Connectivity ...PASSED Verifying ASM Integrity ...PASSED Verifying Users With Same UID: 0 ...PASSED Verifying Time zone consistency ...PASSED Verifying Shared Storage Discovery ... ASM Disk Group Sharing Nodes (2 in count) ------------------------------------ ------------------------ DGRECOVER rac1 rac2 ASM Disk Group Sharing Nodes (2 in count) ------------------------------------ ------------------------ DGGRID1 rac1 rac2 ASM Disk Group Sharing Nodes (2 in count) ------------------------------------ ------------------------ DGGRID2 rac1 rac2 ASM Disk Group Sharing Nodes (2 in count) ------------------------------------ ------------------------ DGDATA1 rac1 rac2 ASM Disk Group Sharing Nodes (2 in count) ------------------------------------ ------------------------ DGDATA2 rac1 rac2 ASM Disk Group Sharing Nodes (2 in count) ------------------------------------ ------------------------ DGSYSTEM rac1 rac2 Verifying Shared Storage Discovery ...PASSED Verifying DNS/NIS name service ...PASSED Post-check for hardware and operating system setup was successful. CVU operation performed: stage -post hwos Date: Jun 13, 2020 3:54:04 PM CVU home: /oracle/app/12.2.0.1/grid/ User: grid
对rac1和rac2两个节点做CRS安装的后期检查
$cluvfy stage -post crsinst -n rac1,rac2 Verifying Node Connectivity ... Verifying Hosts File ...PASSED Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED Verifying subnet mask consistency for subnet "109.115.12.0" ...PASSED Verifying subnet mask consistency for subnet "192.168.11.0" ...PASSED Verifying Node Connectivity ...PASSED Verifying Multicast check ...PASSED Verifying ASM filter driver configuration consistency ...PASSED Verifying Time zone consistency ...PASSED Verifying Cluster Manager Integrity ...PASSED Verifying User Mask ...PASSED Verifying Cluster Integrity ...PASSED Verifying OCR Integrity ...PASSED Verifying CRS Integrity ... Verifying Clusterware Version Consistency ...PASSED Verifying CRS Integrity ...PASSED Verifying Node Application Existence ...PASSED Verifying Single Client Access Name (SCAN) ... Verifying DNS/NIS name service 'rac-scan' ... Verifying Name Service Switch Configuration File Integrity ...PASSED Verifying DNS/NIS name service 'rac-scan' ...FAILED (PRVG-1101) Verifying Single Client Access Name (SCAN) ...FAILED (PRVG-1101) Verifying OLR Integrity ...PASSED Verifying Voting Disk ...PASSED Verifying ASM Integrity ... Verifying Node Connectivity ... Verifying Hosts File ...PASSED Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED Verifying subnet mask consistency for subnet "109.115.12.0" ...PASSED Verifying subnet mask consistency for subnet "192.168.11.0" ...PASSED Verifying Node Connectivity ...PASSED Verifying ASM Integrity ...PASSED Verifying Device Checks for ASM ... Verifying Access Control List check ...PASSED Verifying Device Checks for ASM ...PASSED Verifying ASM disk group free space ...PASSED Verifying I/O scheduler ... Verifying Package: cvuqdisk-1.0.10-1 ...PASSED Verifying I/O scheduler ...PASSED Verifying User Not In Group "root": grid ...PASSED Verifying Clock Synchronization ...PASSED Verifying VIP Subnet configuration check ...PASSED Verifying Network configuration consistency checks ...PASSED Verifying File system mount options for path GI_HOME ...PASSED Post-check for cluster services setup was unsuccessful. Checks did not pass for the following nodes: rac2,rac1 Failures were encountered during execution of CVU verification request "stage -post crsinst". Verifying Single Client Access Name (SCAN) ...FAILED Verifying DNS/NIS name service 'rac-scan' ...FAILED PRVG-1101 : SCAN name "rac-scan" failed to resolve CVU operation performed: stage -post crsinst Date: Jun 13, 2020 4:01:43 PM CVU home: /oracle/app/12.2.0.1/grid/ User: grid
二. comp
验证集群组件的可用性、完整性、稳定性
$cluvfy comp -list USAGE: cluvfy comp <component-name> <component-specific options> [-verbose] Valid Components are: nodereach : checks reachability between nodes nodecon : checks node connectivity 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 : checks SCAN configuration ohasd : checks OHASD integrity clocksync : checks Clock Synchronization vdisk : checks Voting Disk configuration and UDEV settings healthcheck : checks mandatory requirements and/or best practice recommendations dhcp : checks DHCP configuration dns : checks DNS configuration baseline : collect and compare baselines
nodereach : 检查各节点间的可访问性
nodecon : 检查节点的连接性
cfs : 检查 CFS 完整性
ssa : 检查共享存储的可访问性
space : 检查空间可用性
sys : 检查最小系统要求
clu : 检查集群完整性
clumgr : 检查集群管理器完整性
ocr : 检查 OCR 完整性
olr : 检查 OLR 完整性
ha : 检查 HA 完整性
crs : 检查 CRS 完整性
nodeapp : 检查节点应用程序是否存在
admprv : 检查管理权限
peer : 与对等端比较属性
software : 检查软件分发
asm : 检查 ASM 完整性
acfs : 检查 ACFS 完整性
gpnp : 检查 GPnP 完整性
gns : 检查 GNS 完整性
scan : 检查 SCAN 配置
ohasd : 检查 OHASD 完整性
clocksync : 检查时钟同步
vdisk : 检查表决磁盘 Udev 设置
例如验证 OCR 完整性
$cluvfy comp ocr -n all -verbose Verifying OCR Integrity ...PASSED Verification of OCR integrity was successful. CVU operation performed: OCR integrity Date: Jun 13, 2020 4:30:23 PM CVU home: /oracle/app/12.2.0.1/grid/ User: grid
验证 CRS 完整性
$cluvfy comp crs -n all -verbose Verifying CRS Integrity ... Verifying Clusterware Version Consistency ...PASSED Verifying CRS Integrity ...PASSED Verification of CRS integrity was successful. CVU operation performed: CRS integrity Date: Jun 13, 2020 4:31:59 PM CVU home: /oracle/app/12.2.0.1/grid/ User: grid
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15412087/viewspace-2698170/ ,如需转载,请注明出处,否则将追究法律责任。