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

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

解压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就出现这个问题,待解决~~

执行 `./runcluvfy.sh stage -post hwos -n rac1,rac2 -verbose` 时出现 `oracle.oracore.rsf/11.2.0.4.0/1/DataFiles` 无效、解压缩命令失败,并提示检查 `oraparam.ini` 及指定有效源路径的问题,可以尝试以下解决方法: ### 检查 `oraparam.ini` 文件 `oraparam.ini` 文件包含了安装和配置 Oracle 时的参数信息,需要确保该文件中指定的源路径是正确的。 ```bash # 打开 oraparam.ini 文件进行检查 vi /PATH/TO/oraparam.ini ``` 在文件中查找与 `oracle.oracore.rsf/11.2.0.4.0/1/DataFiles` 相关的路径配置,确保路径指向有效的文件或目录。 ### 验证源文件的完整性 解压缩命令失败可能是由于源文件损坏导致的。需要检查 `oracle.oracore.rsf/11.2.0.4.0/1/DataFiles` 对应的源文件是否完整。 ```bash # 检查文件大小和校验和 ls -l /PATH/TO/oracle.oracore.rsf/11.2.0.4.0/1/DataFiles md5sum /PATH/TO/oracle.oracore.rsf/11.2.0.4.0/1/DataFiles ``` 如果文件大小异常或校验和不匹配,可能需要重新下载该文件。 ### 检查文件权限 确保运行脚本的用户对 `oracle.oracore.rsf/11.2.0.4.0/1/DataFiles` 及其父目录具有足够的读取和执行权限。 ```bash # 查看文件和目录权限 ls -l /PATH/TO/oracle.oracore.rsf/11.2.0.4.0/1/DataFiles ls -ld /PATH/TO/oracle.oracore.rsf/11.2.0.4.0/1/ # 如果权限不足,可以使用以下命令修改权限 chmod -R 755 /PATH/TO/oracle.oracore.rsf/ ``` ### 检查解压缩工具 解压缩命令失败可能是由于系统缺少必要的解压缩工具或工具版本不兼容导致的。确保系统中安装了 `unzip` 等必要的解压缩工具。 ```bash # 检查 unzip 是否安装 which unzip # 如果未安装,可以使用以下命令进行安装 # 对于 CentOS/RHEL yum install unzip # 对于 Ubuntu/Debian apt-get install unzip ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值