当前位置: > Linux集群 > 负载均衡SLB >

解析RHCS高可用集群HA及负载均衡集群LB的实现方法(5)

时间:2015-03-14 21:42来源:linux.it.net.cn 作者:IT

  [root@node1 root]# cat /etc/hosts

  # Do not remove the following line, or various programs

  # that require network functionality will fail.

  127.0.0.1 localhost.localdomain localhost

  192.168.1.11 node1

  192.168.1.12 node2

  [root@node1 root]# ping -c 1 node1

  PING node1 (192.168.1.11) 56(84) bytes of data.

  64 bytes from node1 (192.168.1.11): icmp_seq=0 ttl=64 time=0.871 ms

  --- node1 ping statistics ---

  1 packets transmitted, 1 received, 0% packet loss, time 0ms

  rtt min/avg/max/mdev = 0.871/0.871/0.871/0.000 ms, pipe 2

  [root@node1 root]# ping -c 1 node2

  PING node2 (192.168.1.12) 56(84) bytes of data.

  64 bytes from node2 (192.168.1.12): icmp_seq=0 ttl=64 time=2.10 ms

  --- node2 ping statistics ---

  1 packets transmitted, 1 received, 0% packet loss, time 0ms

  rtt min/avg/max/mdev = 2.103/2.103/2.103/0.000 ms, pipe 2

  [root@node1 root]# ping -c 1 192.168.1.1

  PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

  64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=1.51 ms

  --- 192.168.1.1 ping statistics ---

  1 packets transmitted, 1 received, 0% packet loss, time 0ms

  rtt min/avg/max/mdev = 1.510/1.510/1.510/0.000 ms, pipe 2

  [root@node2 root]# ping -c 1 node1

  PING node1 (192.168.1.11) 56(84) bytes of data.

  64 bytes from node1 (192.168.1.11): icmp_seq=0 ttl=64 time=0.536 ms

  --- node1 ping statistics ---

  1 packets transmitted, 1 received, 0% packet loss, time 0ms

  rtt min/avg/max/mdev = 0.536/0.536/0.536/0.000 ms, pipe 2

  [root@node2 root]# ping -c 1 node2

  PING node2 (192.168.1.12) 56(84) bytes of data.

  64 bytes from node2 (192.168.1.12): icmp_seq=0 ttl=64 time=0.131 ms

  --- node2 ping statistics ---

  1 packets transmitted, 1 received, 0% packet loss, time 0ms

  rtt min/avg/max/mdev = 0.131/0.131/0.131/0.000 ms, pipe 2

  [root@node2 root]# ping -c 1 192.168.1.1

  PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

  64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.778 ms

  --- 192.168.1.1 ping statistics ---

  1 packets transmitted, 1 received, 0% packet loss, time 0ms

  rtt min/avg/max/mdev = 0.778/0.778/0.778/0.000 ms, pipe 2

  在每台成员服务器上测试将要配置在的服务确保服务在每个成员结点都能够正常启动。该测试需要在每台成员服务器上执行。

  [root@node1 root]# service nfs start

  Starting NFS services: [ OK ]

  Starting NFS quotas: [ OK ]

  Starting NFS daemon: [ OK ]

  Starting NFS mountd: [ OK ]

  [root@node1 root]# service smb start

  Starting SMB services: [ OK ]

  Starting NMB services: [ OK ]

  测试完成后关闭服务,并确保服务不会自动启动,因为在高可用集群中服务是由集群软件进行控制的。该测试需要在每台成员服务器上执行。 (责任编辑:IT)

------分隔线----------------------------
栏目列表
推荐内容