Hi!
I did, what you want to do with SuSe 7.3.
This is the way, it worked for me:
- Install System: Set up the minimalistic system
- then add the following packages:
- iptables
- ipvsadm
- perl-Net_SSLeay
- Finally install
- heartbeat 0.4.9i and
- heartbeat-ldirectord
from the linux-ha website.
- Start the system(s).
(LVS is already included in the kernel)
Now it`s configuration time!
I use the following setup:
- LVS-NAT
- VIP 172.16.4.1 (is swapped by heartbeat)
- RIP1 192.168.11.50
- RIP2 192.168.11.51
- Gateway of Realservers: 192.168.11.1 (is swapped by heartbeat)
- Every LB has a fixed IP on eth0 and eth1
- Names of my LBs are lb1 and lb2
- Configure /etc/ha.d/ha.cf
logfile /var/log/ha-log
logfacility local0
keepalive 1
deadtime 5
serial /dev/ttyS0
baud 19200
udpport 694
udp eth0
nice_failback on
node lb1
node lb2
- Configure /etc/ha.d/haresources
lb1 IPaddr::192.168.4.1 IPaddr::192.168.11.1 ldirectord::www.cf
- Configure /etc/ha.d/conf/www.cf
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
# A sample virual with a fallback that will override the gobal
setting
virtual=172.16.4.1:80
real=192.168.11.50:80 masq
real=192.168.11.51:80 masq
#fallback=127.0.0.1:80
service=http
request="index.html"
receive="test-www"
scheduler=wlc
#persistent=600
protocol=tcp
- Configure /etc/ha.d/authkeys
- Start heartbeat on both LBs
Regards,
Thomas
-----Ursprüngliche Nachricht-----
Von: Chris [mailto:cditri@xxxxxxxxxxxx]
Gesendet: Mittwoch, 9. Januar 2002 20:19
An: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Confused...
Hello everyone:
I have been struggling with this about a week now -- non-stop... Please
indulge me, I could REALLY use the help.
This is what we want:
-----------------
| Internet |
------------------
|
------------------
| Router |
-------------------
|
-------------------
| Firewall |
--------------------
| |
/ \
/ \
-------------- ----------------
| Director A |+ +| Director B |
-------------- -----------------
| |
----------------------------------------------------------------------------
-------
| | |
------------- ------------ --------- ---------------
| Web C | | DB D | | DB E | | Web F |
------------- ------------ --------- ---------------
We are looking for redundancy here. We have one website to serve. We
would have that site synced between machines C and F. These websites would
pull data from the Data Base machines D and E. The load balancers would do
what you would expect, i.e. balance the traffic.
I started out at Ultramonkey, I have reall all of the documentation I could
find there, and got nowhere (but frustrated). They start you out by
telling you to configure heartbeat, but give you no clue on how to do this.
(let's forget right now that Ultramonkey makes no mention of IPTABLES, they
use IPCHAINS). So I go to linux-ha.org. I get the Getting Started
Guide. It doesn't even mention half of the things brought up in the
example script given by ultramonkey (namely STONITH), for a while, I ignore
it, and put together a couple of config scrips... they seem to work, but I
have no idea what I have accomplished UM says that heartbeat is
responsible for serving up the floating IP that would be shared by my two
directors... Is that true? I can't find ANYTHING in the docs that talks
about how to do such a thing!
So... I look into STONITH, I find out this means Shoot The Other Node In
The Head, I find out it is a way to prevent patitioning of a cluster -- but
I can't find ANYTHING on how to use it! So I decide maybe I can start with
ldirectord, but that is run by Heartbeat! That left me with trying to
start with LVS... I knew I had to recompile the kernel, that did not scare
me as I have done this oodles of times. I got the new kernel 2.4.17 and
the newest stable releases of ipvs and the patch. I have successfuly
compiled my kernel (following the mini-howto) and everything looked great
-- but -- when I try to run ipvsadm it tells me: "could not open the
/proc/net/ip_masq/vs file -- Are you sure the IP virtual server is
suppported by the kernel). I read on a news group that that may be because
I didn't have the modules loaded up, so I loaded every module in
/lib/modules/2.4.17/kernel/net/ipv4/ipvs -- and that didn't help (didn't
think it would but nothing else was!).
I have all the howtos, all of them make an awful lot of assumptions, and
most of them are too terse. I am reading the full LVS howto but it referrs
me to the minihowto before I continue!
This should not be so complicated! To top this all off, I have to have
this done in 2 weeks! A deadline made for me -- not by me.
Can someone please help me at least get started? *Which one of this is
first?* *Why doesn't ipvsadm recognize the new kernel?*
Help!
Thank you so much in advance.
Chris
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|