Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9267873
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: Oracle

2011-12-05 09:46:19

RAC安装时,报The specified nodes are not clusterable 的解决方法
分类: Oracle RAC Oracle 基础知识 Linux Oracle 故障解决案例 2554人阅读 评论(1) 举报

 

在安装RAC clusterware 在添加完结点后报错误:

 

 

 

The specified nodes are not clusterable.

The following error was returned by the operating system: null

 

 

 

以前也装过几个测试的rac的环境, 该遇到的问题也都遇到过了。 以前遇到这个问题是hosts 文件搞的鬼,所以这次条件反射的就直接去检查这个文件:

 

[root@node2 orcl]# more /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 localhost

10.85.10.119 node1

10.85.10.121 node2

192.168.0.119 node1prv

192.168.0.121 node2prv

10.85.10.122 node1vip

10.85.10.123 node2vip

 

 

2个结点的hosts 第一行: 127.0.0.1 localhost 都修改过了,没有问题。 

 

 

Google 的结果如下, 这个帮了我不少忙..

 

 

Alert: The specified nodes are not clusterable. This could be due to one or more of the following reasons:
1. The user performing the install is not configured in an equivalent manner on all nodes.
2. ssh and scp are not configured properly on all nodes.
3. rsh and rcp are not configured properly on all nodes.

 

 

 

重建检查了下用户等效性。 记得创建时候已经测试过,心里就认为问题不可能在这,但再次运行之后发现, 问题还就是这。 

 

 

 

node1结点:

[oracle@node1 ~]$ ssh node1 date

[oracle@node1 ~]$ ssh node2 date

[oracle@node1 ~]$ ssh node1prv date

[oracle@node1 ~]$ ssh node2prv date

Node2结点:

[oracle@node2 ~]$ ssh node1 date

[oracle@node2 ~]$ ssh node2 date

[oracle@node2 ~]$ ssh node1prv date

[oracle@node2 ~]$ ssh node2prv date

 

 

 

node2结点上有2个还没有运行ssh, 还是需要输入密码的。 运行ssh之后问题解决。 还是太粗心了尽然少运行了2ssh。 有点杯具..

 

 

 

下面是建立用户等效性的操作方法:

 

 

1. group add dba oinstall 组在两个node创建oracle 用户主组oinstall, 附加组是dbadisk 

 

#groupadd oinstall 

#groupadd dba 

#useradd -g oinstall -G dba oracle 

#passwd oracle 

 

2. 建立等效用户

 

node1:

[root@node1 opt]# su - oracle

[oracle@node1 ~]$ mkdir ~/.ssh

[oracle@node1 ~]$ chmod 700 ~/.ssh

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

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

 

node2

[root@node2 opt]# su - oracle

[oracle@node2 ~]$ mkdir ~/.ssh

[oracle@node2 ~]$ chmod 700 ~/.ssh

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

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

 

切换回node1,接着执行:

[oracle@node1 ~]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

[oracle@node1 ~]$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

 

提示:下列命令会提示你输入node2 oracle 密码,按照提示输入即可,如果失败可重新尝试执行命

令。

[oracle@node1 ~]$ scp ~/.ssh/authorized_keys node2:~/.ssh/authorized_keys

[oracle@node1 ~]$ ssh node2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

[oracle@node1 ~]$ ssh node2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

[oracle@node2 ~]$ scp ~/.ssh/authorized_keys node1:~/.ssh/authorized_keys

 

确保2node都有相互的结点信息。

 

两机相互执行,看看是否还需要输入密码

[oracle@node1 ~]$ ssh node1 date

[oracle@node1 ~]$ ssh node2 date

[oracle@node1 ~]$ ssh node1prv date

[oracle@node1 ~]$ ssh node2prv date

切换至node2 执行

[oracle@node2 ~]$ ssh node1 date

[oracle@node2 ~]$ ssh node2 date

[oracle@node2 ~]$ ssh node1prv date

[oracle@node2 ~]$ ssh node2prv date

 

 

 

建完等效性之后第一次ssh 结点时需要输入密码, 第二次就不需要了,所以建完等效性之后一定要把所有的相关结点都ssh 一下, 不会你也就杯具了...

 

 

 

阅读(637) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~