标签:
众所周知,在部署Grid Infrastructure的过程中使用,runcluvfy.sh脚本被用于验证系统的软硬件环境是否满足软件安装的需求。过去一直沿用现成方法进行该项工作,很少去探究其中的含义,百度搜索也鲜见全面介绍,通过借鉴整合,故形成以下记录,用以备忘。
一、什么是CVU
CVU是Cluster Verify Utility的缩写。为了避免Grid Infrastructure安装过程中的错误,Oracle 提供了一个校验工具,即CVU。该工具的主要功能是检查系统的硬件和软件环境是否满足安装的要求。
CVU工具包括两个脚本:runcluvfy.sh和cluvfy 。runcluvfy.sh脚本位于Grid Infrastructure的安装介质中,它的功能是在安装Grid Infrastructure之前对系统进行校验。而cluvfy位于Grid Infrastructure软件的HOME目录下的bin目录中,它的功能是在安装Oracle 数据库软件或者创建集群数据库之前,对系统进行校验。
本文主要介绍runcluvfy.sh脚本的使用方法。
二、脚本的常见使用形式
./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose
./runcluvfy.sh stage -pre crsinst -n node1,node2 -fixup -verbose
语法说明:
-pre: 该选项主要检查是否满足安装的需要。
-post:该选择主要检查安装后组件是否正常。
-n:该选项用于指定节点列表。
-verbose:该选项用于输出详细的验证信息。
-fixup:这是Oracle 11gR2中新增加的一个参数。利用这个参数,可以产生一个名为runfixup.sh的脚本。
runfixup.sh脚本中包含一系列的操作系统命令,利用这个脚本可以对操作系统进行一定的修改,使其满足安装条件。完成系统进行校验之后,以root用户的身份执行脚本runfixup.sh,就可以解决操作系统中一些尚不满足安装条件的情况。
三、如何获取帮助信息
runcluvfy.sh这个脚本涉及的参数及含义众多,如果能利用脚本提供的帮助信息绝对是非常有益的。对于如何获取帮助信息这个问题,我之前也十分困惑,对如何选择和使用一个参数常常不得要领。后来发现可以采取分而治之的办法,一步一步来,脉络就变得清晰很多。
./runcluvfy.sh -help
USAGE:
runcluvfy.sh [-help|-version]
runcluvfy.sh stage {-list|-help}
runcluvfy.sh stage {-pre|-post} <stage-name> <stage-specific options> [-verbose]
runcluvfy.sh comp {-list|-help}
runcluvfy.sh comp <component-name> <component-specific options> [-verbose]
通过上面的输出可以看到,runcluvfy.sh有两个主要的选项:stage和comp。更进一步地,通过list选项能获取更多的内容:
./runcluvfy.sh stage -list
USAGE:
runcluvfy.sh 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.
-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.
同样地:
./runcluvfy.sh comp -list
USAGE:
runcluvfy.sh comp <component-name> <component-specific options> [-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
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
标签:
原文地址:http://www.cnblogs.com/magnes/p/5612281.html