[Lustre-discuss] Modprobe lustre fails

mitcheloc mitcheloc at gmail.com
Thu Mar 13 16:49:31 PDT 2008


I just realized my previous messages were being sent direct and not to the
list. Sorry about that Jack.

Does anyone have an idea what this message means?

/usr/src/lustre-1.6.4.3/build/lbuild: line 1095: syntax error near
unexpected token `<'
/usr/src/lustre-1.6.4.3/build/lbuild: line 1095: `        read a b < <(echo
$(pwd)/usr/src/linux-*)'
I'm still trying to get the mgs module to build on my system. I don't
understand why the other modules build without issue.

This is the latest build command I've used and it results in the above
error:
[root at catapult lustre-1.6.4.3]# sh -x
/usr/src/lustre-1.6.4.3/build/lbuild--target=
2.6-rhel5 --tag=b1_6 --kerneltree=/home/mitchel/rpmbuild/BUILD/kernel-2.6.18
/linux-2.6.18.i686/ --lustre=/usr/src/lustre-1.6.4.3.tar.gz

On Mon, Mar 10, 2008 at 4:47 PM, mitcheloc <mitcheloc at gmail.com> wrote:

> Jack,
>
> I did issue a ./configure and make before trying that command. Here is my
> second go at the command:
>
> [root at catapult lustre-1.6.4.3]# sh -x /usr/src/lustre-1.6.4.3/build/lbuild--target=
> 2.6-rhel5 --tag=b1_6 --kerneltree=/home/mitchel/rpmbuild/BUILD/kernel-
> 2.6.18/linux-2.6.18.i686 --lustre=/usr/src/lustre-1.6.4.3.tar.gz
>
> I'm not sure where $CUR_LUSTRE is supposed to come from?
> I get the exact same error running that command:
>
> .......
>  + export CC=gcc
> + CC=gcc
> /usr/src/lustre-1.6.4.3/build/lbuild: line 1095: syntax error near
> unexpected token `<'
> /usr/src/lustre-1.6.4.3/build/lbuild: line 1095: `        read a b <
> <(echo $(pwd)/usr/src/linux-*)'
>
>
> Sorry if I'm overlooking something obvious....
>
>
> On Mon, Mar 10, 2008 at 4:08 PM, Jack Chen <Jian.Chen at sun.com> wrote:
>
> > Hi Mitcheloc,
> >
> > I'm also not sure if the parameters I used is suitable for you, I just
> > want to let you know what 's the lustre build process.but you must run
> > ./configure and make before using lbuild command. And it's necessary to
> > add --lustre=$CUR_LUSTRE/lustre-$VERSION.tar.gz.to lbuild command.
> >
> > I think the steps in quick start page is correct to build patch lustre
> > kernel,  recompile lustre by quick start doc and reference to my
> > method,  let's see if the mgs missed issue can be fixed.
> >
> > Regards,
> > Jack
> >
> >
> > mitcheloc wrote:
> > > Jack,
> > >
> > > I mostly followed the quick start page on the wiki with a combination
> > > of other sources to figure out how to patch the CentOS kernel
> > properly.
> > >
> > > Where did you get that lbuild command? I've not seen instructions to
> > > use it anywhere.
> > >
> > > I guessed at where the kerneltree param needed to point. Here is what
> > > happens:
> > >
> > > [root at catapult lustre-1.6.4.3]# sh -x
> > > /usr/src/lustre-1.6.4.3/build/lbuild <http://1.6.4.3/build/lbuild>
> > > --target=2.6-rhel5 --tag=b1_6
> > > --kerneltree=/home/mitchel/rpmbuild/BUILD/kernel-2.6.18/linux-
> > 2.6.18.i686/
> > > + TOPDIR=/usr/src/lustre-1.6.4.3 <http://1.6.4.3>
> >  > + KERNELDIR=
> > > + LINUX=
> > > + LUSTRE=
> > > + RELEASE=false
> > > + DO_SRC=0
> > > + DOWNLOAD=1
> > > + TAG=
> > > + CANONICAL_TARGET=
> > > + TARGET=
> > > ++ uname -m
> > > + TARGET_ARCH=i686
> > > + TARGET_ARCHS=
> > > + TARGET_ARCHS_ALL=i686
> > > + '[' i686 = i686 ']'
> > > + TARGET_ARCHS_ALL='i686 i586 i386'
> > > + CONFIGURE_FLAGS=
> > > + EXTERNAL_PATCHES=
> > > + EXTRA_VERSION=
> > > + LUSTRE_EXTRA_VERSION=
> > > + STAGEDIR=
> > > + TMPDIR=/var/tmp
> > > + TIMESTAMP=
> > > + REUSERPM=
> > > + REUSEBUILD=
> > > + NORPM=false
> > > + LDISKFSRPM=true
> > > + SKIPLDISKFSRPM='v1_4_* b1_4'
> > > + SMPTYPES='smp bigsmp default '\'''\'''
> > > + KERNCONFSMPTYPE=
> > > + PATCHLESS=false
> > > + LINUXOBJ=
> > > + REUSEDKERNELMASK=
> > > + DISTRO=
> > > + KERNELTREE=
> > > + KERNELRPMSBASE=
> > > + KERNELRPM=
> > > + KERNELSOURCERPM=
> > > + RPMSMPTYPE=
> > > + KERNELRPMCONFIG=
> > > + KERNELRPMRELEASE=
> > > + KERNELCOMPILEDIR=
> > > + KERNEL=
> > > + SERIES=
> > > + CONFIG=
> > > + VERSION=
> > > + RHBUILD=0
> > > + SUSEBUILD=0
> > > + LINUX26=0
> > > + SUSEBUILD=0
> > > + BASE_ARCHS=
> > > + BIGMEM_ARCHS=
> > > + BOOT_ARCHS=
> > > + JENSEN_ARCHS=
> > > + SMP_ARCHS=
> > > + BIGSMP_ARCHS=
> > > + PSERIES64_ARCHS=
> > > + UP_ARCHS=
> > > ++ date
> > > + DATE='Mon Mar 10 13:37:28 PDT 2008'
> > > + USE_DATESTAMP=1
> > > + RPMBUILD=
> > > + export CC=gcc
> > > + CC=gcc
> > > /usr/src/lustre-1.6.4.3/build/lbuild <http://1.6.4.3/build/lbuild>:
> > > line 1095: syntax error near unexpected token `<'
> > > /usr/src/lustre-1.6.4.3/build/lbuild <http://1.6.4.3/build/lbuild>:
> > > line 1095: `        read a b < <(echo $(pwd)/usr/src/linux-*)'
> > >
> > >
> > > Thanks,
> > > Mitchel
> > >
> > > On Mon, Mar 10, 2008 at 3:32 PM, Jack Chen <Jian.Chen at sun.com
> >  > <mailto:Jian.Chen at sun.com>> wrote:
> > >
> > >
> > >     > Jack,
> > >     >
> > >     > Thanks, I had copied the output from that in a previous e-mail
> > and
> > >     > here it is again:
> > >     >
> > >     > [root at catapult ~]# ls
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre
> > >     > llite_lloop.ko  lov.ko  lquota.ko  lustre.ko  lvfs.ko  mdc.ko
> > >      mgc.ko
> > >     > obdclass.ko  obdecho.ko  osc.ko  ptlrpc.ko
> > >     >
> > >     > and:
> > >     >
> > >     > [root at catapult ~]# rpm -ql lustre-modules
> > >     >
> > >     /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/fs/lustre/llite_lloop.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/lov.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/fs/lustre/lquota.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/fs/lustre/lustre.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/lvfs.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/mdc.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/mgc.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/fs/lustre/obdclass.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/fs/lustre/obdecho.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/osc.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/fs/lustre/ptlrpc.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/net/lustre/ksocklnd.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/net/lustre/libcfs.ko
> > >     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/net/lustre/lnet.ko
> > >     >
> > >     /lib/modules/2.6.18-53.1.14.el5.lustre
> > /kernel/net/lustre/lnet_selftest.ko
> > >     > /usr/share/doc/lustre-modules-1.6.4.3
> > >     > /usr/share/doc/lustre-modules-1.6.4.3/COPYING
> > >     > And here is the output for modprobing mgs:
> > >     >
> > >     > [root at catapult ~]# modprobe mgs
> > >     > FATAL: Module mgs not found.
> > >     > [root at catapult ~]# dmesg
> > >     > [root at catapult ~]#
> > >     >
> > >     >
> > >     Seems you just built patchless lustre modules, for patched lustre
> > >     modues
> > >     as follows:
> > >
> > >      #ls /lib/modules/2.6.18-
> > 53.1.13.el5_lustre.1.6.4smp/kernel/fs/lustre/
> > >     fsfilt_ldiskfs.ko  lov.ko     lvfs.ko  mgc.ko       obdecho.ko
> > >      ost.ko
> > >     llite_lloop.ko     lquota.ko  mdc.ko   mgs.ko       obdfilter.ko
> > >      ptlrpc.ko
> > >     llog_test.ko       lustre.ko  mds.ko   obdclass.ko  osc.ko
> > >
> > >     I'm not sure what commands you use to compile
> > >     lustre(configure/lbuild),
> > >     I'd recommend you re-compile lustre with patched lustre modules.
> > >     Normally, you don't specify any flags, but try to the following
> > >     commands
> > >     or by steps as Lustre_manual document described:
> > >
> > >     ./configure --disable-modules --disable-utils --disable-liblustre
> > >     --disable-tests --disable-doc
> > >     make clean
> > >     make dist
> > >     sh -x $CUR_LUSTRE/build/lbuild --target=2.6-rhel5 --tag=b1_6
> > >     --kerneltree=/path/to/kernel
> > >        --target-arch=$ARCH --lustre=$CUR_LUSTRE/lustre-$VERSION.tar.gz
> > >     --release ...
> > >
> > >
> > >     > Apparently it is not on my system. Looking in the lustre source,
> > it
> > >     > looks like mgs should have been compiled with everything else.
> > Is
> > >     > there a special flag to enable it?
> > >     >
> > >     > Thank you,
> > >     > Mitchel
> > >     >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20080313/6ab282cd/attachment.htm>


More information about the lustre-discuss mailing list