Difference between revisions of "Compiling ipvsadm on different Linux distributions"

From LVSKB
Jump to: navigation, search
(Red Hat Enterprise 3)
(Red Hat Enterprise 4)
Line 23: Line 23:
 
== Red Hat Enterprise 4 ==
 
== Red Hat Enterprise 4 ==
  
 +
On Red Hat Enterprise Linux 4, make sure that kernel-source rpm is installed at system.
 +
[root@cheetah src]# rpm -q kernel-source
 +
kernel-source-2.6.9-42.0.3.EL
 +
[root@cheetah src]# pwd
 +
/usr/src
 +
[root@cheetah src]# ln -s linux-2.6.9-42.0.3.EL linux
 +
 +
Then, we can build the ipvsadm-1.24 rpm in the following command:
 +
rpmbuild --rebuild ipvsadm-1.24-6.src.rpm
  
 
[[Category:IPVS]]
 
[[Category:IPVS]]

Revision as of 02:31, 10 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

Red Hat Enterprise 4

On Red Hat Enterprise Linux 4, make sure that kernel-source rpm is installed at system.

[root@cheetah src]# rpm -q kernel-source
kernel-source-2.6.9-42.0.3.EL
[root@cheetah src]# pwd
/usr/src
[root@cheetah src]# ln -s linux-2.6.9-42.0.3.EL linux

Then, we can build the ipvsadm-1.24 rpm in the following command:

rpmbuild --rebuild ipvsadm-1.24-6.src.rpm