Introduction to a LVSLVS has a similar point to other application-based or IP-based load balancing applications: One and more load schedulers and even hundreds of thousands of real servers.
Two LVS installation
2.1 Check if the Load Balancer server has supported Ipvs. Most Linux distributions have integrated the Ipvs.
# Modprobe-l | grep Ipvs
If there is an output similar to the following, the server has supported Ipvs
2.2 Check if there is a required dependency package: Kernel-devel, gcc, OpenSSL, Openssl-devel, popt.
# rpm-q GCC
# rpm-q OpenSSL
# rpm-q Openssl-devel
# rpm-q Popt
# rpm-q Kernel-devel
An output similar to the following indicates that the server has installed these dependent packages:
If the server outputs "package * * is not installed", it indicates that the packages are not installed. Can be installed using Yum.
For example: Yum install-y kernel-devel*.
2.3 Installing a static resource pack
# yum Install libnl* libpopt* popt-static-y
2.4 Install Ipvsadm on the Load Balancer server. Download Ipvsadm software on official website: (http://www.linuxvirtualserver.org).
View the kernel version. Download the kernel version corresponding to the IPVSADM from the official website. Here the kernel is 2.6.32, the Ipvsadm version that can be downloaded is: ipvsadm-1.26.
# rpm-q Kernel-devel
Kernel-devel-2.6.32-573.12.1.el6.x86_64
2.5 Build the soft chain required for the installation, the kernel version and the software directory need to be consistent.
# rpm-q Kernel-devel
Kernel-devel-2.6.32-573.12.1.el6.x86_64
# ln-s/usr/src/kernels/2.6.32-573.12.1.el6.x86_64/usr/src/linux
2.6 Decompression
# Cd/usr/local/src/lvs
# tar ZXVF ipvsadm-1.26.tar.gz
2.7 Compiling the installation
# CD ipvsadm-1.26
# Make && make install
2.8 If there are no error prompts, the installation succeeds, using the Ipvsadm command to verify
# Ipvsadm
Installing LVS in CentOS