Joseph Mack NA3T wrote:
> On Sun, 8 Jul 2007, Cristi wrote:
>
>
>> Hello again,
>>
>> I installed heartbeat an ran into some trouble. I run 2 services on the
>> 2 real servers : httpd using LVS-NAT and sql using DR.
>>
>
> did you handle the different default gw requirements for
> the two forwarders?
>
For my test setup, the real servers had as def gw the IP of director2
because the VIP was active on it.
>
>> I rely onto hearbeat to do the NAT part, but it doesn't seem to work. I
>> setup the
>> nat manually like so:
>>
>> ipvsadm -A -t PUBLIC_VIP:www -s rr
>> ipvsadm -a -t PUBLIC_VIP:www -r 192.168.100.3:www -m -w 1
>> ipvsadm -a -t PUBLIC_VIP:www -r 192.168.100.4:www -m -w 1
>>
>> and it worked like a charm, so no FW issues.
>>
>
> what's "it"? the LVS?
>
I was refering to "IT" as hearbeat's ability to perfom LVS-NAT. Using
hearbeat, LVS-NAT doesn't seem to work. I get directed onto port 80 of
the director instead of being forwarded to real servers, getting a
"connection refused" because i do not have httpd running on the director.
>
>
>> The listing looks pretty much the same on both instances,
>>
>
> instance of what?
>
Attempts of performing LVS-NAT, first using your configuration script
and second using hearbeat's config file, ldirectord.cf.
>
>> the problem
>> being that i get a connection refused when i try telnetting on 80 while
>> running heartbeat.
>>
>
> so the LVS works fine without heartbeat?
>
>
>
I was a little hasty in saying it works like a charm. It works, but as i
wrote in my first message, it stops doing so after a random time. All in
all, this is better than using hearbeat, where i get no results at all
:) ( I get directed onto port 80 of the director instead of being
forwarded to real servers)
With hearbeat active, the VIP is accessible for hours.
With it stopped and LVS-NAT configured manually, i get forwarded to the
real servers but at random times the VIP is unreachable (i get no icmp
reply from in from outeside the network, VIP replyes ok from within the
LAN).
Thank you for the help,
Cristi
|