Installing LVS in CentOS

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.