> Many thanks to Julian, Wensong, and Pablo. I'll give a new kernel/lvs
> combo a shot with the 'hidden' patch and corrected
> ifconfig'ing. After
> I figure it all out, I'll try to leave some newbie instructions behind
> for the next Red Hat 7.2 LVS-TUN guy that comes along. :-)
Many thanks again. I went ahead and upgraded to 2.4.17, and used the
"hidden" patch -- my LVS-DR cluster now works gorgeously. As I said, I
would post my notes
+---------------------------------------------------
| Dan Browning, Sr. Tech Consultant
| Kavod Technologies, 1498 SE Tech Center Pl Ste 170
| Vancouver, WA 98683 <dan.browning@xxxxxxxxx>
+---------------------------------------------------
"Whom are you?" said he, for he had been to night school.
-- George Ade
# Download directory
export D=/tmp/download
mkdir $D
cd $D
#kernel
wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.17.tar.gz
#hidden patch
wget http://www.linux-vs.org/~julian/hidden-2.4.5-1.diff
#IPVS patch
wget
http://www.linuxvirtualserver.org/software/kernel-2.4/linux-2.4.12-ipvs-
0.8.2.patch.gz
#net filter module - if you want to do just the module instead of the
big kernel patch above.
wget
http://www.linuxvirtualserver.org/software/kernel-2.4/ipvs-0.8.2.tar.gz
#ipvs admin
wget ftp://rpmfind.net/linux/redhatbeta/ha/i386/ipvsadm-1.17-2.i386.rpm
# Unpack new kernel
tar zxvf linux-2.4.17.tar.gz
# Unpack ipvs patch
gunzip linux-2.4.12-ipvs-0.8.2.patch.gz
# Unpack kernel
mv linux /usr/src/linux-2.4.17
cd /usr/src
# Recreate symlink
rm -f linux-2.4
ln -s linux-2.4.17 linux-2.4
ln -s linux-2.4.17 linux
# Apply "hidden" patch
cd linux-2.4.17
patch -p1 < $D/hidden-2.4.5-1.diff
Should see:
###############################
patching file include/linux/inetdevice.h
patching file include/linux/sysctl.h
Hunk #1 succeeded at 334 (offset 9 lines).
patching file net/ipv4/arp.c
Hunk #3 succeeded at 754 (offset -1 lines).
patching file net/ipv4/devinet.c
Hunk #1 succeeded at 756 (offset 20 lines).
Hunk #2 succeeded at 1013 (offset -4 lines).
Hunk #3 succeeded at 1079 (offset 20 lines).
patching file Documentation/filesystems/proc.txt
Hunk #1 succeeded at 1583 (offset 5 lines).
patching file Documentation/networking/ip-sysctl.txt
###############################
# Apply ipvs patch
patch -p1 < $D/linux-2.4.12-ipvs-0.8.2.patch
# ipvsadm 1.18-8, which is newer, is already installed (from piranha
project)
make clean
make mrproper
make menuconfig
make bzImage
make modules
make modules_install
make install #doesn't support GRUB yet. - or can copy the
arch/i386/boot/bzImage file manually
vi /boot/grub/grub.conf:
title 2.4.17_ipvs
root (hd0,0)
kernel /boot/vmlinuz-2.4.17 ro root=/dev/sda1
#now copy the /usr/src/linux-2.4.17 to the next linux box:
tar czf linux-2.4.17-dir.tgz /usr/src/linux-2.4.17/
scp linux-2.4.17-dir.tgz SERVER_TWO:/usr/src
#now unpack in SERVER_TWO
tar zxvf linux-2.4.17-dir.tgz
cd linux-2.4.17
make modules_install
make install
# do grub config again.
title 2.4.17_ipvs
root (hd0,0)
kernel /boot/vmlinuz-2.4.17 ro root=/dev/sda1
# reboot!
#######################################
After new kernels are compiled, try setting up the clustering again
On REALSERVER:
# Insert the ipip module, unlessed statically compiled into kernel
insmod ipip
# Make the tunl0 device up
ifconfig tunl0 0.0.0.0 up
# Start the hiding interface functionality
echo 1 > /proc/sys/net/ipv4/conf/all/hidden
# Hide all addresses for this tunnel device
echo 1 > /proc/sys/net/ipv4/conf/tunl0/hidden
# Configure a VIP on an alias of tunnel device
ifconfig tunl0:0 x.145.198.48 up
|