LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Module is wrong version

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Module is wrong version
From: Marc Tardif <mtardif@xxxxxxxxxxx>
Date: Fri, 22 Aug 2003 12:26:37 -0400
Joseph Mack wrote:
Marc Tardif wrote:

Joseph Mack wrote:

>
> Did you activate all the right switches in the kernel compile (if you
> compiled it yourself)?


<M> ipchains (2.2-style) support
<M> ipfwadm (2.0-style) support


these last two will play havoc with any use of iptables (and presumably
netfilter). I would turn these off and recompile. For the moment
make sure these modules aren't loaded when you run ipvsadm.

I have turned both options off, rebuilt my kernel and modules, rebooted and I still get the same error message. I have then tried a previous kernel version along with the corresponding virtual server patch. These were my exact steps:

# cd /usr/src
# wget ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2
# tar -xjf linux-2.4.20.tar.bz2
# ln -s linux-2.4.20 linux
# wget http://www.linuxvirtualserver.org/software/kernel-2.4/linux-2.4.20-ipvs-1.0.9.patch.gz
# cd linux
# gunzip -c ../linux-2.4.20-ipvs-1.0.9.patch.gz | patch -p1
# make menuconfig
Networking options  --->
  <*> Packet socket
  [ ]   Packet socket: mmapped IO
  < > Netlink device emulation
  [*] Network packet filtering (replaces ipchains)
  [ ]   Network packet filtering debugging
  [ ] Socket Filtering
  <*> Unix domain sockets
  [*] TCP/IP networking
  [*]   IP: multicasting
  [ ]   IP: advanced router
  [ ]   IP: kernel level autoconfiguration
  < >   IP: tunneling
  < >   IP: GRE tunnels over IP
  [ ]   IP: multicast routing
  [ ]   IP: ARP daemon support (EXPERIMENTAL)
  [ ]   IP: TCP Explicit Congestion Notification support
  [ ]   IP: TCP syncookie support (disabled per default)
    IP: Netfilter Configuration  --->
    <M> IP tables support (required for filtering/masq/NAT)

    IP: Virtual Server Configuration  --->
    <M> virtual server support (EXPERIMENTAL)
    [*]   IP virtual server debugging
    (12)   IPVS connection table size (the Nth power of 2)
    --- IPVS scheduler
    <M>   round-robin scheduling
    <M>   weighted round-robin scheduling
    <M>   least-connection scheduling scheduling
    <M>   weighted least-connection scheduling
    <M>   locality-based least-connection scheduling
    <M>   locality-based least-connection with replication scheduling
    <M>   destination hashing scheduling
    <M>   source hashing scheduling
    <M>   shortest expected delay scheduling
    <M>   never queue scheduling
    --- IPVS application helper
    <M>   FTP protocol helper

  < >   The IPv6 protocol (EXPERIMENTAL)
  < >   Kernel httpd acceleration (EXPERIMENTAL)
  [ ] Asynchronous Transfer Mode (ATM) (EXPERIMENTAL)
  < > 802.1Q VLAN Support
  ---
  < > The IPX protocol
  < > Appletalk protocol support
  Appletalk devices  --->
  < > DECnet Support
  < > 802.1d Ethernet Bridging
  < > CCITT X.25 Packet Layer (EXPERIMENTAL)
  < > LAPB Data Link Driver (EXPERIMENTAL)
  [ ] 802.2 LLC (EXPERIMENTAL)
  [ ] Frame Diverter (EXPERIMENTAL)
  < > Acorn Econet/AUN protocols (EXPERIMENTAL)
  < > WAN router
  [ ] Fast switching (read help!)
  [ ] Forwarding between high speed interfaces

# make dep
# make bzImage
# make modules
# make modules_install
# cp bzImage /boot/vmlinuz-2.4.20
# cp System.map /boot/System.map-2.4.20

Reboot the right kernel

# cd /usr/src
# wget http://www.linuxvirtualserver.org/software/kernel-2.4/ipvs-1.0.9.tar.gz
# tar -xzf ipvs-1.0.9.tar.gz
# cd ipvs-1.0.9/ipvs
# make -C ipvsadm
# insmod -v ip_vs
  xftw starting at /lib/modules/boot lstat on /lib/modules/boot failed
  xftw starting at /lib/modules/2.4.20
  xftw_readdir /lib/modules/2.4.20
  pruned build
  pruned modules.dep
  pruned modules.generic_string
  pruned modules.ieee1394map
  pruned modules.isapnpmap
  pruned modules.parportmap
  pruned modules.pcimap
  pruned modules.pnpbiosmap
  pruned modules.usbmap
  type 2 /lib/modules/2.4.20/kernel
  xftw_readdir /lib/modules/2.4.20/kernel
  user function /lib/modules/2.4.20/kernel
  type 2 /lib/modules/2.4.20/kernel/drivers
  xftw_readdir /lib/modules/2.4.20/kernel/drivers
  user function /lib/modules/2.4.20/kernel/drivers
  type 2 /lib/modules/2.4.20/kernel/drivers/net
  xftw_readdir /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net/dummy.o
  type 2 /lib/modules/2.4.20/kernel/net
  xftw_readdir /lib/modules/2.4.20/kernel/net
  user function /lib/modules/2.4.20/kernel/net
  type 2 /lib/modules/2.4.20/kernel/net/ipv4
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4
  user function /lib/modules/2.4.20/kernel/net/ipv4
  type 2 /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_dh.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_ftp.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lblc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lblcr.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_nq.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_rr.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_sed.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_sh.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_wlc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_wrr.o
  type 2 /lib/modules/2.4.20/kernel/net/ipv4/netfilter
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4/netfilter
  user function /lib/modules/2.4.20/kernel/net/ipv4/netfilter
  user function /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ip_tables.o
  type 2 /lib/modules/2.4.20/pcmcia
  xftw_readdir /lib/modules/2.4.20/pcmcia
  user function /lib/modules/2.4.20/pcmcia
  xftw starting at /lib/modules/2.4 lstat on /lib/modules/2.4 failed
  xftw starting at /lib/modules/kernel lstat on /lib/modules/kernel failed
  xftw starting at /lib/modules/fs lstat on /lib/modules/fs failed
  xftw starting at /lib/modules/net lstat on /lib/modules/net failed
  xftw starting at /lib/modules/scsi lstat on /lib/modules/scsi failed
  xftw starting at /lib/modules/block lstat on /lib/modules/block failed
  xftw starting at /lib/modules/cdrom lstat on /lib/modules/cdrom failed
  xftw starting at /lib/modules/ipv4 lstat on /lib/modules/ipv4 failed
  xftw starting at /lib/modules/ipv6 lstat on /lib/modules/ipv6 failed
  xftw starting at /lib/modules/sound lstat on /lib/modules/sound failed
  xftw starting at /lib/modules/fc4 lstat on /lib/modules/fc4 failed
  xftw starting at /lib/modules/video lstat on /lib/modules/video failed
  xftw starting at /lib/modules/misc lstat on /lib/modules/misc failed
  xftw starting at /lib/modules/pcmcia lstat on /lib/modules/pcmcia failed
  xftw starting at /lib/modules/atm lstat on /lib/modules/atm failed
  xftw starting at /lib/modules/usb lstat on /lib/modules/usb failed
  xftw starting at /lib/modules/ide lstat on /lib/modules/ide failed
xftw starting at /lib/modules/ieee1394 lstat on /lib/modules/ieee1394 failed
  xftw starting at /lib/modules/mtd lstat on /lib/modules/mtd failed
  xftw starting at /lib/modules/boot lstat on /lib/modules/boot failed
  xftw starting at /lib/modules/2.4.20
  xftw_readdir /lib/modules/2.4.20
  pruned build
  pruned modules.dep
  pruned modules.generic_string
  pruned modules.ieee1394map
  pruned modules.isapnpmap
  pruned modules.parportmap
  pruned modules.pcimap
  pruned modules.pnpbiosmap
  pruned modules.usbmap
  type 2 /lib/modules/2.4.20/kernel
  xftw_readdir /lib/modules/2.4.20/kernel
  user function /lib/modules/2.4.20/kernel
  type 2 /lib/modules/2.4.20/kernel/drivers
  xftw_readdir /lib/modules/2.4.20/kernel/drivers
  user function /lib/modules/2.4.20/kernel/drivers
  type 2 /lib/modules/2.4.20/kernel/drivers/net
  xftw_readdir /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net/dummy.o
  type 2 /lib/modules/2.4.20/kernel/net
  xftw_readdir /lib/modules/2.4.20/kernel/net
  user function /lib/modules/2.4.20/kernel/net
  type 2 /lib/modules/2.4.20/kernel/net/ipv4
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4
  user function /lib/modules/2.4.20/kernel/net/ipv4
  type 2 /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs.o
  Using /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs.o
  Symbol version prefix ''

# insmod ip_vs_wlc
  xftw starting at /lib/modules/boot lstat on /lib/modules/boot failed
  xftw starting at /lib/modules/2.4.20
  xftw_readdir /lib/modules/2.4.20
  pruned build
  pruned modules.dep
  pruned modules.generic_string
  pruned modules.ieee1394map
  pruned modules.isapnpmap
  pruned modules.parportmap
  pruned modules.pcimap
  pruned modules.pnpbiosmap
  pruned modules.usbmap
  type 2 /lib/modules/2.4.20/kernel
  xftw_readdir /lib/modules/2.4.20/kernel
  user function /lib/modules/2.4.20/kernel
  type 2 /lib/modules/2.4.20/kernel/drivers
  xftw_readdir /lib/modules/2.4.20/kernel/drivers
  user function /lib/modules/2.4.20/kernel/drivers
  type 2 /lib/modules/2.4.20/kernel/drivers/net
  xftw_readdir /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net/dummy.o
  type 2 /lib/modules/2.4.20/kernel/net
  xftw_readdir /lib/modules/2.4.20/kernel/net
  user function /lib/modules/2.4.20/kernel/net
  type 2 /lib/modules/2.4.20/kernel/net/ipv4
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4
  user function /lib/modules/2.4.20/kernel/net/ipv4
  type 2 /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_dh.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_ftp.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lblc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lblcr.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_nq.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_rr.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_sed.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_sh.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_wlc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_wrr.o
  type 2 /lib/modules/2.4.20/kernel/net/ipv4/netfilter
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4/netfilter
  user function /lib/modules/2.4.20/kernel/net/ipv4/netfilter
  user function /lib/modules/2.4.20/kernel/net/ipv4/netfilter/ip_tables.o
  type 2 /lib/modules/2.4.20/pcmcia
  xftw_readdir /lib/modules/2.4.20/pcmcia
  user function /lib/modules/2.4.20/pcmcia
  xftw starting at /lib/modules/2.4 lstat on /lib/modules/2.4 failed
  xftw starting at /lib/modules/kernel lstat on /lib/modules/kernel failed
  xftw starting at /lib/modules/fs lstat on /lib/modules/fs failed
  xftw starting at /lib/modules/net lstat on /lib/modules/net failed
  xftw starting at /lib/modules/scsi lstat on /lib/modules/scsi failed
  xftw starting at /lib/modules/block lstat on /lib/modules/block failed
  xftw starting at /lib/modules/cdrom lstat on /lib/modules/cdrom failed
  xftw starting at /lib/modules/ipv4 lstat on /lib/modules/ipv4 failed
  xftw starting at /lib/modules/ipv6 lstat on /lib/modules/ipv6 failed
  xftw starting at /lib/modules/sound lstat on /lib/modules/sound failed
  xftw starting at /lib/modules/fc4 lstat on /lib/modules/fc4 failed
  xftw starting at /lib/modules/video lstat on /lib/modules/video failed
  xftw starting at /lib/modules/misc lstat on /lib/modules/misc failed
  xftw starting at /lib/modules/pcmcia lstat on /lib/modules/pcmcia failed
  xftw starting at /lib/modules/atm lstat on /lib/modules/atm failed
  xftw starting at /lib/modules/usb lstat on /lib/modules/usb failed
  xftw starting at /lib/modules/ide lstat on /lib/modules/ide failed
xftw starting at /lib/modules/ieee1394 lstat on /lib/modules/ieee1394 failed
  xftw starting at /lib/modules/mtd lstat on /lib/modules/mtd failed
  xftw starting at /lib/modules/boot lstat on /lib/modules/boot failed
  xftw starting at /lib/modules/2.4.20
  xftw_readdir /lib/modules/2.4.20
  pruned build
  pruned modules.dep
  pruned modules.generic_string
  pruned modules.ieee1394map
  pruned modules.isapnpmap
  pruned modules.parportmap
  pruned modules.pcimap
  pruned modules.pnpbiosmap
  pruned modules.usbmap
  type 2 /lib/modules/2.4.20/kernel
  xftw_readdir /lib/modules/2.4.20/kernel
  user function /lib/modules/2.4.20/kernel
  type 2 /lib/modules/2.4.20/kernel/drivers
  xftw_readdir /lib/modules/2.4.20/kernel/drivers
  user function /lib/modules/2.4.20/kernel/drivers
  type 2 /lib/modules/2.4.20/kernel/drivers/net
  xftw_readdir /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net
  user function /lib/modules/2.4.20/kernel/drivers/net/dummy.o
  type 2 /lib/modules/2.4.20/kernel/net
  xftw_readdir /lib/modules/2.4.20/kernel/net
  user function /lib/modules/2.4.20/kernel/net
  type 2 /lib/modules/2.4.20/kernel/net/ipv4
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4
  user function /lib/modules/2.4.20/kernel/net/ipv4
  type 2 /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  xftw_readdir /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_dh.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_ftp.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lblc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lblcr.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_lc.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_nq.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_rr.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_sed.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_sh.o
  user function /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_wlc.o
  Using /lib/modules/2.4.20/kernel/net/ipv4/ipvs/ip_vs_wlc.o
  Symbol version prefix ''

# ipvsadm -A -t 192.168.0.2:80 -s wlc
# ipvsadm -a -t 192.168.0.2:80 -r 10.9.201.255:80 -m
Module is wrong version

--
Marc Tardif
Sitepak
(514) 866-8883

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