Oracle10g R2新增工具:CVU
2024-08-29 13:40:37
供稿:網友
 
             
  Oracle10gR2新增了一個工具-Cluster Verification Utiltiy (cluvfy),用以在部署RAC環境的不同階段進行環境及所有重要組件的檢查。
  
  這個工具隨Oracle10gR2發布,但是也可以被用于Oracle10gR1。
  
                                                                                              CVU所檢查的范圍非常廣泛,涉及從初始的硬件安裝到安裝完成以及所有中間階段的組建安裝及配置。
  
  但是cluvfy只對安裝階段及組件進行檢查驗證,不涉及調整、監控已經Cluster內在狀況檢查。
  
  直接鍵入cluvfy可以獲得提示輸出:
  
  [oracle@raclinux1 bin]$ cluvfy
  
  USAGE:
  cluvfy [ -help ]
  cluvfy stage { -list  -help }
  cluvfy stage {-PRe-post}  [-verbose]
  cluvfy comp { -list  -help }
  cluvfy comp   [-verbose]
  
  使用stage選項可以對不同安裝階段進行環境及pre、post檢查:
  [oracle@raclinux1 bin]$ cluvfy stage -list
  
  USAGE:
  cluvfy stage {-pre-post}  [-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
  
  
  使用comp選項進行組件檢查:
  [oracle@raclinux1 bin]$ 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
  
  使用cluvfy進行crsinst post安裝檢查:
  [oracle@raclinux1 bin]$ cluvfy stage -post crsinst -n raclinux1
  
  Performing post-checks for cluster services setup
  
  Checking node reachability...
  Node reachability check passed from node "raclinux1".
  
  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.
  
  檢查crs組件安裝:
  [oracle@raclinux1 bin]$ 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.