使用Cluster Verify Utility校验RAC环境

来源:互联网 发布:淘宝开店的保证金 编辑:程序博客网 时间:2024/06/05 00:24

The Cluster Verification Utility (CVU) is a utility distributed with Oracle Grid Infrastructure / Oracle Clusterware. It was developed to assist in the installation and configuration of Oracle Clusterware as well as Oracle Real Application Clusters (RAC). CVU checks range from initial hardware setup tests through entire cluster checks for Oracle RAC deployments. CVU covers all intermediate stages during the installation and configuration of a complete Oracle RAC stack. 


[oracle@racnode2 ~]$ cluvfy stage -helpUSAGE:cluvfy stage {-pre|-post} <stage-name> <stage-specific options>  [-verbose]SYNTAX (for Stages):cluvfy stage -post hwos -n <node_list>  [ -s <storageID_list>  ]  [-verbose]cluvfy stage -pre cfs -n <node_list> -s <storageID_list>  [-verbose]cluvfy stage -post cfs -n <node_list>  -f <file_system>   [-verbose]cluvfy stage -pre crsinst -n <node_list>   [-r { 10gR1 | 10gR2 } ]  [ -c <ocr_location> ]  [ -q <voting_disk> ]  [ -osdba <osdba_group> ]  [ -orainv <orainventory_group> ]  [-verbose]cluvfy stage -post crsinst -n <node_list>  [-verbose]cluvfy stage -pre dbinst -n <node_list>   [-r { 10gR1 | 10gR2 } ] [ -osdba <osdba_group> ]  [-verbose]cluvfy stage -pre dbcfg -n <node_list>  -d <oracle_home>  [-verbose][oracle@racnode2 ~]$ cluvfy stage -listUSAGE: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[oracle@racnode2 ~]$ [oracle@racnode2 ~]$ cluvfy stage -helpUSAGE:cluvfy stage {-pre|-post} <stage-name> <stage-specific options>  [-verbose]SYNTAX (for Stages):cluvfy stage -post hwos -n <node_list>  [ -s <storageID_list>  ]  [-verbose]cluvfy stage -pre cfs -n <node_list> -s <storageID_list>  [-verbose]cluvfy stage -post cfs -n <node_list>  -f <file_system>   [-verbose]cluvfy stage -pre crsinst -n <node_list>   [-r { 10gR1 | 10gR2 } ]  [ -c <ocr_location> ]  [ -q <voting_disk> ]  [ -osdba <osdba_group> ]  [ -orainv <orainventory_group> ]  [-verbose]cluvfy stage -post crsinst -n <node_list>  [-verbose]cluvfy stage -pre dbinst -n <node_list>   [-r { 10gR1 | 10gR2 } ] [ -osdba <osdba_group> ]  [-verbose]cluvfy stage -pre dbcfg -n <node_list>  -d <oracle_home>  [-verbose][oracle@racnode2 ~]$ [oracle@racnode2 ~]$ cluvfy -helpUSAGE: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][oracle@racnode2 ~]$ [oracle@racnode2 ~]$ cluvfy comp -listUSAGE:cluvfy comp  <component-name> <component-specific options>  [-verbose]Valid components are:nodereach : checks reachability between nodesnodecon   : checks node connectivity cfs       : checks CFS integrityssa       : checks shared storage accessibilityspace     : checks space availabilitysys       : checks minimum system requirementsclu       : checks cluster integrityclumgr    : checks cluster manager integrityocr       : checks OCR integritycrs       : checks CRS integritynodeapp   : checks node applications existenceadmprv    : checks administrative privilegespeer      : compares properties with peers


Cluster Installation Ready check on all nodes

[oracle@racnode1 ~]$  cluvfy stage -pre crsinst -n racnode1,racnode2Performing pre-checks for cluster services setup Checking node reachability...Node reachability check passed from node "racnode1".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.0.0" with node(s) racnode2,racnode1.Node connectivity check passed for subnet "172.168.0.0" with node(s) racnode2,racnode1.Suitable interfaces for VIP on subnet "172.168.0.0":racnode2 eth1:172.168.1.52racnode1 eth1:172.168.1.51Suitable interfaces for the private interconnect on subnet "192.168.0.0":racnode2 eth0:192.168.1.52 eth0:192.168.1.152racnode1 eth0:192.168.1.51 eth0:192.168.1.151Node connectivity check passed.Checking system requirements for 'crs'...Total memory check passed.Free disk space check passed.Swap space check passed.System architecture check passed.Kernel version check passed.Package existence check passed for "binutils-2.17.50.0.6-2.el5".Package existence check passed for "control-center-2.16.0-14.el5".Package existence check passed for "gcc-4.1.1-52".Package existence check passed for "glibc-2.5-12".Package existence check passed for "glibc-common-2.5-12".Package existence check passed for "libstdc++-4.1.1-52.el5".Package existence check passed for "libstdc++-devel-4.1.1-52.el5".Package existence check passed for "make-3.81-1.1".Package existence check passed for "sysstat-7.0.0-3.el5".Package existence check passed for "setarch-2.0-1.1".Kernel parameter check passed for "semmsl".Kernel parameter check passed for "semmns".Kernel parameter check passed for "semopm".Kernel parameter check passed for "semmni".Kernel parameter check passed for "shmall".Kernel parameter check passed for "shmmni".Kernel parameter check passed for "file-max".Kernel parameter check passed for "rmem_default".Kernel parameter check passed for "rmem_max".Kernel parameter check passed for "wmem_default".Kernel parameter check passed for "wmem_max".Group existence check passed for "dba".User existence check passed for "nobody".Hard resource limit check passed for "open file descriptors".Soft resource limit check passed for "open file descriptors".Hard resource limit check passed for "maximum user processes".Soft resource limit check passed for "maximum user processes".System requirement passed for 'crs'Pre-check for cluster services setup was successful. 

Database Installation Ready check on all nodes

[oracle@racnode1 ~]$ cluvfy stage -pre dbinst -n racnode1,racnode2Performing pre-checks for database installation Checking node reachability...Node reachability check passed from node "racnode1".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.0.0" with node(s) racnode2,racnode1.Node connectivity check passed for subnet "172.168.0.0" with node(s) racnode2,racnode1.Suitable interfaces for VIP on subnet "172.168.0.0":racnode2 eth1:172.168.1.52racnode1 eth1:172.168.1.51Suitable interfaces for the private interconnect on subnet "192.168.0.0":racnode2 eth0:192.168.1.52 eth0:192.168.1.152racnode1 eth0:192.168.1.51 eth0:192.168.1.151Node connectivity check passed.Checking system requirements for 'database'...Total memory check passed.Free disk space check passed.Swap space check passed.System architecture check passed.Kernel version check passed.Package existence check passed for "binutils-2.17.50.0.6-2.el5".Package existence check passed for "control-center-2.16.0-14.el5".Package existence check passed for "gcc-4.1.1-52".Package existence check passed for "glibc-2.5-12".Package existence check passed for "glibc-common-2.5-12".Package existence check passed for "libstdc++-4.1.1-52.el5".Package existence check passed for "libstdc++-devel-4.1.1-52.el5".Package existence check passed for "make-3.81-1.1".Package existence check passed for "sysstat-7.0.0-3.el5".Package existence check passed for "setarch-2.0-1.1".Kernel parameter check passed for "semmsl".Kernel parameter check passed for "semmns".Kernel parameter check passed for "semopm".Kernel parameter check passed for "semmni".Kernel parameter check passed for "shmall".Kernel parameter check passed for "shmmni".Kernel parameter check passed for "file-max".Kernel parameter check passed for "rmem_default".Kernel parameter check passed for "rmem_max".Kernel parameter check passed for "wmem_default".Kernel parameter check passed for "wmem_max".Group existence check passed for "dba".User existence check passed for "nobody".Hard resource limit check passed for "open file descriptors".Soft resource limit check passed for "open file descriptors".Hard resource limit check passed for "maximum user processes".Soft resource limit check passed for "maximum user processes".System requirement passed for 'database'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 successful. 

cluvfy component ocr,crs

[oracle@racnode1 ~]$ cluvfy comp ocrVerifying 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. [oracle@racnode1 ~]$ [oracle@racnode1 ~]$ cluvfy comp crsVerifying 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. 




原创粉丝点击