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 --
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 --