<div>I just realized my previous messages were being sent direct and not to the list. Sorry about that Jack.</div>
<div> </div>
<div>Does anyone have an idea what this message means?</div>
<div> </div>
<div>/usr/src/lustre-<a href="http://1.6.4.3/build/lbuild">1.6.4.3/build/lbuild</a>: line 1095: syntax error near unexpected token `<'<br>/usr/src/lustre-<a href="http://1.6.4.3/build/lbuild">1.6.4.3/build/lbuild</a>: line 1095: `        read a b < <(echo $(pwd)/usr/src/linux-*)'<br>
</div>
<div>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.</div>
<div> </div>
<div>This is the latest build command I've used and it results in the above error:</div>
<div>[root@catapult lustre-1.6.4.3]# sh -x /usr/src/lustre-<a href="http://1.6.4.3/build/lbuild">1.6.4.3/build/lbuild</a> --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<br>
<br></div>
<div class="gmail_quote">On Mon, Mar 10, 2008 at 4:47 PM, mitcheloc <<a href="mailto:mitcheloc@gmail.com">mitcheloc@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Jack,</div>
<div> </div>
<div>I did issue a ./configure and make before trying that command. Here is my second go at the command:</div>
<div> </div>
<div>[root@catapult lustre-1.6.4.3]# sh -x /usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a> --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</div>

<div> </div>
<div>I'm not sure where $CUR_LUSTRE is supposed to come from?<br></div>
<div>I get the exact same error running that command:</div>
<div> </div>
<div>.......</div>
<div>
<div class="Ih2E3d">+ export CC=gcc<br>+ CC=gcc<br></div>/usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a>: line 1095: syntax error near unexpected token `<'<br>/usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a>: line 1095: `        read a b < <(echo $(pwd)/usr/src/linux-*)'<br>
</div>
<div> </div>
<div> </div>
<div>Sorry if I'm overlooking something obvious....</div>
<div>
<div></div>
<div class="Wj3C7c">
<div><br> </div>
<div class="gmail_quote">On Mon, Mar 10, 2008 at 4:08 PM, Jack Chen <<a href="mailto:Jian.Chen@sun.com" target="_blank">Jian.Chen@sun.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Mitcheloc,<br><br>I'm also not sure if the parameters I used is suitable for you, I just<br>want to let you know what 's the lustre build process.but you must run<br>
./configure and make before using lbuild command. And it's necessary to<br>add --lustre=$CUR_LUSTRE/lustre-$VERSION.tar.gz.to lbuild command.<br><br>I think the steps in quick start page is correct to build patch lustre<br>
kernel,  recompile lustre by quick start doc and reference to my<br>method,  let's see if the mgs missed issue can be fixed.<br><br>Regards,<br>Jack<br>
<div><br><br>mitcheloc wrote:<br>> Jack,<br>><br>> I mostly followed the quick start page on the wiki with a combination<br>> of other sources to figure out how to patch the CentOS kernel properly.<br>><br>
> Where did you get that lbuild command? I've not seen instructions to<br>> use it anywhere.<br>><br>> I guessed at where the kerneltree param needed to point. Here is what<br>> happens:<br>><br>> [root@catapult lustre-1.6.4.3]# sh -x<br>
</div>> /usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a> <<a href="http://1.6.4.3/build/lbuild" target="_blank">http://1.6.4.3/build/lbuild</a>><br>
<div>> --target=2.6-rhel5 --tag=b1_6<br>> --kerneltree=/home/mitchel/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686/<br></div>> + TOPDIR=/usr/src/lustre-<a href="http://1.6.4.3/" target="_blank">1.6.4.3</a> <<a href="http://1.6.4.3/" target="_blank">http://1.6.4.3</a>><br>

<div>
<div></div>
<div>> + KERNELDIR=<br>> + LINUX=<br>> + LUSTRE=<br>> + RELEASE=false<br>> + DO_SRC=0<br>> + DOWNLOAD=1<br>> + TAG=<br>> + CANONICAL_TARGET=<br>> + TARGET=<br>> ++ uname -m<br>> + TARGET_ARCH=i686<br>
> + TARGET_ARCHS=<br>> + TARGET_ARCHS_ALL=i686<br>> + '[' i686 = i686 ']'<br>> + TARGET_ARCHS_ALL='i686 i586 i386'<br>> + CONFIGURE_FLAGS=<br>> + EXTERNAL_PATCHES=<br>> + EXTRA_VERSION=<br>
> + LUSTRE_EXTRA_VERSION=<br>> + STAGEDIR=<br>> + TMPDIR=/var/tmp<br>> + TIMESTAMP=<br>> + REUSERPM=<br>> + REUSEBUILD=<br>> + NORPM=false<br>> + LDISKFSRPM=true<br>> + SKIPLDISKFSRPM='v1_4_* b1_4'<br>
> + SMPTYPES='smp bigsmp default '\'''\'''<br>> + KERNCONFSMPTYPE=<br>> + PATCHLESS=false<br>> + LINUXOBJ=<br>> + REUSEDKERNELMASK=<br>> + DISTRO=<br>> + KERNELTREE=<br>
> + KERNELRPMSBASE=<br>> + KERNELRPM=<br>> + KERNELSOURCERPM=<br>> + RPMSMPTYPE=<br>> + KERNELRPMCONFIG=<br>> + KERNELRPMRELEASE=<br>> + KERNELCOMPILEDIR=<br>> + KERNEL=<br>> + SERIES=<br>> + CONFIG=<br>
> + VERSION=<br>> + RHBUILD=0<br>> + SUSEBUILD=0<br>> + LINUX26=0<br>> + SUSEBUILD=0<br>> + BASE_ARCHS=<br>> + BIGMEM_ARCHS=<br>> + BOOT_ARCHS=<br>> + JENSEN_ARCHS=<br>> + SMP_ARCHS=<br>> + BIGSMP_ARCHS=<br>
> + PSERIES64_ARCHS=<br>> + UP_ARCHS=<br>> ++ date<br>> + DATE='Mon Mar 10 13:37:28 PDT 2008'<br>> + USE_DATESTAMP=1<br>> + RPMBUILD=<br>> + export CC=gcc<br>> + CC=gcc<br></div></div>> /usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a> <<a href="http://1.6.4.3/build/lbuild" target="_blank">http://1.6.4.3/build/lbuild</a>>:<br>

<div>> line 1095: syntax error near unexpected token `<'<br></div>> /usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a> <<a href="http://1.6.4.3/build/lbuild" target="_blank">http://1.6.4.3/build/lbuild</a>>:<br>

<div>> line 1095: `        read a b < <(echo $(pwd)/usr/src/linux-*)'<br>><br>><br>> Thanks,<br>> Mitchel<br>><br>> On Mon, Mar 10, 2008 at 3:32 PM, Jack Chen <<a href="mailto:Jian.Chen@sun.com" target="_blank">Jian.Chen@sun.com</a><br>
</div>
<div>
<div></div>
<div>> <mailto:<a href="mailto:Jian.Chen@sun.com" target="_blank">Jian.Chen@sun.com</a>>> wrote:<br>><br>><br>>     > Jack,<br>>     ><br>>     > Thanks, I had copied the output from that in a previous e-mail and<br>
>     > here it is again:<br>>     ><br>>     > [root@catapult ~]# ls<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre<br>>     > llite_lloop.ko  lov.ko  lquota.ko  lustre.ko  lvfs.ko  mdc.ko<br>
>      mgc.ko<br>>     > obdclass.ko  obdecho.ko  osc.ko  ptlrpc.ko<br>>     ><br>>     > and:<br>>     ><br>>     > [root@catapult ~]# rpm -ql lustre-modules<br>>     ><br>>     /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/llite_lloop.ko<br>
>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/lov.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/lquota.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/lustre.ko<br>
>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/lvfs.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/mdc.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/mgc.ko<br>
>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/obdclass.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/obdecho.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/osc.ko<br>
>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/fs/lustre/ptlrpc.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/net/lustre/ksocklnd.ko<br>>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/net/lustre/libcfs.ko<br>
>     > /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/net/lustre/lnet.ko<br>>     ><br>>     /lib/modules/2.6.18-53.1.14.el5.lustre/kernel/net/lustre/lnet_selftest.ko<br>>     > /usr/share/doc/lustre-modules-1.6.4.3<br>
>     > /usr/share/doc/lustre-modules-1.6.4.3/COPYING<br>>     > And here is the output for modprobing mgs:<br>>     ><br>>     > [root@catapult ~]# modprobe mgs<br>>     > FATAL: Module mgs not found.<br>
>     > [root@catapult ~]# dmesg<br>>     > [root@catapult ~]#<br>>     ><br>>     ><br>>     Seems you just built patchless lustre modules, for patched lustre<br>>     modues<br>>     as follows:<br>
><br>>      #ls /lib/modules/2.6.18-53.1.13.el5_lustre.1.6.4smp/kernel/fs/lustre/<br>>     fsfilt_ldiskfs.ko  lov.ko     lvfs.ko  mgc.ko       obdecho.ko<br>>      ost.ko<br>>     llite_lloop.ko     lquota.ko  mdc.ko   mgs.ko       obdfilter.ko<br>
>      ptlrpc.ko<br>>     llog_test.ko       lustre.ko  mds.ko   obdclass.ko  osc.ko<br>><br>>     I'm not sure what commands you use to compile<br>>     lustre(configure/lbuild),<br>>     I'd recommend you re-compile lustre with patched lustre modules.<br>
>     Normally, you don't specify any flags, but try to the following<br>>     commands<br>>     or by steps as Lustre_manual document described:<br>><br>>     ./configure --disable-modules --disable-utils --disable-liblustre<br>
>     --disable-tests --disable-doc<br>>     make clean<br>>     make dist<br>>     sh -x $CUR_LUSTRE/build/lbuild --target=2.6-rhel5 --tag=b1_6<br>>     --kerneltree=/path/to/kernel<br>>        --target-arch=$ARCH --lustre=$CUR_LUSTRE/lustre-$VERSION.tar.gz<br>
>     --release ...<br>><br>><br>>     > Apparently it is not on my system. Looking in the lustre source, it<br>>     > looks like mgs should have been compiled with everything else. Is<br>>     > there a special flag to enable it?<br>
>     ><br>>     > Thank you,<br>>     > Mitchel<br>>     ><br>><br></div></div></blockquote></div></div></div></blockquote></div><br>