Hi,

I think this is rather an lvs-question.

Do you have the vip-address up and running on your real servers?
What kind of lvs-method do you use?

btw - why do you need heartbeat for this?


Kind regards, Nils

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Randy Evans
> Sent: Tuesday, June 24, 2008 5:05 PM
> To: linux-ha@lists.linux-ha.org
> Subject: [Linux-HA] ldirectord not forwarding to real servers
> 
> Hello,
> 
> I am attempting to configure a load balancing cluster using 
> heartbeat and ldirectord.
> 
> I have two machines running heartbeat and two machines running apache.
> 
> Everything appears to be running correctly, but when I 
> connect to the VIP (192.168.0.125) I cannot establish a 
> connection.  Apache is running on both of the real servers 
> and I can connect to them if I use their actual ip addresses. 
>  When I attempt to connect to the VIP the output of ipvsadm 
> -L shows entries in the InActConn column (I would think they 
> should be in the ActiveConn but I'm not sure).  The apache 
> logfiles on each of the real servers show the heartbeat 
> connections every few seconds, but there are no entries when 
> I attempt to connect using the VIP.
> 
> There is nothing in the ldirectord.log that indicates there 
> is any problem.
> 
> I have disabled the firewall on all machines.
> 
> 
> I would appreciate any pointers to what config steps I have 
> missed or how I might troubleshoot this.
> 
> Thank you.
> 
> 
> 
> 
> --------------------------
> contents of ha.cf:
> crm on
> udpport 694
> bcast eth0
> node centos-1.mydomain.com centos-2.mydomain.com
> 
> ---------------------------
> 
> contents of ldirectord.cf:
> checktimeout=10
> checkinterval=2
> autoreload=yes
> logfile="/var/log/ldirectord.log"
> quiescent=yes
> virtual=192.168.0.125:80
>         fallback=127.0.0.1:80
>         real=192.168.0.123:80 gate
>         real=192.168.0.124:80 gate
>         service=http
>         request="test.html"
>         receive="Still alive"
>         scheduler=wlc
>         protocol=tcp
>         checktype=negotiate
>         persistent=600
> -----------------------------
> 
> crm_mon output:
> ============
> Last updated: Tue Jun 24 09:24:50 2008
> Current DC: centos-2.mydomain.com 
> (ca0c23d9-f25c-4023-b7ee-8a7170234cf8)
> 2 Nodes configured.
> 1 Resources configured.
> ============
> 
> Node: centos-2.mydomain.com 
> (ca0323d2-f8hc-4023-e3ee-8a7170234cf8): online
> Node: centos-1.mydomain.com 
> (a7023c30-0dke-1298-f8a4-d75681f2f25e): online
> 
> Resource Group: group_Load_Balancer
>     resource_ip_address (heartbeat::ocf:IPaddr2):       Started
> centos-2.mydomain.com
>     resource_ldirector  (heartbeat::ocf:ldirectord):    Started
> centos-2.mydomain.com
> ------------------
> 
> ipvsadm -L output:
> IP Virtual Server version 1.2.1 (size=4096) Prot 
> LocalAddress:Port Scheduler Flags
>   -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
> TCP  192.168.0.125:http wlc persistent 600
>   -> centos-3.mydomain.com Route   1      0          1
>   -> centos-4.mydomain.com Route   1      0          0
> 
> 
> -------------------------------
> 
> 
> I have enabled ip forwarding on both machines running heartbeat:
> net.ipv4.ip_forward = 1
> 
> 
> 
> I have set these values on the two real servers:
> 
> net.ipv4.conf.lo.arp_ignore = 1
> net.ipv4.conf.lo.arp_announce = 2
> net.ipv4.conf.all.arp_ignore = 1
> net.ipv4.conf.all.arp_announce = 2
> _______________________________________________
> Linux-HA mailing list
> Linux-HA@lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
> 
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to