【RAC工具】cluvfy
一、CVU介绍
Cluster Verification Utilit(CVU)是Oracle所推荐的一种集群检验工具,CVU可以验证在主群集组件在运作阶段或时期。组件可以是基本的,如免费的磁盘空间,或者也可以是复杂的,如检查Oracle集群完整性。例如,CVU跨Oracle集群层,可以验证多个Oracle集群子。此外,CVU可以检查磁盘空间,内存,进程,和其他重要的群集组件。Stage检测,例如,数据库的安装,CVU可以验证您的系统是否符合标准为Oracle真正应用集群(Oracle RAC)的安装。其他阶段,包括硬件初始化的设置和建立的系统要求,通过全面运行群集设置。
二、CVU特点
1、CVU使用户可以在硬件的设置、clusterware的安装、数据库软件的安装、增加节点等各个阶段来检查cluster.
2、具有可扩展的结构(平台独立,包含对存储和网络设备等的检查)
3、CVU是没有损害的检查
4、命令行方式
5、即使检查失败也不会做任何修正
6、CVU不涉及任何性能调整和监控
7、不做任何cluster或RAC方面的操作(例如,不会去起动或关闭CRS)
8、不去检查cluster database或cluster的内在关系(如CRS与database的关系等)
三、CVU命令用法
主要用法:
阶段检查(Stage Verification)
10g RAC的部署(安装)可以逻辑性的分为几个部分,每个部分就叫做一个‘阶段’。
例如:硬件和操作系统的建立、CFS的建立、CRS软件的安装、数据库软件的安装、数据库的配置等
每个阶段又包含一系列的操作并且分为安装前和安装后检查等两种方式.
部件检查(Component Verification)
检查cluster部件的可用性、完整性、健康性
例如:共享存储设备的可用性、空间可用性、节点通达性、CFS的完整性、Cluster的完整性、CRS的完整性等
1、stage
cluvfy stage -list
USAGE:
cluvfy stage {-pre|-post} [-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.
-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 hwos:硬件和操作系统安装后的检查
-pre cfs: CFS建立之前的检查
-post cfs: CFS建立之后的检查
-pre crsinst: CRS安装之前的检查
-post crsinst: CRS安装之后的检查
-pre dbinst:数据库软件安装之前的检查
-pre dbcfg:数据库配置之前的检查
2、component
cluvfy comp -list
USAGE:
cluvfy comp [-verbose]
Valid Components are:
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
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
dhcp : Checks DHCP configuration
dns : Checks DNS configuration
有效的部件名称如下:
nodereach:检查节点之间的通达性
nodecon:检查节点之间的的连通性
cfs:检查CFS的完整性
ssa:检查共享存储的可访问性
space :检查空间的可用性
sys :检查最小的系统需求
clu:检查cluster的完整性
clumgr:检查cluster manager的完整性
ocr:检查OCR的完整性
crs:检查CRS的完整性
nodeapp:检查nodeapp是否存在
admprv:检查管理权限
peer :比较同等属性(即节点差异)
3经常使用的命令:
Verify the hardware and operating system:检验操作系统和硬件的配置
cluvfy stage -post hwos -n rac1,rac2
Cluster Installation Ready check on all nodes:安装Clusterware前执行以下命令
cluvfy stage -pre crsinst -n rac1,rac2
Database Installation Ready check on all nodes:安装RDBMS前执行以下命令
cluvfy stage -pre dbinst -n rac1,rac2
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15747463/viewspace-773281/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15747463/viewspace-773281/