<div>I just&nbsp;realized my previous messages were being sent direct and not to the list. Sorry about that Jack.</div>
<div>&nbsp;</div>
<div>Does anyone have an idea what this message means?</div>
<div>&nbsp;</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 `&lt;&#39;<br>/usr/src/lustre-<a href="http://1.6.4.3/build/lbuild">1.6.4.3/build/lbuild</a>: line 1095: `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read a b &lt; &lt;(echo $(pwd)/usr/src/linux-*)&#39;<br>
</div>
<div>I&#39;m still trying to get the mgs module to build on my system. I don&#39;t understand why the other modules build without issue.</div>
<div>&nbsp;</div>
<div>This is the latest build command I&#39;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 &lt;<a href="mailto:mitcheloc@gmail.com">mitcheloc@gmail.com</a>&gt; 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>&nbsp;</div>
<div>I did issue a ./configure and make before trying that command. Here is my second go at the command:</div>
<div>&nbsp;</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>&nbsp;</div>
<div>I&#39;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>&nbsp;</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 `&lt;&#39;<br>/usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a>: line 1095: `&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; read a b &lt; &lt;(echo $(pwd)/usr/src/linux-*)&#39;<br>
</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Sorry if I&#39;m overlooking something obvious....</div>
<div>
<div></div>
<div class="Wj3C7c">
<div><br>&nbsp;</div>
<div class="gmail_quote">On Mon, Mar 10, 2008 at 4:08 PM, Jack Chen &lt;<a href="mailto:Jian.Chen@sun.com" target="_blank">Jian.Chen@sun.com</a>&gt; 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&#39;m also not sure if the parameters I used is suitable for you, I just<br>want to let you know what &#39;s the lustre build process.but you must run<br>
./configure and make before using lbuild command. And it&#39;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, &nbsp;recompile lustre by quick start doc and reference to my<br>method, &nbsp;let&#39;s see if the mgs missed issue can be fixed.<br><br>Regards,<br>Jack<br>
<div><br><br>mitcheloc wrote:<br>&gt; Jack,<br>&gt;<br>&gt; I mostly followed the quick start page on the wiki with a combination<br>&gt; of other sources to figure out how to patch the CentOS kernel properly.<br>&gt;<br>
&gt; Where did you get that lbuild command? I&#39;ve not seen instructions to<br>&gt; use it anywhere.<br>&gt;<br>&gt; I guessed at where the kerneltree param needed to point. Here is what<br>&gt; happens:<br>&gt;<br>&gt; [root@catapult lustre-1.6.4.3]# sh -x<br>
</div>&gt; /usr/src/lustre-<a href="http://1.6.4.3/build/lbuild" target="_blank">1.6.4.3/build/lbuild</a> &lt;<a href="http://1.6.4.3/build/lbuild" target="_blank">http://1.6.4.3/build/lbuild</a>&gt;<br>
<div>&gt; --target=2.6-rhel5 --tag=b1_6<br>&gt; --kerneltree=/home/mitchel/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686/<br></div>&gt; + TOPDIR=/usr/src/lustre-<a href="http://1.6.4.3/" target="_blank">1.6.4.3</a> &lt;<a href="http://1.6.4.3/" target="_blank">http://1.6.4.3</a>&gt;<br>

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

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

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