Oracle cluvfy检查工具介绍

来源:互联网 发布:mac服务器域名 编辑:程序博客网 时间:2024/06/15 08:21

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 -helpcluvfy 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 -listUSAGE: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 -listUSAGE: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:创建数据库之前。