Hello, I want to create a Web cluster with Keepalived using LVS-DR.Keepalived launching, I get the following errors :
"Dec 22 09:58:16 cesar kernel: IPVS: set_ctl: invalid protocol: 0 192.168.0.10:80 rr Dec 22 09:58:16 cesar Keepalived_healthcheckers: IPVS: Bad address" Manually, I'm able to add the virtual IP address and the real servers but with Keepalived,I still have that same error. Can you help me ? Thanks, Regards. OS : CentOS 5.5 - uname -r 2.6.18-194.26.1.el5 - yum install kernel-headers kernel-devel - yum install openssl-devel - yum install ipvsadm - ipvsadm -v ipvsadm v1.24 2003/06/07 (compiled with popt and IPVS v1.2.0) - wget http://www.keepalived.org/software/keepalived-1.2.1.tar.gz - tar -xzvf keepalived-1.2.1.tar.gz - ./configure --sysconfdir=/etc --with-kernel-dir=/lib/modules/2.6.18-194.26.1.el5/build - make - make install - vi /etc/keepalived/keepalived.conf global_defs { notification_email { xx...@xxxx.xxx } notification_email_from keepali...@xxxxx.xx smtp_server xxxxx.xxxx.xx smtp_connect_timeout 20 router_id LVS_MASTER } static_ipaddress { 192.168.0.10/24 dev eth0 scope global } virtual_server 192.168.0.10 80 { lb_algo rr lb_kind DR persistence_timeout 1200 protocole TCP ha_suspend alpha delay_loop 10 real_server 192.168.0.31 80 { weight 1 HTTP_GET { url { path / status_code 200 } connect_timeout 10 } } real_server 192.168.0.32 80 { weight 1 HTTP_GET { url { path / status_code 200 } connect_timeout 10 } } } - modprobe ip_vs - service keepalived start - ip addr show eth0 => OK - ipvsadm => Problem, VIP and real servers aren't add - tail -f /var/log/messages Dec 22 09:58:16 cesar Keepalived: Starting Keepalived v1.2.1 (12/21,2010) Dec 22 09:58:16 cesar Keepalived: Starting Healthcheck child process, pid=5717 Dec 22 09:58:16 cesar Keepalived_healthcheckers: Netlink reflector reports IP 192.168.0.30 added Dec 22 09:58:16 cesar Keepalived_healthcheckers: Registering Kernel netlink reflector Dec 22 09:58:16 cesar Keepalived_healthcheckers: Registering Kernel netlink command channel Dec 22 09:58:16 cesar Keepalived_healthcheckers: Opening file '/etc/keepalived/keepalived.conf'. Dec 22 09:58:16 cesar Keepalived_healthcheckers: Configuration is using : 9533 Bytes Dec 22 09:58:16 cesar kernel: IPVS: set_ctl: invalid protocol: 0 192.168.0.10:80 rr Dec 22 09:58:16 cesar Keepalived_healthcheckers: IPVS: Bad address Dec 22 09:58:16 cesar kernel: IPVS: set_ctl: invalid protocol: 0 192.168.0.10:80 rr Dec 22 09:58:16 cesar Keepalived_healthcheckers: IPVS: Bad address Dec 22 09:58:16 cesar kernel: IPVS: set_ctl: invalid protocol: 0 192.168.0.10:80 rr Dec 22 09:58:16 cesar Keepalived_healthcheckers: IPVS: Bad address - ipvsadm -A -t 192.168.0.10:80 -s rr => OK - ipvsadm -a -t 192.168.0.10:80 -r 192.168.0.31:80 -g -w 1 => OK - ipvsadm -a -t 192.168.0.10:80 -r 192.168.0.32:80 -g -w 1 => OK _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org Send requests to lvs-users-requ...@linuxvirtualserver.org or go to http://lists.graemef.net/mailman/listinfo/lvs-users