ITPub博客

首页 > 数据库 > > 【解惑】RAC中节点互ping的疑惑

【解惑】RAC中节点互ping的疑惑

作者:secooler 时间:2020-01-20 07:34:51 0 删除 编辑
安装RAC时遇到如下现象和问题,请指教.

RAC第一节点:
[root@node1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               node1 localhost.localdomain localhost
# ::1           localhost6.localdomain6 localhost6

192.168.100.101 node1
192.168.100.102 node2
192.168.100.201 node1-vip
192.168.100.202 node2-vip
10.10.17.221 node1-priv
10.10.17.222 node2-priv

[root@node1 ~]# ping node1
PING node1 (127.0.0.1) 56(84) bytes of data.
64 bytes from node1 (127.0.0.1): icmp_seq=1 ttl=64 time=1.53 ms
64 bytes from node1 (127.0.0.1): icmp_seq=2 ttl=64 time=0.055 ms

[root@node1 ~]# ping 192.168.100.101
PING 192.168.100.101 (192.168.100.101) 56(84) bytes of data.
64 bytes from 192.168.100.101: icmp_seq=1 ttl=64 time=2.24 ms
64 bytes from 192.168.100.101: icmp_seq=2 ttl=64 time=0.083 ms

[root@node1 ~]# ping node2
PING node2 (192.168.100.102) 56(84) bytes of data.
64 bytes from node2 (192.168.100.102): icmp_seq=1 ttl=64 time=5.06 ms
64 bytes from node2 (192.168.100.102): icmp_seq=2 ttl=64 time=0.561 ms

[root@node1 ~]# ping 192.168.100.102
PING 192.168.100.102 (192.168.100.102) 56(84) bytes of data.
64 bytes from 192.168.100.102: icmp_seq=1 ttl=64 time=9.55 ms
64 bytes from 192.168.100.102: icmp_seq=2 ttl=64 time=0.819 ms

RAC第二节点:
[root@node2 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               node1 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

192.168.100.101 node1
192.168.100.102 node2
192.168.100.201 node1-vip
192.168.100.202 node2-vip
10.10.17.221 node1-priv
10.10.17.222 node2-priv

[root@node2 ~]# ping node1
PING node1 (127.0.0.1) 56(84) bytes of data.
64 bytes from node1 (127.0.0.1): icmp_seq=1 ttl=64 time=2.16 ms
64 bytes from node1 (127.0.0.1): icmp_seq=2 ttl=64 time=0.060 ms

[root@node2 ~]# ping 192.168.100.101
PING 192.168.100.101 (192.168.100.101) 56(84) bytes of data.
64 bytes from 192.168.100.101: icmp_seq=1 ttl=64 time=0.983 ms
64 bytes from 192.168.100.101: icmp_seq=2 ttl=64 time=0.501 ms

[root@node2 ~]# ping node2
PING node2 (192.168.100.102) 56(84) bytes of data.
64 bytes from node2 (192.168.100.102): icmp_seq=1 ttl=64 time=0.200 ms
64 bytes from node2 (192.168.100.102): icmp_seq=2 ttl=64 time=0.046 ms

[root@node2 ~]# ping 192.168.100.102
PING 192.168.100.102 (192.168.100.102) 56(84) bytes of data.
64 bytes from 192.168.100.102: icmp_seq=1 ttl=64 time=0.122 ms
64 bytes from 192.168.100.102: icmp_seq=2 ttl=64 time=0.046 ms

为什么我在使用别名"node1" Ping第一节点时返回(127.0.0.1)这个地址? 怎么解决这个问题?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/519536/viewspace-3136560/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
Oracle ACE 总监,阿里云MVP,北京大学理学硕士,恩墨学院创始人,教育专家,中国区 Cloudera 首位官方授权大数据讲师,金牌培训专家,BDA大数据联盟创始人,OCM联盟创始人,ACCUG创始人、ACOUG核心专家,Blogger。

注册时间:2008-03-16

  • 博文量
    1601
  • 访问量
    8477601