今天是第二次安装RAC,但是遇到了一个很奇怪的问题,这里写下来,防止以后发生类似的问题。

       环境是:在Vmware Workstation 8上安装两个CentOS4.4 ,并配置好网络,NTP,RAW,SSH以及参数等等。但是在检查用户等价时总是提示失败,我也到网站上找了好几篇文章来看,可以还是没能解决,后来也按照ORACLE官方文档来做了,但是还是失败,郁闷了半天,但是最后还是解决了,哎,其实这个真的不是问题啊,其他的文件都检查了,就把这个个给遗漏了,做了大量无用的工作,最后还是回到了原点,哈哈。

    错误提示如下:

[oracle@oel1 ~]$ /media/cdrecorder/cluvfy/runcluvfy.sh stage -pre crsinst -n oel1,oel2

Performing pre-checks for cluster services setup

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


Checking user equivalence...
User equivalence check failed for user "oracle".   #错误出现,正常情况下是 User equivalence check passed for user "oracle".
Check failed on nodes:
        oel1

WARNING:
User equivalence is not set for nodes:
        oel1
Verification will proceed with nodes:
        oel2

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 "128.192.0.0" with node(s) oel2.
Node connectivity check passed for subnet "10.10.10.0" with node(s) oel2.

Suitable interfaces for VIP on subnet "128.192.0.0":
oel2 eth0:128.192.0.2

Suitable interfaces for the private interconnect on subnet "10.10.10.0":
oel2 eth1:10.10.10.2

Node 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 "make-3.79".
Package existence check passed for "binutils-2.14".
Package existence check passed for "gcc-3.2".
Package existence check passed for "glibc-2.3.2-95.27".
Package existence check passed for "compat-db-4.0.14-5".
Package existence check failed for "compat-gcc-7.3-2.96.128".
Check failed on nodes:
        oel2
Package existence check failed for "compat-gcc-c++-7.3-2.96.128".
Check failed on nodes:
        oel2
Package existence check failed for "compat-libstdc++-7.3-2.96.128".
Check failed on nodes:
        oel2
Package existence check failed for "compat-libstdc++-devel-7.3-2.96.128".
Check failed on nodes:
        oel2
Package existence check passed for "openmotif-2.2.3".
Package existence check passed for "setarch-1.3-1".
Group existence check passed for "dba".
Group existence check passed for "oinstall".
User existence check passed for "nobody".

System requirement failed for 'crs'

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

处理如下:

     检查了SSH没问题

    检查了网络没问题,都可以正常通信

    检查了安装包

但是问题依然存在,最近看了service ntpd status 都是stop的状态,原来问题是出在这里

把ntp服务重新启动后,检查通过,顺利安装crs软件。

最后总结:

1。时间必须同步
2。public网卡的ip一定要记得设置网关,保证网关能ping通
3。保证ssh互信
4。需要的安装包都装上