LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS-DR ssh service

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS-DR ssh service
From: Graham Purcocks <grahamp@xxxxxxxxxxxxx>
Date: Thu, 03 Feb 2005 18:18:02 +0000
Yup, you didn't edit version.h. See the end it lists all the kernel versions. You only want your normal running kernel. I would take a copy of it before you edit it in case you want to recompile something else which needs the full version.

You need it to look like this, but yours will have 27.0.1.ELsmp left in it. I compiled for the latest kernel which is .0.2 as you can see.


#include <linux/rhconfig.h>
#define UTS_RELEASE "2.4.21-27.0.2.ELsmp"
#define LINUX_VERSION_CODE 132117
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

This will fix it.
Graham

Karen Shepelak wrote:
Hi Eric,

     Here is output from  ./configure as you requested:

[root@minos03 noarp-1.2.3]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking OS... Linux
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for vprintf... yes
checking for _doprnt... no
checking for memset... yes
checking for strerror... yes
checking for strtol... yes
checking kernel headers... found in /usr/src/linux/include
checking running kernel... 2.4.21-27.0.1.ELsmp
2.4.21-27.0.1.ELBOOT
2.4.21-27.0.1.ELhugemem
2.4.21-27.0.1.EL
checking module directory... /lib/modules/2.4.21-27.0.1.ELsmp
2.4.21-27.0.1.ELBOOT
2.4.21-27.0.1.ELhugemem
2.4.21-27.0.1.EL/local
checking module versioning... yes
checking kernel header <linux/netfilter_arp.h>... found
checking kernel netfiltering... yes
configure: creating ./config.status
config.status: creating Makefile
sed: file ./confstat2JPvGz/subs-3.sed line 6: Unterminated `s' command
config.status: creating control/Makefile
sed: file ./confstat2JPvGz/subs-3.sed line 6: Unterminated `s' command
config.status: creating module/Makefile
sed: file ./confstat2JPvGz/subs-3.sed line 6: Unterminated `s' command
config.status: creating config.h
config.status: executing depfiles commands
configure: -------------------------------------------------------------
configure: MasarLabs Arp Filter - noarp  1.2.3
configure: -------------------------------------------------------------
configure: kernel version:    2.4.21-27.0.1.ELsmp
2.4.21-27.0.1.ELBOOT
2.4.21-27.0.1.ELhugemem
2.4.21-27.0.1.EL
configure: kernel headers:    /usr/src/linux/include
configure: module versioning: yes
configure: install module:    /usr/local/lib/modules/2.4.21-27.0.1.ELsmp
2.4.21-27.0.1.ELBOOT
2.4.21-27.0.1.ELhugemem
2.4.21-27.0.1.EL/local
configure: install sbin:      /usr/local/sbin
configure: install man:       /usr/local/man
configure: -------------------------------------------------------------
configure: WARNING: kernel headers and running kernel have different versions
configure: WARNING: running kernel:    2.4.21-27.0.1.ELsmp
configure: WARNING: headers version:   2.4.21-27.0.1.ELsmp
2.4.21-27.0.1.ELBOOT
2.4.21-27.0.1.ELhugemem
2.4.21-27.0.1.EL

Eric - Linux wrote:

sent the output the configure

----- Original Message ----- From: "Karen Shepelak" <shepelak@xxxxxxxx>
To: "LinuxVirtualServer.org users mailing list."
<lvs-users@xxxxxxxxxxxxxxxxxxxxxx>; <grahamp@xxxxxxxxxxxxx>
Sent: Thursday, February 03, 2005 2:19 PM
Subject: Re: LVS-DR ssh service


I just tried to install the noarp module. I am using "
noarp-1.2.3.tar.gz" for 2.4.21-27.0.1.ELsmp
from http://www.masarlabs.com/ .   The instructions say to run
./configure which runs to completion
without error. Then the instructions say to run the "make" command. When
I run "make" I get the
following result:

[root@minos03 noarp-1.2.3]# make
make: *** No targets.  Stop.

[root@minos03 noarp-1.2.3]# pwd
/root/noarp-1.2.3

An ls of the makefile shows that it is empty.

[root@minos03 noarp-1.2.3]# ls -ltr Mak*
-rw-r--r--    1 1000     1000         3362 Nov  3  2003 Makefile.am
-rw-r--r--    1 1000     1000        21018 Nov  3  2003 Makefile.in
-rw-r--r--    1 root     root            0 Feb  3 10:50 Makefile

I tried another version of noarp tar file and get the same result.
Should I specify one of the
other Makefiles listed?

karen
-------------------------------------------------------

Graham Purcocks wrote:

Use the Noarp module with RHES3.0 it solves all this messing about.

The only problem is RHES3.0 has a version.h which compiles for all 3
versions and The Noarp configure doesn't cope with this. To fix, edit
out the #define UTS_RELEASE lines you are not using then configure and
compile. We have been using it for years the RH7, 9, and ES3 and it
works beautifully.

Joseph Mack wrote:

Karen Shepelak wrote:

Hi all,

     I am not having any luck getting ssh service to run to LVS
running on LTS3.0,
kernel 2.4.21-20.ELsmp. Main problem seems to be in getting rid of arp
problems.
Odd thing is that after having used the "Horms method" to the
realservers, telnet
service to LVS works ok. I tried installing the suggested "hidden"
patch
for this kernel to see if it would control the arp issues differently
enough to get ssh
service to work, but the patch will not install with this kernel.


If you can get telnet to work, then you should be able to get ssh to
work.
That you can't indicates that your system is not working as you've
described
it. Either you don't have the arp problem solved or the LVS isn't
load balancing
telnet.
I know people with distributions want to keep using the kernels that
come
with them, but for now try a plain vanilla kernel, which will accept
the hidden
patch. If you really want to go back to your distribution's kernel then
you can do that after you have your LVS working.

Joe


------------------------------------------------------------------------








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