【cluvfy】叢集驗證工具cluvfy使用方法——comp

secooler發表於2010-11-23
在《【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部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-680269/,如需轉載,請註明出處,否則將追究法律責任。

相關文章