LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS + keepalived problem

To: "Brett Elliott" <brettelliott@xxxxxxxxx>
Subject: Re: LVS + keepalived problem
Cc: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
From: "Navid Rahimi" <navid.rahimi@xxxxxxxxx>
Date: Thu, 7 Dec 2006 12:38:17 -0500
I actually did have a symlink from 2.6.9 to /usr/src/linux before I ran it.
so it should have found the correct version.h no?

On 12/7/06, Brett Elliott <brettelliott@xxxxxxxxx> wrote:

Ahah, I just ran into this problem.

Notice this:

% cat /usr/include/linux/version.h
#define UTS_RELEASE "2.4.20"

The configure script first looks in /usr/src/linux for version.h then
it looks in /usr/include. Try running

rpmbuild -bp --target i686 kernel-2.6.spec

That should generate version.h. Then do a sym link:

ln -s /usr/src/redhat/BUILD/kernel-2.6.16/linux-2.6.16.i686 /usr/src/linux

Run configure again and it should see that you're using the 2.6 kernel.

On 12/7/06, Navid Rahimi <navid.rahimi@xxxxxxxxx> wrote:
> Thanks for the reply...I do have all the modues. I found my
problem....there
> seems to be a problem in the spec file or how rpms are built, not sure
who
> to blame here.  I originally ran ./configure and made sure every thing
was
> ok then built the rpms and installed it...after carefully reviewing the
> rpmbuild output i noticed that it thinks i have kernel 2.4.20 while i
have
> 2.6.9. then it couldn't find some of the libraries and thus it didn't
> include ipvs support. the moral of the story: don't build the rpm!
>
> Navid
>
> On 12/6/06, J.Libak@xxxxxxxxxx <J.Libak@xxxxxxxxxx> wrote:
> >
> > Navid Rahimi wrote:
> > > Hi,
> > >
> > > I am running RHEL4 ( 2.6.9-42.0.3.ELsmp), ipvsadm v1.24, keepalived
> > > v1.1.13.
> > > I can get virtual ip addresses to fail-over but when I add a virtual
> > > service
> > > nothing gets added to LVS, ipvsadm -L shows nothing. I compiled both
> > > ipvsadm
> > > and keepalived from source. During the compliation I did make sure
IPVS
> > > framework/sync daemon support were enabled.  Yet no virtual services
> > > show up
> > > in ipvsadm. I am trying to setup a streamlined ha/load balancer i.e.
> > > the LVS
> > > router and real servers are the same.
> > > VIP: 10.1.1.100
> > > LVS routers/real servers :10.1.1.20, 10.1.1.30
> > >
> > > Any help or suggestions would be greatly appreciated.
> > >
> > > Thanks,
> > > Navid
> > Did you load the ip_vs module and other ip_vs_* modules? Does lsmod
show
> > them?
> > Did you use ipvsadm -A ... to add a new service?
> >
>
>
>
> --
> "We make a living by what we get, we make a life by what we give."
> -Sir Winston Churchill (1874 - 1965)
> _______________________________________________
> 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
>




--
"We make a living by what we get, we make a life by what we give."
-Sir Winston Churchill (1874 - 1965)

<Prev in Thread] Current Thread [Next in Thread>