Difference between revisions of "Compiling ipvsadm on different Linux distributions"
From LVSKB
(→Introduction) |
(→Red Hat Enterprise 3) |
||
Line 9: | Line 9: | ||
For IPVS patch for the Linux kernel 2.2, you need to use [[ipvsadm]] version 1.15. | For IPVS patch for the Linux kernel 2.2, you need to use [[ipvsadm]] version 1.15. | ||
− | == Red Hat Enterprise 3 == | + | == Red Hat Enterprise Linux 3 == |
+ | |||
+ | On Red Hat Enterprise Linux 3, make sure that kernel-source rpm is installed at system. | ||
+ | [root@penguin src]# rpm -q kernel-source | ||
+ | kernel-source-2.4.21-47.0.1.EL | ||
+ | [root@penguin src]# pwd | ||
+ | /usr/src | ||
+ | [root@penguin src]# ln -s linux-2.4.21-47.0.1.EL linux | ||
+ | |||
+ | Then, we can build the ipvsadm-1.21 rpm in the following command: | ||
+ | rpmbuild --rebuild ipvsadm-1.21-11.src.rpm | ||
== Red Hat Enterprise 4 == | == Red Hat Enterprise 4 == |
Revision as of 10:53, 3 December 2006
Introduction
Since IPVS interface to user-space is different in different Linux kernel versions, there are different versions of ipvsadm for IPVS inside the different Linux kernel versions.
For IPVS inside the Linux kernel 2.6, you need to use ipvsadm version 1.24 or later.
For IPVS inside the Linux kernel 2.4, you need to use ipvsadm 1.21 series.
For IPVS patch for the Linux kernel 2.2, you need to use ipvsadm version 1.15.
Red Hat Enterprise Linux 3
On Red Hat Enterprise Linux 3, make sure that kernel-source rpm is installed at system.
[root@penguin src]# rpm -q kernel-source kernel-source-2.4.21-47.0.1.EL [root@penguin src]# pwd /usr/src [root@penguin src]# ln -s linux-2.4.21-47.0.1.EL linux
Then, we can build the ipvsadm-1.21 rpm in the following command:
rpmbuild --rebuild ipvsadm-1.21-11.src.rpm