安装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/
,如需转载,请注明出处,否则将追究法律责任。