Oracle cluvfy检查工具介绍

cluvfy ( Cluster Verify), 简称cvu , 是随Oracle 集群管理软件一起发布的检查工具。
它的功能是对整个集群系统实施过程的各个阶段以及各个组件进行检查, 并验证是否满足Oracle的要求。cluvfy 能对集群提供非常广泛的检查, 包括: OS 硬件配置、内核参数设置、用户资源限制设置、网络设置、NTP 设置、RAC 组件健康性等。
cluvfy 在进行检查时并不会修改系统配置, 所以不会对系统造成影响。
cluvfy 已经和RAC 的很多配置工具集成在了一起, 例如:our 在安装GI 时的步骤14(运行安装前的prerequest 检查)就会调用cluvfy 进行安装集群之前的检查。而在GI 安装的最后一步, 也会调用cluvfy 进行集群安装后的检查。cluvfy 检查的内容可以从两个角度进行分类:阶段(stage )、组件(component) 。

[grid@node1.localdomain$]cluvfy -help
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]
[grid@node1.localdomain$]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.
      -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.

Oracle RAC是由很多组件组成的,如果用户希望对集群的某一个或几个组件进行健康检
查,就可以使用组件检查。组件检查使cluvfy的功能变得更加完整和灵活。

[grid@node1.localdomain$]cluvfy comp -list

USAGE:
cluvfy 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

OCR检查,需要root用户执行:

grid@node1.localdomain$]ocrcheck -help 
Name:
        ocrcheck - Displays health of Oracle Cluster/Local Registry.

Synopsis:
        ocrcheck [-config] [-local]

  -config       Displays the configured locations of the Oracle Cluster Registry.
                This can be used with the -local option to display the configured
                location of the Oracle Local Registry
  -local        The operation will be performed on the Oracle Local Registry.

Notes:
        A log file will be created in
        $ORACLE_HOME/log/<hostname>/client/ocrcheck_<pid>.log.
        File creation privileges in the above directory are needed
        when running this tool.

作者建议对部署Oracle RAC过程中的以下阶段进行cluv市验证:
1. pre crsinst :安装集群管理软件(GI)之前。
2. post crsinst:安装集群管理软件之后。
3. pre dbinst:安装数据库软件之前。
4. pre dbcfg:创建数据库之前。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值