- 论坛徽章:
- 0
|
[root@www log]# tail -f /var/log/messages
Oct 24 07:17:31 www Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
Oct 24 07:17:31 www Keepalived_vrrp: Configuration is using : 36326 Bytes
Oct 24 07:17:32 www Keepalived_vrrp: VRRP sockpool: [ifindex(2), proto(112), fd(8,9)]
Oct 24 07:17:33 www Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE
Oct 24 07:17:34 www Keepalived_vrrp: VRRP_Instance(VI_1) Entering MASTER STATE
Oct 24 07:17:34 www Keepalived_vrrp: VRRP_Instance(VI_1) setting protocol VIPs.
Oct 24 07:17:34 www Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 192.168.1.115
Oct 24 07:17:34 www Keepalived_vrrp: Netlink reflector reports IP 192.168.1.115 added
Oct 24 07:17:34 www Keepalived_healthcheckers: Netlink reflector reports IP 192.168.1.115 added
Oct 24 07:17:39 www Keepalived_vrrp: VRRP_Instance(VI_1) Sending gratuitous ARPs on eth0 for 192.168.1.115
我 在/var/log/messages下看到的日志 显示好像是正常的吧。 用IP请求 没个realserver 上的页面都正常,, 但是用VIP请求就不能 访问页面,页面不能显示。
用ipvsadm -Ln 查看记录如下: 用虚拟IP请求页面时,InActConn会有个记录显示。
[root@www ~]# ipvsadm -Ln
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddressort Scheduler Flags
-> RemoteAddressort Forward Weight ActiveConn InActConn
TCP 192.168.1.115:80 rr persistent 50
-> 192.168.1.112:80 Route 1 0 1
-> 192.168.1.110:80 Route 1 0 0 |
|