ITPub博客

首页 > 数据库 > Oracle > 【cluvfy】集群验证工具cluvfy使用方法——comp

【cluvfy】集群验证工具cluvfy使用方法——comp

原创 Oracle 作者:OCMU联盟 时间:2010-11-23 23:32:23 0 删除 编辑
在《【cluvfy】集群验证工具cluvfy使用方法——stage》(http://space.itpub.net/?uid-519536-action-viewspace-itemid-680244)中已经给出了有关cluvfy工具的stage的使用方法。本文给出该工具的另外一个重要的功能——集群组件的验证comp。使用该功能可以对集群组件的可用性和完整性进行验证。

1.cluvfy工具可验证的组件
可以使用“cluvfy comp -list”命令给出可验证的组件。
RACDB1@rac1 /home/oracle$ 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
        crs       : checks CRS integrity
        nodeapp   : checks node applications existence
        admprv    : checks administrative privileges
        peer      : compares properties with peers

注释如下:
nodereach:检查各节点之间的可访问性;
nodecon:检查节点连接性;
cfs:检查Oracle集群文件系统完整性;
ssa:检查共享存储的可访问性;
space:检查空间可用性;
sys:检查最低系统要求;
clu:检查集群完整性;
clumgr:检查集群管理器完整性;
ocr:检查OCR完整性;
crs:检查CRS完整性;
nodeapp:检查是否存在节点应用程序;
admprv:检查管理权限;
peer:对等对象间的属性比较。

2.具体使用方法
简单罗列一些常用的组件检查命令,供参考。
1)nodereach:检查各节点之间的可访问性
语法:cluvfy comp nodereach -n   [ -srcnode   ]  [-verbose]
“node_list”是逗号分隔的节点列表,如果想列出所有节点也可以使用“all”;
“srcnode”表示发起连接测试请求的源节点,如果不指定,当前节点被指定为源节点。
RACDB1@rac1 /home/oracle$ cluvfy comp nodereach -n all

Verifying node reachability

Checking node reachability...
Node reachability check passed from node "rac1".


Verification of node reachability was successful.

2)nodecon:检查节点连接性
RACDB1@rac1 /home/oracle$ cluvfy comp nodecon -n all -i eth0,eth1

Verifying node connectivity

Checking node connectivity...

Check: Node connectivity for interface "eth0"
Node connectivity check passed for interface "eth0".

Check: Node connectivity for interface "eth1"
Node connectivity check passed for interface "eth1".

Node connectivity check passed.


Verification of node connectivity was successful.

3)clu:检查集群完整性
RACDB1@rac1 /home/oracle$ cluvfy comp clu

Verifying cluster integrity

Checking cluster integrity...


Cluster integrity check passed


Verification of cluster integrity was successful.

4)clumgr:检查集群管理器完整性
RACDB1@rac1 /home/oracle$ cluvfy comp clumgr

Verifying cluster manager integrity

Checking Cluster manager integrity...


Checking CSS daemon...
Daemon status check passed for "CSS daemon".

Cluster manager integrity check passed.

Verification of cluster manager integrity was successful.

5)ocr:检查OCR完整性
RACDB1@rac1 /home/oracle$ cluvfy comp ocr

Verifying OCR integrity

Checking OCR integrity...

Checking the absence of a non-clustered configuration...
All nodes free of non-clustered, local-only configurations.

Uniqueness check for OCR device passed.

Checking the version of OCR...
OCR of correct Version "2" exists.

Checking data integrity of OCR...
Data integrity check for OCR passed.

OCR integrity check passed.

Verification of OCR integrity was successful.

6)crs:检查CRS完整性
RACDB1@rac1 /home/oracle$ cluvfy comp crs

Verifying CRS integrity

Checking CRS integrity...

Checking daemon liveness...
Liveness check passed for "CRS daemon".

Checking daemon liveness...
Liveness check passed for "CSS daemon".

Checking daemon liveness...
Liveness check passed for "EVM daemon".

Checking CRS health...
CRS health check passed.

CRS integrity check passed.

Verification of CRS integrity was successful.

7)nodeapp:检查是否存在节点应用程序
RACDB1@rac1 /home/oracle$ cluvfy comp nodeapp

Verifying node application existence

Checking node application existence...


Checking existence of VIP node application (required)
Check passed.

Checking existence of ONS node application (optional)
Check passed.

Checking existence of GSD node application (optional)
Check passed.


Verification of node application existence was successful.

3.小结
cluvfy作为集群组件的验证工具带给我们很多便利,原本琐碎的验证过程因此工具变得简便迅速。

Good luck.

secooler
10.11.23

-- The End --

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70034820/viewspace-2994119/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
OCM联盟( Oracle Certified Master Union)是由侯圣文(ACE总监)发起的一个公益组织,旨在为每一个OCM大师提供一个可以继续展示自己才华,技术和实力的平台。

注册时间:2007-05-27

  • 博文量
    799
  • 访问量
    8407005