博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle-RAC安装随笔
阅读量:5068 次
发布时间:2019-06-12

本文共 3151 字,大约阅读时间需要 10 分钟。

在配置RAC节点之间相互信任机制的时候,rac2节点上grid用户忘记给 ~/.ssh授权,导致rac2节点无法通过验证,错误如下:

1 [grid@rac2 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -fixup -verbose 2  3 Performing pre-checks for cluster services setup  4  5 Checking node reachability... 6  7 Check: Node reachability from node "rac2" 8   Destination Node                      Reachable?               9   ------------------------------------  ------------------------10   rac2                                  yes                     11   rac1                                  yes                     12 Result: Node reachability check passed from node "rac2"13 14 15 Checking user equivalence...16 17 Check: User equivalence for user "grid"18   Node Name                             Comment                 19   ------------------------------------  ------------------------20   rac2                                  failed                  21   rac1                                  failed                  22 Result: PRVF-4007 : User equivalence check failed for user "grid"23 24 ERROR: 25 User equivalence unavailable on all the specified nodes26 Verification cannot proceed27 28 29 Pre-check for cluster services setup was unsuccessful on all the nodes

上面的错误就是先创建了ssh验证,然后在授权导致,一定要先授权然后在创建ssh验证,代码如下:

1 [grid@rac2 .ssh]$ chmod 700 ~/.ssh/ 2 [grid@rac2 .ssh]$ /usr/bin/ssh-key -t rsa 3 ssh-keygen   ssh-keyscan   4 [grid@rac2 .ssh]$ /usr/bin/ssh-keygen -t rsa 5 Generating public/private rsa key pair. 6 Enter file in which to save the key (/home/grid/.ssh/id_rsa):  7 /home/grid/.ssh/id_rsa already exists. 8 Overwrite (y/n)? yes 9 Enter passphrase (empty for no passphrase): 10 Enter same passphrase again: 11 Your identification has been saved in /home/grid/.ssh/id_rsa.12 Your public key has been saved in /home/grid/.ssh/id_rsa.pub.13 The key fingerprint is:14 3d:50:b7:09:58:c6:84:8e:52:46:a6:ca:bc:6b:da:12 grid@rac215 The key's randomart image is:16 +--[ RSA 2048]----+17 |     .o  ** .    |18 |     oo oo.o o   |19 |    .o o.   o    |20 | o .. . .o       |21 |  +  .  S o      |22 |E  .       .     |23 | ..              |24 |....             |25 |.+o              |26 +-----------------+27 [grid@rac2 .ssh]$ cat id_rsa.pub >>authorized_keys 28 [grid@rac2 .ssh]$ ls29 authorized_keys  id_rsa  id_rsa.pub  known_hosts30 [grid@rac2 .ssh]$ ll31 total 1632 -rw-r--r--. 1 grid oinstall  782 Aug 17 13:38 authorized_keys33 -rw-------. 1 grid oinstall 1675 Aug 17 13:37 id_rsa34 -rw-r--r--. 1 grid oinstall  391 Aug 17 13:37 id_rsa.pub35 -rw-r--r--. 1 grid oinstall 1590 Aug 17 12:49 known_hosts36 [grid@rac2 .ssh]$ scp authorized_keys rac1:/home/grid/.ssh/37 grid@rac1's password: 38 authorized_keys                                                                                                                                            100%  782     0.8KB/s   00:00    39 [grid@rac2 .ssh]$ ssh rac1 date40 Fri Aug 17 13:39:09 CST 201841 [grid@rac2 .ssh]$ ssh rac1priv date42 Fri Aug 17 13:39:18 CST 201843 [grid@rac2 .ssh]$ ssh rac2 date44 Fri Aug 17 13:39:28 CST 201845 [grid@rac2 .ssh]$ ssh rac2priv date46 Fri Aug 17 13:39:33 CST 2018

 

转载于:https://www.cnblogs.com/Roobbin/p/9492891.html

你可能感兴趣的文章
deeplearning.ai 神经网络和深度学习 week4 深层神经网络
查看>>
fstat、stat和lstat 区别
查看>>
iOS工作笔记(十四)
查看>>
spring自定义schema学习
查看>>
有关jquery弹出层
查看>>
MAC Android Studio 快捷键
查看>>
关于Struts框架简介
查看>>
前端实现的canvas支持多图压缩并打包下载的工具
查看>>
centos添加永久的环境变量
查看>>
3D Face Reconstruction
查看>>
js 判断数组中是否有某值
查看>>
小奇的集合
查看>>
第一章
查看>>
我所理解的前端
查看>>
form详解
查看>>
CentOS升级Python 2.6到2.7
查看>>
Hibernate 三种状态变化 与 sql 语句的关系
查看>>
2018NOIP游记
查看>>
vue-cli——vue-resource登录注册实例
查看>>
对Dictionary<TKey,TValue>进行插入与替换操作
查看>>