执行 ./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose错误

在安装Oracle Clusterware时遇到./runcluvfy.sh预检查失败,主要问题在于用户等价性未设置、部分兼容性GCC及相关库包缺失。解决方案包括在root用户下创建软链接,以及安装特定版本的compat-gcc及其C++库。检查发现节点1已通过,但节点2仍有问题待解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

解压10201_clusterware_linux32.zip后的文件夹clusterware中有cluvfy文件夹

[oracle@hxy cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose



Performing pre-checks for cluster services setup 


Checking node reachability...


Check: Node reachability from node "hxy"
  Destination Node                      Reachable?              
  ------------------------------------  ------------------------
  node1                                 yes                     
  node2                                 yes                     
Result: Node reachability check passed from node "hxy".




Checking user equivalence...


Check: User equivalence for user "oracle"
  Node Name                             Comment                 
  ------------------------------------  ------------------------
  node2                                 failed                  
  node1                                 failed                  
Result: User equivalence check failed for user "oracle".


ERROR: 
User equivalence unavailable on all the nodes.
Verification cannot proceed.




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

解决办法:

网上说的

ERROR:
User equivalence unavailable on all the nodes.
Verification cannot proceed.

网上查了下,解决方法如下
root@rac1 # mkdir -p /usr/local/bin
root@rac1 # ln -s -f /usr/bin/ssh /usr/local/bin/ssh
root@rac1 # ln -s -f /usr/bin/scp /usr/local/bin/scp

在oracle用户下:
$ exec /usr/bin/ssh-agent $SHELL
$ /usr/bin/ssh-add

再执行./runcluvfy.sh stage -pre crsinst -n rac1,rac2,就能正常检查了

但是我的还是不行。。。。

继续找:

racle@node1:/tmp/CVU_11.1.0.1.0.2_oinstall 
$ ssh node1
The authenticity of host 'node1 (1.1.1.1)' can't be established.
DSA key fingerprint is ac:dd:8e:56:56:3e:36:f7:d2:26:d0:b9:cd:76:3a:89.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node1,1.1.1.1' (DSA) to the list of known hosts.
Sat Apr  9 06:47:54 CDT 2011
 
oracle@node2:/tmp/CVU_11.1.0.1.0.2_oinstall 
$ ssh node2
The authenticity of host 'node2 (1.1.1.2)' can't be established.
DSA key fingerprint is ac::8e:56:56:3e:36:f7:d2:26:d0:b9:cd:76:3a:89.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'node2,1.1.1.2' (DSA) to the list of known hosts.
Sat Apr  9 06:48:54 CDT 2011
 
oracle@node1:/u01/app/sw/clusterware 
$./runcluvfy.sh stage -pre crsinst -n node1,node2
 
Performing pre-checks for cluster services setup
 
Checking node reachability...
Node reachability check passed from node "node1".
 
 
Checking user equivalence...
User equivalence check passed for user "oracle".
...
我的执行情况如下:

[oracle@hxy cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n node1,node2 -verbose


Performing pre-checks for cluster services setup 


Checking node reachability...


Check: Node reachability from node "hxy"
  Destination Node                      Reachable?              
  ------------------------------------  ------------------------
  node1                                 yes                     
  node2                                 yes                     
Result: Node reachability check passed from node "hxy".




Checking user equivalence...


Check: User equivalence for user "oracle"
  Node Name                             Comment                 
  ------------------------------------  ------------------------
  node2                                 failed                  
  node1                                 passed                  
Result: User equivalence check failed for user "oracle".


WARNING: 
User equivalence is not set for nodes:
        node2
Verification will proceed with nodes:
        node1


Checking administrative privileges...


Check: Existence of user "oracle"
  Node Name     User Exists               Comment                 
  ------------  ------------------------  ------------------------
  node1         yes                       passed                  
Result: User existence check passed for "oracle".


Check: Existence of group "oinstall"
  Node Name     Status                    Group ID                
  ------------  ------------------------  ------------------------
  node1         exists                    500                     
Result: Group existence check passed for "oinstall".


Check: Membership of user "oracle" in group "oinstall" [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  node1             yes           yes           yes           yes           passed      
Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed.


Administrative privileges check passed.


Checking node connectivity...




Interface information for node "node1"
  Interface Name                  IP Address                      Subnet          
  ------------------------------  ------------------------------  ----------------
  eth0                            192.168.1.111                   192.168.1.0     
  eth1                            10.10.1.9                       10.10.1.0       




Check: Node connectivity of subnet "192.168.1.0"
Result: Node connectivity check passed for subnet "192.168.1.0" with node(s) node1.


Check: Node connectivity of subnet "10.10.1.0"
Result: Node connectivity check passed for subnet "10.10.1.0" with node(s) node1.


Suitable interfaces for the private interconnect on subnet "192.168.1.0":
node1 eth0:192.168.1.111


Suitable interfaces for the private interconnect on subnet "10.10.1.0":
node1 eth1:10.10.1.9


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   
  ------------  ------------------------  ------------------------  ----------
  node1         503.44MB (515524KB)       512MB (524288KB)          failed    
Result: Total memory check failed.


Check: Free disk space in "/tmp" dir
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  node1         4.54GB (4764228KB)        400MB (409600KB)          passed    
Result: Free disk space check passed.


Check: Swap space 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  node1         1023.99MB (1048568KB)     1GB (1048576KB)           failed   
Result: Swap space check failed.


Check: System architecture 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  node1         i686                      i686                      passed    
Result: System architecture check passed.


Check: Kernel version 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  node1         2.6.18-53.el5             2.4.21-15EL               passed    
Result: Kernel version check passed.


Check: Package existence for "make-3.79" 
  Node Name                       Status                          Comment         
  ------------------------------  ------------------------------  ----------------
  node1                           make-3.81-1.1                   passed          
Result: Package existence check passed for "make-3.79".


Check: Package existence for "binutils-2.14" 
  Node Name                       Status                          Comment         
  ------------------------------  ------------------------------  ----------------
  node1                           binutils-2.17.50.0.6-5.el5      passed          
Result: Package existence check passed for "binutils-2.14".


Check: Package existence for "gcc-3.2" 
  Node Name                       Status                          Comment         
  ------------------------------  ------------------------------  ----------------
  node1                           gcc-4.1.2-14.el5                passed          
Result: Package existence check passed for "gcc-3.2".


Check: Package existence for "glibc-2.3.2-95.27" 
  Node Name                       Status                          Comment         
  ------------------------------  ------------------------------  ----------------
  node1                           glibc-2.5-18                    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         
  ------------------------------  ------------------------------  ----------------
  node1                           compat-db-4.2.52-5.1            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         
  ------------------------------  ------------------------------  ----------------
  node1                           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         
  ------------------------------  ------------------------------  ----------------
  node1                           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         
  ------------------------------  ------------------------------  ----------------
  node1                           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         
  ------------------------------  ------------------------------  ----------------
  node1                           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         
  ------------------------------  ------------------------------  ----------------
  node1                           openmotif-2.3.0-0.3.el5         passed          
Result: Package existence check passed for "openmotif-2.2.3".


Check: Package existence for "setarch-1.3-1" 
  Node Name                       Status                          Comment         
  ------------------------------  ------------------------------  ----------------
  node1                           setarch-2.0-1.1                 passed          
Result: Package existence check passed for "setarch-1.3-1".


Check: Group existence for "dba" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  node1         exists                    passed                  
Result: Group existence check passed for "dba".


Check: Group existence for "oinstall" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  node1         exists                    passed                  
Result: Group existence check passed for "oinstall".


Check: User existence for "nobody" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  node1         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. 

粉红色的为一些rpm包的检查和内存的检测,,内存检测可以忽略,不影响我们装cluersware,我们检查一下我们的这些包是否安装?

[root@hxy ~]# rpm -qa | grep compat-gcc
compat-gcc-34-c++-3.4.6-4
compat-gcc-34-3.4.6-4
[root@hxy ~]# rpm -qa | grep compat-gcc-c++
[root@hxy ~]# rpm -qa | grep compat-libstdc++
compat-libstdc++-296-2.96-138
compat-libstdc++-33-3.2.3-61
compat-libstdc++-egcs-1.1.2-1
[root@hxy ~]# 

安装确实包即可!

问题是节点1可以顺利通过,节点2就出现这个问题,待解决~~

<think>好的,用户的问题是关于在Oracle安装前如何使用CVU(Cluster Verification Utility)进行检查,以及相关的使用方法和注意事项。首先,我需要回忆一下CVU的基本功能和常见用法。CVU是Oracle提供的集群验证工具,用于检查系统是否符合安装Oracle集群软件(如RAC)的要求,确保硬件、操作系统、网络等配置正确。 首先,用户可能需要知道如何获取CVU。通常,CVU随Oracle Grid Infrastructure安装介质一起提供,位于安装目录的cv子目录下。用户需要解压安装包,并找到runcluvfy.sh脚本。记得要确认操作系统位数是否匹配,比如引用3提到客户程序可能使用32位,但安装的是64位服务端,所以需要特别注意版本匹配,避免错误。 接下来是运行CVU的具体命令。基本语法是执行runcluvfy.sh加上不同的参数。例如,检查节点连接性、共享存储、系统配置等。需要提醒用户根据不同的检查目标调整参数,比如-stage pre-crsinst用于CRS安装前的检查。这里可能需要引用相关的例子,比如引用4提到的如果没有cvuqdisk包,CVU无法检测共享磁盘,导致错误,所以必须提前安装该包。 注意事项部分,首先需要强调使用正确的用户权限,通常需要以root或oracle用户运行。然后检查cvuqdisk是否安装,如未安装需要手动安装,避免出现错误。另外,网络配置的检查也很重要,比如各节点间的网络连通性和DNS解析是否正确,这可能会影响集群的正常运行。引用2中提到使用yum下载相关软件包,可能涉及到依赖项的安装,但CVU检查可能还需要其他特定包,需要用户确保所有依赖已满足。 还要注意日志文件的查看,CVU运行后会生成日志,用户需要学会查看这些日志来定位问题。例如,如果出现存储无法识别的问题,可能需要检查共享磁盘的权限和配置。引用5提到监听服务的开启,虽然主要是关于数据库连接,但在集群环境中,网络服务的正确配置也是CVU检查的一部分。 最后,生成相关问题时要考虑用户可能的后续疑问,比如如何处理检查中的错误、如何安装缺少的包、不同安装阶段的具体检查项等。这些问题能帮助用户更全面地理解和应用CVU工具,确保安装顺利进行。</think>### Oracle安装前CVU检查使用方法及注意事项 #### **CVU检查使用方法** 1. **获取CVU工具** CVU工具位于Oracle Grid Infrastructure安装介质的`cv`目录中。解压安装包后,进入路径: ```bash cd grid/cv ``` 执行以下命令运行检查(需替换实际参数): ```bash ./runcluvfy.sh stage -pre crsinst -n node1,node2 -fixup -verbose ``` 其中: - `-pre crsinst`:表示检查CRS(Cluster Ready Services)安装前的环境 - `-n`:指定节点列表(例如`node1,node2`) - `-fixup`:自动生成修复脚本(需root权限执行- `-verbose`:输出详细日志[^4] 2. **常用检查场景** - **节点连通性检查** ```bash ./runcluvfy.sh comp nodereach -n node1,node2 ``` - **共享存储检查** ```bash ./runcluvfy.sh comp ssa -n node1,node2 -s /dev/sdb1 ``` - **系统配置检查** ```bash ./runcluvfy.sh stage -pre crsinst -n node1,node2 ``` --- #### **注意事项** 1. **用户权限** - 需以`root`或`oracle`用户运行CVU工具,避免权限不足导致检查失败[^4]。 2. **安装`cvuqdisk`包** - 若未安装`cvuqdisk`,CVU无法识别共享磁盘,报错:`Package cvuqdisk not installed`。 解决方法: ```bash # 从Oracle安装包中获取cvuqdisk RPM rpm -ivh cvuqdisk-1.0.10-1.rpm ``` 可通过`yum install --downloadonly`提前下载依赖包(参考引用[2])。 3. **网络配置验证** - 确保节点间网络互通,DNS或`/etc/hosts`已正确配置所有节点IP和主机名。 - 检查防火墙是否关闭或开放相关端口(如SSH、RAC通信端口)。 4. **日志分析** - 检查完成后,查看日志文件`/tmp/cluvfy_<timestamp>.log`,定位具体失败项。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值