Thank you Roy.
I tried the same way, well it is only a quick hack but it seems to be working.
The attached file contains settings for the kernel-2.6.9-42.0.2.EL.src.rpm
together with lustre-1.4.7.tar.gz .
The installation procedure is as follows:
0. rpm -ihv kernel-2.6.9-42.0.2.EL.src.rpm, should unpack all redhat kernel
patches, configs and linux-2.6.9.tar.bz2 to /usr/src/redhat/SOURCES and create a
kernel-2.6.spec in /usr/src/redhat/SPECS
1. place copy.sh into lustre-1.4.7/lustre/kernel_patches/patches and run, copies
all lustre patches for x86_64 to /usr/src/redhat/SOURCES
2. replace /usr/src/redhat/SPECS/kernel-2.6.spec with the modified version
(lustre patches are included as patched 20001-20028, the deployment of
Patch20018: qsnet-rhel4-2.6.patch is disabled, because this generated an error
on my system)
3. replace /usr/src/redhat/SOURCES/kernel-2.6.9-x86_64.config
kernel-2.6.9-x86_64-largesmp.config kernel-2.6.9-x86_64-smp.config with the
modifed versions, which are the original luster kernel configs with infiniband
support enabled
4. run rpmbuild -qa /usr/src/redhat/SPECS/kernel-2.6.spec
This will give you the following rpms:
kernel-2.6.9-42.0.2.EL.x86_64.rpm
kernel-largesmp-2.6.9-42.0.2.EL.x86_64.rpm
kernel-smp-devel-2.6.9-42.0.2.EL.x86_64.rpm
kernel-debuginfo-2.6.9-42.0.2.EL.x86_64.rpm
kernel-largesmp-devel-2.6.9-42.0.2.EL.x86_64.rpm
kernel-devel-2.6.9-42.0.2.EL.x86_64.rpm
kernel-smp-2.6.9-42.0.2.EL.x86_64.rpm
To configure lustre-1.4.7 create a link ln -s
/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9 /usr/src/linux and run
lustre-1.4.7 ./configure and make rpms. This generates the following rpms:
lustre-1.4.7-2.6.9_42.0.2.ELlargesmp_200609191116.x86_64.rpm
lustre-modules-1.4.7-2.6.9_42.0.2.ELlargesmp_200609191116.x86_64.rpm
lustre-debuginfo-1.4.7-2.6.9_42.0.2.ELlargesmp_200609191116.x86_64.rpm
lustre-source-1.4.7-2.6.9_42.0.2.ELlargesmp_200609191116.x86_64.rpm
This is still suboptimal, because I wanted to have all rpms for lustre and not
only the largesmp ones. But nevertheless the largesmp ones seem to be working
when install together with the largsmp kernel packages. The smp and largesmp
kernel configs are the same, so it''s only a naming problem.
Sorry for this is only a quick hack,
Jan
Biomathematics and Bioinformatics Division
Rothamsted Research, UK
-----Original Message-----
From: lustre-devel-bounces@clusterfs.com
[mailto:lustre-devel-bounces@clusterfs.com] On Behalf Of Roy Dragseth
Sent: 19 September 2006 22:14
To: lustre-devel@clusterfs.com
Subject: Re: [Lustre-devel] RedHat kernel packages
I had to spin my own rpms, but would surely prefer to use the provided ones if
I could figure out how to build the infiniband stack against them.
Attached you''ll find the spec file I''m using. It only
contains the most
neccessary changed from the RedHat one (well, CentOS actually) it is for
2.6.9-34 and lustre 1.4.6.4.
All you need to use it is to install (not rebuild) the original
kernel-2.6.9-34.EL.src.rpm, move the lustre-XXX.tar.gz into SOURCES and do
rpmbuild -ba /path/to/the/attached/spec/file
The changes amounts to less than 20 lines, it seems to work pretty well, it is
using the kernel configs from the lustre tarball instead of the ones in the
kernel. If you want to build for x86_64 you will need to do a slight mod in
the copying of the kernel configs, I only build for i686 and ia64 so I
haven''t bothered to set up anything else.
Hope you find it useful,
r.
--
The Computer Center, University of Troms?, N-9037 TROMS?, Norway.
phone:+47 77 64 41 07, fax:+47 77 64 41 00
Roy Dragseth, High Performance Computing System Administrator
Direct call: +47 77 64 62 56. email: royd@cc.uit.no
-------------- next part --------------
A non-text attachment was scrubbed...
Name: specs.tar.gz
Type: application/x-gzip
Size: 107574 bytes
Desc: specs.tar.gz
Url :
http://mail.clusterfs.com/pipermail/lustre-devel/attachments/20060920/958c4036/specs.tar-0001.gz