|
P6
|
发表于 2011-3-4 12:13:19
转了eygle的一个实验,可以看看!
在Linux下,我们同样可以通过cluvfy工具来进行安装环境检查。
这个工具被包含在clusterware安装包中,要使用这个工具还需要先安装一个rpm包。这个包位于clusterware盘的rpm目录下。
[oracle@smsdbrac1 crs]$ ls -al rpm
total 28
drwxr-xr-x 2 oracle dba 4096 Dec 24 16:05 .
drwxr-xr-x 9 oracle dba 4096 Dec 25 10:57 ..
-rw-r--r-- 1 oracle dba 5339 Jul 2 2005 cvuqdisk-1.0.1-1.rpm
分别在RAC的不同节点安装这个rpm包,安装前需要预设环境变量:
[root@smsdbrac1 rpm]# CVUQDISK_GRP=dba; export CVUQDISK_GRP
[root@smsdbrac1 rpm]# rpm -iv cvuqdisk-1.0.1-1.rpm
Preparing packages for installation...
cvuqdisk-1.0.1-1
安装完成之后可以运行cluvfy工具来检查系统环境配置,在以下输出中,有几个内容需要说明:
1.oinstall用户组可以根据需要建立,如果没有建立,则错误可以忽略
2.Could not find a suitable set of interfaces for VIPs错误是由于Bug导致的
3.compat系列包根据系统具体情况而定,如果存在则错误可以忽略
以下是一个测试的具体输出:
[oracle@smsdbrac1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n smsdbrac1,smsdbrac2 -verbose
Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "smsdbrac1"
Destination Node Reachable?
------------------------------------ ------------------------
smsdbrac1 yes
smsdbrac2 yes
Result: Node reachability check passed from node "smsdbrac1".
Checking user equivalence...
Check: User equivalence for user "oracle"
Node Name Comment
------------------------------------ ------------------------
smsdbrac2 passed
smsdbrac1 passed
Result: User equivalence check passed for user "oracle".
Checking administrative privileges...
Check: Existence of user "oracle"
Node Name User Exists Comment
------------ ------------------------ ------------------------
smsdbrac2 yes passed
smsdbrac1 yes passed
Result: User existence check passed for "oracle".
Check: Existence of group "oinstall"
Node Name Status Group ID
------------ ------------------------ ------------------------
smsdbrac2 does not exist N/A
smsdbrac1 does not exist N/A
Result: Group existence check failed for "oinstall".
Administrative privileges check failed.
Checking node connectivity...
Interface information for node "smsdbrac2"
Interface Name IP Address Subnet
------------------------------ ------------------------------ ----------------
eth0 192.168.200.12 192.168.200.0
eth1 192.168.0.202 192.168.0.0
Interface information for node "smsdbrac1"
Interface Name IP Address Subnet
------------------------------ ------------------------------ ----------------
eth0 192.168.200.11 192.168.200.0
eth1 192.168.0.201 192.168.0.0
Check: Node connectivity of subnet "192.168.200.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
smsdbrac2:eth0 smsdbrac1:eth0 yes
Result: Node connectivity check passed for subnet "192.168.200.0" with node(s) smsdbrac2,smsdbrac1.
Check: Node connectivity of subnet "192.168.0.0"
Source Destination Connected?
------------------------------ ------------------------------ ----------------
smsdbrac2:eth1 smsdbrac1:eth1 yes
Result: Node connectivity check passed for subnet "192.168.0.0" with node(s) smsdbrac2,smsdbrac1.
Suitable interfaces for the private interconnect on subnet "192.168.200.0":
smsdbrac2 eth0:192.168.200.12
smsdbrac1 eth0:192.168.200.11
Suitable interfaces for the private interconnect on subnet "192.168.0.0":
smsdbrac2 eth1:192.168.0.202
smsdbrac1 eth1:192.168.0.201
ERROR:
Could not find a suitable set of interfaces for VIPs.
Result: Node connectivity check failed.
Checking system requirements for 'crs'...
Check: Total memory
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
smsdbrac2 3.95GB (4145508KB) 512MB (524288KB) passed
smsdbrac1 3.95GB (4145508KB) 512MB (524288KB) passed
Result: Total memory check passed.
Check: Free disk space in "/tmp" dir
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
smsdbrac2 8.83GB (9261452KB) 400MB (409600KB) passed
smsdbrac1 8.73GB (9153508KB) 400MB (409600KB) passed
Result: Free disk space check passed.
Check: Swap space
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
smsdbrac2 8GB (8385888KB) 1GB (1048576KB) passed
smsdbrac1 8GB (8385888KB) 1GB (1048576KB) passed
Result: Swap space check passed.
Check: System architecture
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
smsdbrac2 i686 i686 passed
smsdbrac1 i686 i686 passed
Result: System architecture check passed.
Check: Kernel version
Node Name Available Required Comment
------------ ------------------------ ------------------------ ----------
smsdbrac2 2.6.9-55.0.0.0.2.ELhugemem 2.4.21-15EL passed
smsdbrac1 2.6.9-55.0.0.0.2.ELhugemem 2.4.21-15EL passed
Result: Kernel version check passed.
Check: Package existence for "make-3.79"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 make-3.80-6.EL4 passed
smsdbrac1 make-3.80-6.EL4 passed
Result: Package existence check passed for "make-3.79".
Check: Package existence for "binutils-2.14"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 binutils-2.15.92.0.2-22 passed
smsdbrac1 binutils-2.15.92.0.2-22 passed
Result: Package existence check passed for "binutils-2.14".
Check: Package existence for "gcc-3.2"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 gcc-3.4.6-8.0.1 passed
smsdbrac1 gcc-3.4.6-8.0.1 passed
Result: Package existence check passed for "gcc-3.2".
Check: Package existence for "glibc-2.3.2-95.27"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 glibc-2.3.4-2.36 passed
smsdbrac1 glibc-2.3.4-2.36 passed
Result: Package existence check passed for "glibc-2.3.2-95.27".
Check: Package existence for "compat-db-4.0.14-5"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 compat-db-4.1.25-9 passed
smsdbrac1 compat-db-4.1.25-9 passed
Result: Package existence check passed for "compat-db-4.0.14-5".
Check: Package existence for "compat-gcc-7.3-2.96.128"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 missing failed
smsdbrac1 missing failed
Result: Package existence check failed for "compat-gcc-7.3-2.96.128".
Check: Package existence for "compat-gcc-c++-7.3-2.96.128"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 missing failed
smsdbrac1 missing failed
Result: Package existence check failed for "compat-gcc-c++-7.3-2.96.128".
Check: Package existence for "compat-libstdc++-7.3-2.96.128"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 missing failed
smsdbrac1 missing failed
Result: Package existence check failed for "compat-libstdc++-7.3-2.96.128".
Check: Package existence for "compat-libstdc++-devel-7.3-2.96.128"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 missing failed
smsdbrac1 missing failed
Result: Package existence check failed for "compat-libstdc++-devel-7.3-2.96.128".
Check: Package existence for "openmotif-2.2.3"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 openmotif-2.2.3-10.1.el4 passed
smsdbrac1 openmotif-2.2.3-10.1.el4 passed
Result: Package existence check passed for "openmotif-2.2.3".
Check: Package existence for "setarch-1.3-1"
Node Name Status Comment
------------------------------ ------------------------------ ----------------
smsdbrac2 setarch-1.6-1 passed
smsdbrac1 setarch-1.6-1 passed
Result: Package existence check passed for "setarch-1.3-1".
Check: Group existence for "dba"
Node Name Status Comment
------------ ------------------------ ------------------------
smsdbrac2 exists passed
smsdbrac1 exists passed
Result: Group existence check passed for "dba".
Check: Group existence for "oinstall"
Node Name Status Comment
------------ ------------------------ ------------------------
smsdbrac2 does not exist failed
smsdbrac1 does not exist failed
Result: Group existence check failed for "oinstall".
Check: User existence for "nobody"
Node Name Status Comment
------------ ------------------------ ------------------------
smsdbrac2 exists passed
smsdbrac1 exists passed
Result: User existence check passed for "nobody".
System requirement failed for 'crs'
Pre-check for cluster services setup was unsuccessful on all the nodes.
|
|