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

531968912發表於2017-04-18
cluvfy作為叢集驗證工具在Oracle叢集和RAC安裝和配置的過程中可以起到非常好的輔助作用,簡單看一下這個工具帶給我們的功能。

1.獲取叢集驗證工具cluvfy的幫助資訊
RACDB1@rac1 /home/oracle$ cluvfy -help


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

本文主要介紹一下有關stage型別的驗證方法。

Oracle叢集和RAC安裝過程中每個階段都稱作一個stage,進入每一個stage之前和之後都應該做檢查。在進入特定階段之前應進行一系列的預定義內容的檢查,確保叢集環境已滿足進入下一階段的條件,即所謂的“預檢查”。與之對應的便是“後期檢查”,即在完成某個階段操作後需要執行的一組預定義的檢查動作。

2.獲得stage選項可驗證的資訊
可以使用“cluvfy stage -list”命令獲得可驗證的階段。
RACDB1@rac1 /home/oracle$ cluvfy stage -list


USAGE:
cluvfy stage {-pre|-post} <stage-name> <stage-specific options>  [-verbose]

Valid stage options and stage names are:
        -post hwos    :  post-check for hardware and operating system
        -pre  cfs     :  pre-check for CFS setup
        -post cfs     :  post-check for CFS setup
        -pre  crsinst :  pre-check for CRS installation
        -post crsinst :  post-check for CRS installation
        -pre  dbinst  :  pre-check for database installation
        -pre  dbcfg   :  pre-check for database configuration

簡單的註釋:
-post hwos:對硬體和作業系統進行後期檢查;
-pre cfs:對CFS設定進行預檢;
-post cfs:對CFS設定進行後期檢查;
-pre crsinst:對CRS安裝進行預檢查;
-post crsinst:對CRS安裝進行後期檢查;
-pre dbinst:對資料庫安裝進行預檢查;
-pre dbcfg:對資料庫配置進行預檢查。

3.給出具體的使用方法
1)對rac1和rac2兩個節點做硬體和作業系統的後期檢查
RACDB1@rac1 /home/oracle$ cluvfy stage -post hwos -n rac1,rac2

Performing post-checks for hardware and operating system setup

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


Checking user equivalence...
User equivalence check passed for user "oracle".

Checking node connectivity...

Node connectivity check passed for subnet "192.168.1.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.3.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.2.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.247.0" with node(s) rac2,rac1.

Suitable interfaces for the private interconnect on subnet "192.168.1.0":
rac2 eth0:192.168.1.101
rac1 eth0:192.168.1.100

Suitable interfaces for the private interconnect on subnet "192.168.3.0":
rac2 eth0:192.168.3.101
rac1 eth0:192.168.3.100

Suitable interfaces for the private interconnect on subnet "192.168.2.0":
rac2 eth1:192.168.2.101
rac1 eth1:192.168.2.100

Suitable interfaces for the private interconnect on subnet "192.168.247.0":
rac2 eth2:192.168.247.222
rac1 eth2:192.168.247.111

ERROR:
Could not find a suitable set of interfaces for VIPs.

Node connectivity check failed.


Checking shared storage accessibility...

WARNING:
Package cvuqdisk not installed.
        rac2,rac1


Shared storage check failed on nodes "rac2,rac1".

Post-check for hardware and operating system setup was unsuccessful on all the nodes.

2)對rac1和rac2兩個節點做CRS安裝的預檢查
RACDB1@rac1 /home/oracle$ cluvfy stage -pre crsinst -n rac1,rac2

Performing pre-checks for cluster services setup

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


Checking user equivalence...
User equivalence check passed for user "oracle".

Checking administrative privileges...
User existence check passed for "oracle".
Group existence check passed for "oinstall".
Membership check for user "oracle" in group "oinstall" [as Primary] passed.

Administrative privileges check passed.

Checking node connectivity...

Node connectivity check passed for subnet "192.168.1.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.3.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.2.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.247.0" with node(s) rac2,rac1.

Suitable interfaces for the private interconnect on subnet "192.168.1.0":
rac2 eth0:192.168.1.101
rac1 eth0:192.168.1.100

Suitable interfaces for the private interconnect on subnet "192.168.3.0":
rac2 eth0:192.168.3.101
rac1 eth0:192.168.3.100

Suitable interfaces for the private interconnect on subnet "192.168.2.0":
rac2 eth1:192.168.2.101
rac1 eth1:192.168.2.100

Suitable interfaces for the private interconnect on subnet "192.168.247.0":
rac2 eth2:192.168.247.222
rac1 eth2:192.168.247.111

ERROR:
Could not find a suitable set of interfaces for VIPs.

Node connectivity check failed.


Checking system requirements for 'crs'...
No checks registered for this product.

Pre-check for cluster services setup was unsuccessful on all the nodes.

3)對rac1和rac2兩個節點做CRS安裝的後期檢查
RACDB1@rac1 /home/oracle$ cluvfy stage -post crsinst -n rac1,rac2

Performing post-checks for cluster services setup

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


Checking user equivalence...
User equivalence check passed for user "oracle".

Checking Cluster manager integrity...


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

Cluster manager integrity check passed.

Checking cluster integrity...


Cluster integrity check passed


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.

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.

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.


Post-check for cluster services setup was successful.

4)對rac1和rac2兩個節點做資料庫安裝的預檢查
RACDB1@rac1 /home/oracle$ cluvfy stage -pre dbinst -n rac1,rac2

Performing pre-checks for database installation

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


Checking user equivalence...
User equivalence check passed for user "oracle".

Checking administrative privileges...
User existence check passed for "oracle".
Group existence check passed for "oinstall".
Membership check for user "oracle" in group "oinstall" [as Primary] passed.
Group existence check passed for "dba".
Membership check for user "oracle" in group "dba" passed.

Administrative privileges check passed.

Checking node connectivity...

Node connectivity check passed for subnet "192.168.1.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.3.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.2.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.247.0" with node(s) rac2,rac1.

Suitable interfaces for the private interconnect on subnet "192.168.1.0":
rac2 eth0:192.168.1.101
rac1 eth0:192.168.1.100

Suitable interfaces for the private interconnect on subnet "192.168.3.0":
rac2 eth0:192.168.3.101
rac1 eth0:192.168.3.100

Suitable interfaces for the private interconnect on subnet "192.168.2.0":
rac2 eth1:192.168.2.101
rac1 eth1:192.168.2.100

Suitable interfaces for the private interconnect on subnet "192.168.247.0":
rac2 eth2:192.168.247.222
rac1 eth2:192.168.247.111

ERROR:
Could not find a suitable set of interfaces for VIPs.

Node connectivity check failed.


Checking system requirements for 'database'...
No checks registered for this product.

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.

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.


Pre-check for database installation was unsuccessful on all the nodes.

5)對rac1和rac2兩個節點做資料庫安裝的後期檢查
RACDB1@rac1 /home/oracle$ cluvfy stage -pre dbcfg -n rac1,rac2 -d $ORACLE_HOME

Performing pre-checks for database configuration

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


Checking user equivalence...
User equivalence check passed for user "oracle".

Checking administrative privileges...
User existence check passed for "oracle".
Group existence check passed for "oinstall".
Membership check for user "oracle" in group "oinstall" [as Primary] passed.
Group existence check passed for "dba".
Membership check for user "oracle" in group "dba" passed.

Administrative privileges check passed.

Checking node connectivity...

Node connectivity check passed for subnet "192.168.1.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.3.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.2.0" with node(s) rac2,rac1.
Node connectivity check passed for subnet "192.168.247.0" with node(s) rac2,rac1.

Suitable interfaces for the private interconnect on subnet "192.168.1.0":
rac2 eth0:192.168.1.101
rac1 eth0:192.168.1.100

Suitable interfaces for the private interconnect on subnet "192.168.3.0":
rac2 eth0:192.168.3.101
rac1 eth0:192.168.3.100

Suitable interfaces for the private interconnect on subnet "192.168.2.0":
rac2 eth1:192.168.2.101
rac1 eth1:192.168.2.100

Suitable interfaces for the private interconnect on subnet "192.168.247.0":
rac2 eth2:192.168.247.222
rac1 eth2:192.168.247.111

ERROR:
Could not find a suitable set of interfaces for VIPs.

Node connectivity check failed.


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.

Pre-check for database configuration was unsuccessful on all the nodes.

4.小結
cluvfy工具的stage選項所檢驗的階段涵蓋了Oracle叢集和RAC安裝的每一個重要的步驟,建議在每一步驟完成之前和之後都應該使用cluvfy工具進行驗證。

Good luck.

secooler
10.11.22

-- The End --

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25462274/viewspace-2137500/,如需轉載,請註明出處,否則將追究法律責任。

相關文章