Re: Configuration Problem
Stefan Kärst <[email protected]>
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Roman,
I tried your keepalived config and it worked fine, although there is no
closing bracket for vrrp_instance VI_1.
What keepalived messages are in your syslog? Does keepalived start the
VIP? (do not use ifconfig but "ip a s" instead)
I'm not sure what ipvsadm should look like but if keepalived started the
VIP on e.g. eth0 ipvsadm -l shows no difference:
Nov 20 12:00:03 localhost Keepalived_vrrp[5791]: VRRP_Instance(VI_1)
Entering MASTER STATE
Nov 20 12:00:03 localhost Keepalived_vrrp[5791]: VRRP_Instance(VI_1)
setting protocol VIPs.
Nov 20 12:00:03 localhost Keepalived_vrrp[5791]: VRRP_Instance(VI_1)
Sending gratuitous ARPs on eth0 for 192.168.0.249
Nov 20 12:00:03 localhost Keepalived_healthcheckers[5790]: Netlink
reflector reports IP 192.168.0.249 added
[root@t430-sub1 keepalived]# ip -4 a s dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
inet 192.168.122.5/24 brd 192.168.122.255 scope global eth0
inet 192.168.0.249/24 brd 192.168.0.255 scope global eth0
[root@t430-sub1 keepalived]# ipvsadm -l
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
[root@t430-sub1 keepalived]#
hth
Best Regard
Stefan Kärst
Am 20.11.2013 03:47, Roman Gelfand schrieb:
> I am trying to setup load balancing for smtp servers. Seemingly, the
> configuration file is ok.
>
> ipvsadm -l doesn't return anything
>
> My keepalive.conf is
>
> global_defs {
> lvs_id LVS_1
> }
> vrrp_instance VI_1 {
> interface eth1
> state MASTER
> virtual_router_id 51
> priority 101 # 101 on master, 100 on backup
> advert_int 1
> smtp_alert
> authentication {
> auth_type PASS
> auth_pass pass
>
> }
>
> virtual_ipaddress {
> 192.168.0.249/24 brd 192.168.0.255 dev eth0
> }
>
> VIRTUAL_SERVER 192.168.0.249 25 {
> delay_loop 60
> lb_algo rr
> lb_kind DR
> protocol TCP
> persistence_timeout 360
>
> real_server 192.168.0.245 25 {
> weight 1
> TCP_CHECK {
> connect_timeout 3
> connect_port 25
> nb_get_retry 3
> delay_before_retry 3
> }
> }
> real_server 192.168.0.244 25 {
> weight 1
> TCP_CHECK {
> connect_timeout 3
> connect_port 25
> nb_get_retry 3
> delay_before_retry 3
> }
> }
> }
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> Keepalived-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/keepalived-devel
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Keepalived-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/keepalived-devel
smime.p7s
(application/pkcs7-signature, 3.7 KB) - not displayed