Hi,

There is a kernel-source for i686.  For now I'm just using that and running:

  107  cp /boot/config-`uname -r` .config
  108  make clean
  109  make oldconfig
  110  make include/asm
  111  make include/linux/version.h
  112  make SUBDIRS=scripts

before pointing the AFS and SUN RDAC module compiles against it.  I hope
that will work, none of the patches seem to be x86_64 specific.

On the "how to build lustre kernel rpm's" issue, until today, I've had to do
that since the local security updates were ahead of the lustre kernel.  I'm
including my notes from the 1.6.1 build along with my spec file in case
anybody can benefit from it. I'll bet clusterfs.com has a better one.

Stuart

On 8/30/07, Kilian CAVALOTTI <[EMAIL PROTECTED]> wrote:
>
> On Thursday 30 August 2007 12:29:02 pm Brian J. Murrell wrote:
> > We do supply a kernel-source rpm with every release.  For example,
> > for 1.4.11:
>
> Speaking of which, it looks like this very kernel-source RPM is missing
> for the 1.6.2 release, at least in the rhel-2.6-x86_64 directory:
>
>
> www.clusterfs.com/downloads/public/Lustre/v1.6/Production/1.6.2/rhel-2.6-x86_64
>
> kernel-lustre-smp-2.6.9-55.0.2.EL_lustre.1.6.2.x86_64.rpm
> lustre-1.6.2-2.6.9_55.0.2.EL_lustre.1.6.2smp.x86_64.rpm
> lustre-debuginfo-1.6.2-2.6.9_55.0.2.EL_lustre.1.6.2smp.x86_64.rpm
> lustre-ldiskfs-3.0.0-2.6.9_55.0.2.EL_lustre.1.6.2smp.x86_64.rpm
> lustre-ldiskfs-debuginfo-3.0.0-2.6.9_55.0.2.EL_lustre.1.6.2smp.x86_64.rpm
> lustre-modules-1.6.2-2.6.9_55.0.2.EL_lustre.1.6.2smp.x86_64.rpm
> lustre-source-1.6.2-2.6.9_55.0.2.EL_lustre.1.6.2smp.x86_64.rpm
> lustre-tests-1.6.2-2.6.9_55.0.2.EL_lustre.1.6.2smp.x86_64.rpm
>
> It's available for most distributions/archs but sles10-x86_64,
> rhel-2.6-x86_64 and rhel-2.6-ia64
>
> And to come back on topic, I strongly support the request for a .spec
> file or a src.rpm too. :)
>
> Cheers,
> --
> Kilian
>
> _______________________________________________
> Lustre-discuss mailing list
> [email protected]
> https://mail.clusterfs.com/mailman/listinfo/lustre-discuss
>
# updated on 20 Aug 2007
#--------------------------------------------------------------------
-3.) on host1: cd <somepath>/lustre-1.6.1/downloads/;
wget -r -l 1 -np -nd -nH 
http://www.clusterfs.com/downloads/public/Lustre/v1.6/Production/latest/rhel-2.6-x86_64
-2.) sshnew build-host
-1.) mv old BUILD dir out of way for now
0.) cd /; sudo bash
1.) install kernel src package:

  rpm -i <somepath>/RHEL4/kernel-2.6.9-55.0.2.EL.src.rpm

  (this will populate /usr/src/redhat/SOURCES and SPECS

2.) build up the redhat sources with default .spec file

  rpmbuild -bp --target $(uname -m) /usr/src/redhat/SPECS/kernel-2.6.spec

3.) install the lustre src package (unless already installed)

  rpm -i 
<somepath>/lustre-1.6.1/downloads/lustre-source-1.6.1-2.6.9_55.EL_lustre_1.6.1smp.x86_64.rpm

4.) point quilt at the latest patch series

ln -s /usr/src/lustre-1.6.1/lustre/kernel_patches/patches patches
ln -s /usr/src/lustre-1.6.1/lustre/kernel_patches/series/2.6-rhel4.series series

   (note the inode-nr_unused-2.6.9-rhel4.patch failed but is not needed
   because it applied to the -55 kernel and is already included in the
   -55.0.2 kernel)

5.) run quilt to patch the kernel

<somepath>/bin/quilt push -av | tee /tmp/quilt.out

check the /tmp/quilt.out file for errors  -- see note above about
inode-nr_unused-2.6.9-rhel4.patch

6.) copy the specfile:

ln -s <somepath>/lustre.spec .
(maybe edit/check the specfile also if version numbers change)
(in this case edited: %define release 55.0.2.EL.lustre.1.6.1.slm01)

7.) configure the kernel

cp /boot/config-2.6.9-55.ELsmp ./.config
make oldconfig
(check carefully against a lustre kernel .config also)

8.) build the kernel package:

sudo rpmbuild -ba --target $(uname -m)  lustre.spec 2>&1 | tee /tmp/rpmbuild.out

8.5) Copy kernel to NFS space:

  cp kernel-2.6.9-55.0.2.EL.lustre.1.6.1.slm01.x86_64.rpm 
<somepath>/RHEL4-2.6.9-55.0.2

9.) install the kernel

rpm -ihv 
/usr/src/redhat/RPMS/x86_64/kernel-2.6.9-55.EL.lustre.1.6.1.slm01.x86_64.rpm

poke around in /boot/grub, then reboot

10.) Build new lustre packages to match the kernel:

A.) install the lustre sources:

rpm -i 
<somepath>/lustre-1.6.1/downloads/lustre-source-1.6.1-2.6.9_55.EL_lustre_1.6.1smp.x86_64.rpm

B.) make sure the kernel sources are ready:

  - pushd /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/
  - diff /boot/config-`uname -r` .config
  - make clean
  - make oldconfig
  - make include/asm
  - make include/linux/version.h
  - make SUBDIRS=scripts
  - popd

C.) start the lustre build

  - cd /usr/src/lustre-1.6.1
  - ./configure --with-linux=/usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9
  - make rpms 2>&1 | tee /tmp/make-lustre.out
  - the rpms are in //usr/src/redhat/RPMS


D.) copy the packages somewhere

Attachment: lustre.slm01.spec
Description: Binary data

_______________________________________________
Lustre-discuss mailing list
[email protected]
https://mail.clusterfs.com/mailman/listinfo/lustre-discuss

Reply via email to