rac安装_grid安装校验报错之grid未建立信任关系

本文详细记录了在Oracle RAC Grid安装过程中遇到的节点间信任关系校验错误及其解决方案。首先,通过在每个节点上生成RSA和DSA密钥对,然后配置节点间的信任关系,最后验证信任关系成功。通过这些步骤,成功解决了PRVF-4007错误,确保了安装过程的顺利进行。
摘要由CSDN通过智能技术生成

原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明以下出处,否则追究版权法律责任。

深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/40456511 

1、报错

[grid@node1 grid]$ ./runcluvfy.sh stage -pre crsinst -n node1,node2 -fixup -verbose 

Performing pre-checks for cluster services setup  

Checking node reachability... 

Check: Node reachability from node "node1"

  Destination Node                      Reachable?             

  ------------------------------------  ------------------------

  node1                                 yes                    

  node2                                 yes                    

Result: Node reachability check passed from node "node1" 

Checking user equivalence... 

Check: User equivalence for user "grid"

  Node Name                             Comment                

  ------------------------------------  ------------------------

  node2                                 failed                 

  node1                                 failed                 

Result: PRVF-4007 : User equivalence check failed for user "grid" 

ERROR:

User equivalence unavailable on all the specified nodes

Verification cannot proceed

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

--注意到“Verification cannot proceed”信息,突然想到grid信任关系没有进行配置,于是以下开始配置grid两节点的信任关系

2、解决

=====Grid 用户==========================

在grid用户下操作:

[root@node1 /]# su – grid

[grid@node1 ~]$ mkdir .ssh       创建一个.ssh的隐藏目录

[grid@node1 ~]$ ls -al

1)生成密钥对(rsa+dsa)(node1、node2)
node1生成密钥rsa类型

id_rsa为私钥,自动保存到.ssh下

id_rsa.pub为公钥,自动保存到.ssh下

[grid@node1 ~]$ ssh-keygen -t rsa     

Generating public/private rsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa): enter             

Enter passphrase (empty for no passphrase): enter

Enter same passphrase again: enter

Your identification has been saved in /home/oracle/.ssh/id_rsa.

Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.           

The key fingerprint is:

64:a6:4a:77:db:33:a4:aa:6e:ca:8f:5f:2f:77:0f:40 oracle@node1

node1生成密钥dsa类型

id_dsa为私钥,自动保存到.ssh下

id_dsa.pub为公钥,自动保存到.ssh下

[grid@node1 ~]$ ssh-keygen -t dsa     

Generating public/private dsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_dsa): enter                        

Enter passphrase (empty for no passphrase):enter

Enter same passphrase again:enter

Your identification has been saved in /home/oracle/.ssh/id_dsa.

Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.                

The key fingerprint is:

7c:41:b5:0f:81:06:ad:30:07:4f:8b:1a:9b:94:68:14 oracle@node1

node2生成密钥rsa类型

id_rsa为私钥,自动保存到.ssh下

id_rsa.pub为公钥,自动保存到.ssh下

[root@node2 ~]# su – grid

[grid@node2 ~]$ mkdir .ssh

[grid@node2 ~]$ ssh-keygen -t rsa     

Generating public/private rsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa): enter             

Enter passphrase (empty for no passphrase): enter

Enter same passphrase again: enter

Your identification has been saved in /home/oracle/.ssh/id_rsa.

Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.           

The key fingerprint is:

64:a6:4a:77:db:33:a4:aa:6e:ca:8f:5f:2f:77:0f:40 oracle@node1

node2生成密钥dsa类型

id_dsa为私钥,自动保存到.ssh下

id_dsa.pub为公钥,自动保存到.ssh下

[grid@node2 ~]$ ssh-keygen -t dsa    

Generating public/private dsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_dsa): enter                        

Enter passphrase (empty for no passphrase):enter

Enter same passphrase again:enter

Your identification has been saved in /home/oracle/.ssh/id_dsa.

Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.                 

The key fingerprint is:

7c:41:b5:0f:81:06:ad:30:07:4f:8b:1a:9b:94:68:14 oracle@node1

2)配置信任关系(node1、node2)
为node1配置信任

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值