[Lustre-discuss] Latest RHEL kernel: won't make mgs module, and ko2iblnd not built for right OFED modules

Craig Prescott prescott at hpc.ufl.edu
Fri Feb 29 07:41:09 PST 2008


Nod - we ran into this issue as well.  Your Module.symvers
file for probably has entries in it for the IB modules
included with the RHEL kernel (and not from OFED).

Here's what we do to avoid this issue (and others) when
building a patched Lustre kernel with OFED:

1) Get the source for that kernel (rpmbuild -bp the
    src.rpm and copy it somewhere).
2) Configure that kernel *without* infiniband
    (edit the config for that kernel to say
    "#CONFIG_INFINIBAND is not set" and get rid
    of all the other IB stuff).
3) patch that kernel for Lustre
4) build and install that kernel
5) build ofa-kernel against that kernel and install it
6) cat <ofa-kernel-dir>/Module.symvers >>
    <linux-kernel-dir>/Module.symvers
7) Build and install Lustre against this kernel and
    ofa-kernel.

Hope that helps,
Craig Prescott
UF HPC Center

Chris Worley wrote:
> Lustre 1.6.4.2, OFED 1.2.5.5, RHEL kernel 2.6.9.67.0.4.
> 
> Configured with: --with-o2ib --with-ldiskfs
> 
> mgs.ko is built but not wrapped into modules rpm, with an undefined
> external that should be from the lvfs module (lvfs_check_rdonly).
> 
> When ko2iblnd loads, it gets lots of "disagrees about version of
> symbol <some OFED symbol>" messages.  I'm guessing this is building
> wrt the ib modules in the kernel rather than the OFED modules I have
> loaded.
> 
> There were other patches I needed to make for this kernel (to resolve
> mutex_lock/unlock, __d_rehash, and __d_move... but those were easy to
> fix).
> 
> What am I doing wrong?
> 
> Thanks,
> 
> Chris
> _______________________________________________
> Lustre-discuss mailing list
> Lustre-discuss at lists.lustre.org
> http://lists.lustre.org/mailman/listinfo/lustre-discuss




More information about the lustre-discuss mailing list