oracle数据库sh身份,[数据库]关于runcluvfy.sh的使用说明

[数据库]关于runcluvfy.sh的使用说明

0 2016-06-23 23:00:08

众所周知,在部署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 -helpUSAGE:runcluvfy.sh [-help|-version]runcluvfy.sh stage {-list|-help}runcluvfy.sh stage {-pre|-post} [-verbose]runcluvfy.sh comp {-list|-help}runcluvfy.sh comp [-verbose]

通过上面的输出可以看到,runcluvfy.sh有两个主要的选项:stage和comp。更进一步地,通过list选项能获取更多的内容:./runcluvfy.sh stage -listUSAGE:runcluvfy.sh 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.

同样地:./runcluvfy.sh comp -listUSAGE:runcluvfy.sh 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 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.shaoqun.com/a/233940.html

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:admin@shaoqun.com。

0

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值