Re: Installing BLCR on Lustre Kernel

From: Karthik Gopalakrishnan (
Date: Mon Apr 06 2009 - 14:58:14 PDT

  • Next message: Farah Aymuofy: "Satisfy your lover in so many ways"
    Hi Paul.
    On Mon, Apr 6, 2009 at 5:45 PM, Paul H. Hargrove <PHHargrove_at_lbl_dot_gov> wrote:
    > Karthik,
    >  As the line in dmesg and your examination of uname and the kernel build dir
    > show, there is a disagreement between the "smp" and "custom" suffix.  As you
    > may have already determined, this it the cause of BLCR's insmod failure.
    >  Now we need to determine the cause of this difference.
    >  I am guessing from the "el5" in the kernel version string that you are
    > running a RHEL5 distro.  Unfortunately I don't have any similar platform
    > available to examine.  So, I can only guess.
    >  One possibility that comes to mind is that
    > /lib/modules/2.6.18-92.1.10.el5_lustre.1.6.6smp/build is a symlink into
    > something like
    > /usr/src/kernels/2.6.18-92.1.10.el5_lustre.1.6.6-obj/x86_64/smp.  Such a
    > setup is normal.  However, if somebody has then built a kernel in the same
    > directory, then the files (like utsrelease.h) would end up corresponding to
    > that build (w/ a suffix of "custom") rather than the original one (with a
    > suffix of "smp").  If that is the case, then running
    >   $ rpm -Vf /lib/modules/2.6.18-92.1.10.el5_lustre.1.6.6smp/build/Makefile
    > will produce output indicating files that have changed relative to the ones
    > installed with the kernel-devel (or similar) RPM.  If that is the case, then
    > reinstalling the kernel-devel (or similar) RPM should resolve the problem.
    > If the command above produces no output or a message about not belonging to
    > any package, let me know and I'll see what else I can think of.
    Yes. This does appear to be a problem with the kernel-source package.
    I had to reinstall the OS on the test machine. I'll restore the
    environment once the machine is up, run the above command and let you
    know if it was due to the files changing due to a kernel build.
    Thanks & Regards,
    > -Paul
    > Karthik Gopalakrishnan wrote:
    >> Hi Paul.
    >> I configured & installed BLCR 0.8.1 from source using
    >> [root@x4 blcr-0.8.1]# ./configure --prefix=/usr/local/blcr-0.8.1
    >> --with-linux=/lib/modules/2.6.18-92.1.10.el5_lustre.1.6.6smp/build/ &&
    >> make && make install
    >> The build & installation go through fine. When I try to load
    >> blcr_imports.ko, I get the following error message in dmesg.
    >> "Running kernel UTS_RELEASE (2.6.18-92.1.10.el5_lustre.1.6.6smp) does
    >> not match that used to build BLCR
    >> (2.6.18-92.1.10.el5_lustre.1.6.6custom)"
    >> Additionally,
    >> [root@x4 build]# uname -r
    >> 2.6.18-92.1.10.el5_lustre.1.6.6smp
    >> [root@x4 build]# cat
    >> /lib/modules/2.6.18-92.1.10.el5_lustre.1.6.6smp/build/include/linux/utsrelease.h
    >> #define UTS_RELEASE "2.6.18-92.1.10.el5_lustre.1.6.6custom"
    >> How do I resolve this problem?
    >> Thanks & Regards,
    >> Karthik
    > --
    > Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    > Future Technologies Group                 Tel: +1-510-495-2352
    > HPC Research Department                   Fax: +1-510-486-6900
    > Lawrence Berkeley National Laboratory

  • Next message: Farah Aymuofy: "Satisfy your lover in so many ways"