LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: problem installing ipvs on redhat

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: problem installing ipvs on redhat
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 30 Jun 2006 16:15:31 +0900 (JST)
Navin SONI wrote:
> hello all,
> 
> i am trying to install ipvs version ipvs-1.0.10 on redhat linux version 
> 2.4.21-37.ELsmp using the below mentioned procedure but getting
> following errors while running make.
> 
> if anybody can assist in installing it and help me know that how can i
> confgiure IP load balancing over it.
> 
> [root@dlhl0061 linux]# pwd
> /usr/src/linux
> 
> [root@dlhl0061 linux]# cat
> /tmp/IPVS/ipvs-1.0.10/linux_kernel_ksyms_c.diff |patch -p1
> patching file kernel/ksyms.c
> Hunk #1 succeeded at 452 with fuzz 2 (offset 325 lines).
> 
> [root@dlhl0061 linux]# cat
> /tmp/IPVS/ipvs-1.0.10/linux_net_netsyms_c.diff |patch -p1
> patching file net/netsyms.c
> Reversed (or previously applied) patch detected!  Assume -R? [n] y
> Hunk #1 succeeded at 273 with fuzz 2 (offset 25 lines).
> 
> 
> [root@dlhl0061 linux]# cd /tmp/IPVS/ipvs-1.0.10
> [root@dlhl0061 ipvs-1.0.10]# cd ipvs
> [root@dlhl0061 ipvs]# make
> gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS
> -DCONFIG_IP_VS_DEBUG -g -O2 -Wall -Wstrict-prototypes
> -I/usr/src/linux/include -include
> /usr/src/linux/include/linux/modversions.h   -c -o ip_vs_conn.o
> ip_vs_conn.c
> In file included from ip_vs_conn.c:49:
> ip_vs.h: In function `__ip_vs_get_out_rt':
> ip_vs.h:873: warning: implicit declaration of function `ip_route_output'
> ip_vs_conn.c: In function `ip_vs_bypass_xmit':
> ip_vs_conn.c:623: structure has no member named `pmtu'
> ip_vs_conn.c:650: warning: implicit declaration of function `ip_send'
> ip_vs_conn.c: In function `ip_vs_nat_xmit':
> ip_vs_conn.c:744: structure has no member named `pmtu'
> ip_vs_conn.c: In function `ip_vs_tunnel_xmit':
> ip_vs_conn.c:872: structure has no member named `pmtu'
> ip_vs_conn.c:878: structure has no member named `pmtu'
> ip_vs_conn.c:879: structure has no member named `pmtu'
> ip_vs_conn.c: In function `ip_vs_dr_xmit':
> ip_vs_conn.c:973: structure has no member named `pmtu'
> make: *** [ip_vs_conn.o] Error 1

I suspect that your kernel already has LVS patched in, so you can
probably use it as is. 

The errors that you are seeing probably relate to ipvs-1.0.10 expecting
a much neewer version of the kernel than 2.4.21+arbitary_redhat_changes
You will almost certainly need to backport the code, but as I said,
LVS is probably already there.

-- 
Horms                                           
H: http://www.vergenet.net/~horms/          W: http://www.valinux.co.jp/en/


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