keepalived的配置问题,麻烦大家指点:)

前几天搭了个LVS的集群,效果挺不错的,现在要做个备份机和健康检查系统,所以打算用KEEPALIVED来做。
之前我先用keepalived单独做了下WEB80端口的和MYSQL3306端口的监控,效果很好,但是后来我把这俩整到一起的时候问题就来了。
俩个东西都不能运行了。真是奇怪。我把代码给大家发下,帮我指点下问题好吗,谢谢各位了。附件上是我配置成功的HTTP和MYSQL的配置文件。

# Configuration File for keepalived
global_defs {
notification_email {
xxxxxxx
}
notification_email_from xxxxxx
smtp_server xxxxxx
smtp_connect_timeout 30
lvs_id LVS_ONE
}

vrrp_sync_group VG1 {
VI_1
}

vrrp_sync_group VG2 {
VI_2
}

vrrp_instance VI_1 {
state MASTER
interface eth0
lvs_sync_daemon_interface eth0
virtual_router_id 1
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass mysqlcluster
}
virtual_ipaddress {
192.168.1.124
}
}

vrrp_instance VI_2 {
state MASTER
interface eth0
lvs_sync_daemon_interface eth0
virtual_router_id 2
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.1.123
}
}

virtual_server 192.168.1.124 3306 {
delay_loop 6
lvs_sched wlc
lvs_method DR
persistence_timeout 60
ha_suspend
protocol TCP
real_server 192.168.1.36 3306 {
weight 1
TCP_CHECK {
connect_timeout 10
}
}
real_server 192.168.1.245 3306 {
weight 1
TCP_CHECK {
connect_timeout 10
}
}
real_server 192.168.1.37 3306 {
weight 1
TCP_CHECK {
connect_timeout 10
}
}
}

virtual_server 192.168.1.123 80 {
delay_loop 6
lvs_sched wlc
lvs_method DR
persistence_timeout 60
ha_suspend
protocol TCP
real_server 192.168.1.237 80 {
weight 1
TCP_CHECK {
connect_timeout 10
}
}
real_server 192.168.1.245 80 {
weight 1
TCP_CHECK {
connect_timeout 10
}
}
}

附件大小
Microsoft Office document icon keepalived_http.doc1 KB
Microsoft Office document icon keepalived_mysql.doc1.19 KB

Forums: