RedHat 8.09.0 LVS Installation Manual (1)

xiaoxiao2021-03-06  41

1 Introduction:

After 9.0, the ipvsadm is removed, so if you want to use LVS (Linux Virtual Server), you have to recompile the core (Kernel), and the compilation core is a poor boring thing, whether it is Make Menuconfig, Make Xconfig Make config, a bunch of drivers is not very understanding, this article uses some tips, it is relatively simple, but if you have some uncommon hard devices, please think about compile, or use Linux's Load Module feature loads the hardware driver into KERNEL.

RedHat 8.0 When the full installation is complete, the preset has supported IPvs, but he does not support the -noarp network card setting option, because there is no this -Noarp option, the LVS cannot set LVS / DR in the same network segment. LVS / IP Tunnel will encounter ARP Problem, so you have to recompile the core, which will update Kernel to a new version, and the new core is relatively new, and IPvs is not supported.

First of all, let's introduce LVS in the end, in fact, he is a cluster technology that reaches Lvs / Direct Routing (DR), LVS / IP Tunnel, LVS / NAT through support IPvs, See the official website of the LVS for details. What is the use of these technologies? In fact, it is to be used as a high availability software, UNIX big plant Sun, HP, IBM, SCO, etc. have software, but it has to make a lot of money, and we have no money, I have to use Open Source, and the benefits of Open SOURCE It is to achieve a similar function, but don't need to spend money. ?

The following installation content is mainly referring to the following web pages, thank you very much for providing basic knowledge. If you don't know what LVS is, look at the following article, you can have a book to practice basic efforts, so as not to know the next content. What do I write again. http://linux.vbird.idv.tw/ Bird's Linux private food (Linux basic knowledge)

http://www.adj.idv.tw/server/linux_lvs.php Sets LVS on Redhat 7.3

Http://www.linuxvirtualserver.org/ LVS official website

http://www.linuxaid.com.cn/Articles/2/0/202490941.SHTML LinuxAID Description (on)

Http://www.linuxaid.com.cn/Articles/8/0/807154206.shtml LinuxAID Description (below)

Http://mail.incredimail.com/howto/lvs/install/ Alex's website, important patch crashed from here

Attached one:

If you refer to the law on the official website of Linux Virtual Server, I compiled more than ten times in Redhat 8, I can't do it, and then I found it because Redhat was in the Source of Kernel-2.4.20-19.8. IPvs program The code takes off and the CIPE version is not.

At present, the Redhat version of Linux Virtual Server is 7.3, and others are not very stable, interested in seeing Google.

The following methods apply to the 2.4 kernel, mainly used on Redhat 8.0, but RedHat 9.0 should be similar. Part i: Compilation core

1, first install RedHat 8.0

Select all installation. Close some unused services with and activate VSFTP. That is, Kernel's recompilation is started. At this time, the kernel version is 2.4.18-18.4.

2, download oprofile

First, Google finds the oprofile version is greater than 0.4, because this RPM is required when installing Kernel 2.4.20-18.8.rpm, if you do not find RPM, search OPROFILE-0.4-XX.SRC.rpm.

2.1, install OPROFILE

# rpm -ivh oprofile-0.4-44.8.1.src.rpm

# CD / usr / src / redhat / specs

# vi oprofile.spec will be (buildpreeq: kernel-source> = 2.4.20) with # mark

# rpmbuild -bb oprofile.spec

# CD / USR / SRC / RedHat / RPMS / I386 /

# rpm -ivh oprofile-0.4-44.8.1.i386.rpm (Install Oprofile)

3, install the kernel

Install kernel 2.4.20-18.8 kernel, http://ftp.nsysu.edu.tw/linux/redhat/updates/ RPM core of Kernel-2.4.20-18.8, because I have three in my test environment, one The Department is my NoteBook (P4 CPU, 512MB RAM), one is a machine with 4GB RAM and two CPUs (PIII 700), one is a computer with 1GB RAM with two Hyper Threading P4 CPUs. So I have a total of three rpm, respectively.

KERNEL-2.4.20-18.8.I686.rpm 02-jun-2003 23:34 13.3m

KERNEL-BIGMEM-2.4.20-18.8.I686.RPM 02-JUN-2003 23:34 13.9M

KERNEL-SMP-2.4.20-18.8.i686.rpm 02-jun-2003 23:34 13.9m

Then install the above RPM first on each unit: If you don't know the bottom, you can use the uname -r

2.4.20-18.8bigmem (use BIGMEM version)

# rpm -ivh kernel-2.4.20-18.8.i686.rpm

Check if grub (/boot/grub/grub.conf) or lilo (/etc/lilo.conf) setting is correct?

If it is correct, reactivate the machine (shutdown -i 6 count), boot with 2.4.20-18.8, check if there is any error.

4, install the kernel source code

Then get http://www.redhat.com crawl Kernel-Source-2.2.20-19.8.i386.rpm this KERNEL's core. use

# rpm -ivh kernel-Source-2.4.20-19.8.i386.rpm

Installation, he will establish two directories:

/usr/src/linux-2.4.20-19.8 (Directory)

/usr/src/linux-2.4->/usr/src/linux-2.4.20-19.8 (Symbolic Link)

But we have to build another Symbolic Link

#LN -s ./linux-2.4.20-19.8 ./linux

Because when you want to go to IPVS Patch, he will definitely link to / usr / src / linux, so you have to establish this Soft Link. 5, because we have previously have an RPM file installed 2.4.20-18.8, so you can find it in the / boot directory.

-rw-r - r - 1 root root 44764 May 29 19:49 Config-2.4.20-18.8

This file will copy this file COPY to /USR/SRC/LINUX /.CONFIG

# cp /boot/config-2.4.20-18.8 /usr/src/linux/.config

Because I want to use make Oldconfig to go ... he default will read /usr/src/linux/.config this file

Note: This is what I said, because I have previously used Make Config, make menuconfig, but because there is too much, I can't see why there is a problem, I have a problem, I have a problem. Inadvertently discovered by I found 2.4.20-18.8, the Config file of 2.4.20-19.8 is exactly the same as the Config file of 2.4.20-19.8, plus the key Oldconfig in the kernel's readme will read, .config this file, so I will I think that this method may be feasible, because 2.4.20-18.8 can activate the machine normally, it is impossible to use the same CONFIG file, 2.4.20-19.8 can not be activated. Other versions should be similar, first install a similar version of Kernel, and use his config to re-compile to support IPVS's kernel.

转载请注明原文地址:https://www.9cbs.com/read-62867.html

New Post(0)