RE: LVS in RedHat 8.0 - required components

pb <[email protected]>
Newsgroups gmane.linux.redhat.piranha
Message-ID <[email protected]>
Sumesh,

See my replies below....

--- Sumesh <[email protected]> wrote:
> Problem still remains same.I have to try my maximum
> to make it work in Redhat 8.0
> However I will have to adopt 7.3 Errata kernel in
> case of no luck.
> Please tell me how to update RedHat 7.3 Kernel
> errata for LVS to work.

If you download the errata kernel for 7.3 you should
do an rpm -ivh kernel*rpm  (including any other rpm's
that kernel may complain it needs). DO NOT do a "rpm
-Uvh" as that will remove your 8.0 kernel, and you
want to keep it.  When installed you should see BOTH
kernels for 7.3 and 8.0 installed (rpm -q kernel).
Check your /boot directory that all the Symbolic Links
point to the kernel files, and your
/boot/grub/menu.lst
config that it boots the kernel you want by default.

> Ans:Just http (port 80). Later I will have to run
> Apache/Tomcat combination on real servers which is
> the ultimate aim.

OK. 

>        Is there any change needed in latter case.

You would add to your lvs.cf config file and rc.lvs
script. That is, all protocols (ports) need to be
added to those files. See my example lvs.cf and rc.lvs
on my website.
 
> What does your NAT Router table look like?  Type
>          ipvsadm -Ln    or     -L 
> Ans:
> 
> IP Virtual Server version 1.0.4 (size=65536)
> 
> Prot LocalAddress:Port Scheduler Flags
> 
> -> RemoteAddress:Port Forward  Weight ActiveConn
> InActConn
> 
> TCP 151.8.35.100:80 wlc
> 
> -> 192.168.0.2:80          Masq    2000      0      
>        0 
> 
> -> 192.168.0.1:80           Masq   1000      0      
>        0 
> 

Looks OK.  I also see your "Masq" masquerading is
there too which is needed. 

Also, if you're users are using http to get to a LOGIN
webpage, you also have to consider adding persistance
= 900 to your lvs.cf for http service, but that is
another story.  

> Ans: I haven't setup rc.lvs script. Is it necessary
> as long as we are going to start services manually?

I would.  See my example rc.lvs on how to do this.
The example probably shows port 25 but you can use it
with your own ports.   There's one iptables statement
there, and a few ipvsadm statments in rc.lvs.  Make
use of this script and edit it for your ip addresses
and port(s).   Your /etc/rc.d/rc.local script should
contain an entry "/etc/rc.d/rc.lvs" to run it on
bootup.

> 
> Are you using pulse with two Piranha load balancers?
> In other words, do you start lvs with pulse, or lvs
> directly?  Do you even see the lvs daemon loaded,
> and
> the nanny daemons loaded to service each port ?
> Check with "ps afx"
> 
> Ans: I am starting LVS with pulse.

Since you are starting "lvs" daemon by executing the
"pulse" daemon (which is also true in my rc.lvs
script)
you need to make sure your (1) nanny damons are
starting for each port/service, and (2) your Virtual
IP address(es) are coming up, meaning the LVS VIP on
the public side, and the NAT Router VIP on the private
side.  Use "ps afx" to see if the pulse + lvs +
nanny..
are coming up, and "ifconfig" to see if your VIP
addresses (usually eth0:1 and eth1:1) are coming up.


Peter

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.