Difference between revisions of "BuildingCentOSXfsKernelModules"

From PDP/Grid Wiki
Jump to navigationJump to search
m
Line 1: Line 1:
= The XFS Kernel Module =
+
= The XFS Kernel Module for CentOS installation =
 +
 
 +
The XFS kernel module (kmod-xfs) form the CentOS PLUS repository may sometimes be missing -- the plus part sometimes does not get built or is built later. We then have to build it ourselves like described below.
 +
 
 +
Please replace 78.0.8.EL with the actual kernel version you want, and build on a host with the proper architecture (although not necessarily the actual kernel version you're building towards).
  
The XFS kernel module (kmod-xfs) form the CentOS PLUS repository may sometimes be missing -- the plus part
 
  
 
== x86_64 ==
 
== x86_64 ==

Revision as of 10:22, 17 December 2008

The XFS Kernel Module for CentOS installation

The XFS kernel module (kmod-xfs) form the CentOS PLUS repository may sometimes be missing -- the plus part sometimes does not get built or is built later. We then have to build it ourselves like described below.

Please replace 78.0.8.EL with the actual kernel version you want, and build on a host with the proper architecture (although not necessarily the actual kernel version you're building towards).


x86_64

rpm -i http://stal.nikhef.nl/centos/4.7/updates/x86_64/RPMS/kernel{-,-largesmp-,-xenU-,-smp-}devel-2.6.9-78.0.8.EL.x86_64.rpm
rpm -i http://spiegel.nikhef.nl/mirror/centos/4.7/extras/SRPMS/xfs-kmod-0.4-1.el4.2.6.9_55.EL.src.rpm

and then

cd  /usr/src/redhat/SPECS/
rpmbuild -ba --define 'kvariants ""' --define 'kversion 2.6.9-78.0.8.EL' --target=x86_64 kmod-xfs.spec
rpmbuild -ba --define 'kvariants "smp"' --define 'kversion 2.6.9-78.0.8.EL' --target=x86_64 kmod-xfs.spec
rpmbuild -ba --define 'kvariants "xenU"' --define 'kversion 2.6.9-78.0.8.EL' --target=x86_64 kmod-xfs.spec
rpmbuild -ba --define 'kvariants "largesmp"' --define 'kversion 2.6.9-78.0.8.EL' --target=x86_64 kmod-xfs.spec

and copy over to the repository:

scp -p  /usr/src/redhat/RPMS/x86_64/*xfs*78.0.8*rpm ndpfmgr@stal:/project/quattor/www/html/mirror/nikhef/


i686

rpm -i http://stal.nikhef.nl/centos/4.7/updates/i386/RPMS/kernel{-,-hugemem-,-xenU-,-smp-}devel-2.6.9-78.0.8.EL.i686.rpm
rpm -i http://spiegel.nikhef.nl/mirror/centos/4.7/extras/SRPMS/xfs-kmod-0.4-1.el4.2.6.9_55.EL.src.rpm

and then

cd  /usr/src/redhat/SPECS/
rpmbuild -ba --define 'kvariants ""' --define 'kversion 2.6.9-78.0.8.EL' --target=i686 kmod-xfs.spec
rpmbuild -ba --define 'kvariants "smp"' --define 'kversion 2.6.9-78.0.8.EL' --target=i686 kmod-xfs.spec
rpmbuild -ba --define 'kvariants "hugemem"' --define 'kversion 2.6.9-78.0.8.EL' --target=i686 kmod-xfs.spec
rpmbuild -ba --define 'kvariants "xenU"' --define 'kversion 2.6.9-78.0.8.EL' --target=i686 kmod-xfs.spec