<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.lustre.org/index.php?action=history&amp;feed=atom&amp;title=Building_Lustre_Code</id>
	<title>Building Lustre Code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lustre.org/index.php?action=history&amp;feed=atom&amp;title=Building_Lustre_Code"/>
	<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Building_Lustre_Code&amp;action=history"/>
	<updated>2026-10-02T07:37:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>http://wiki.lustre.org/index.php?title=Building_Lustre_Code&amp;diff=1773&amp;oldid=prev</id>
		<title>KenRawlings: page creation as part of wiki migration effort</title>
		<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Building_Lustre_Code&amp;diff=1773&amp;oldid=prev"/>
		<updated>2016-06-15T14:27:39Z</updated>

		<summary type="html">&lt;p&gt;page creation as part of wiki migration effort&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;#039;wikitable&amp;#039;&lt;br /&gt;
|- &lt;br /&gt;
!Note: This page originated on the old Lustre wiki. It was identified as likely having value and was migrated to the new wiki. It is in the process of being reviewed/updated and may currently have content that is out of date.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;&amp;#039;&amp;#039;(Updated: Dec 2009)&amp;#039;&amp;#039;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The procedure on this page describes how to build and configure Lustre™ code in a development environment. It assumes that you have:&lt;br /&gt;
* Checked out Lustre source code from Git (see [[Accessing Lustre Code]]).&lt;br /&gt;
* Obtained an unmodified kernel source supported by the version of Lustre you have checked out (supported kernel sources can be found at [http://downloads.lustre.org/public/kernels/ http://downloads.lustre.org/public/kernels/]).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; For how to install Lustre from source for a non-supported system configuration, see [[Building and Installing Lustre from Source Code]].&lt;br /&gt;
&lt;br /&gt;
== Configuring and Building Lustre ==&lt;br /&gt;
To configure and build Lustre, follow these steps:&lt;br /&gt;
&lt;br /&gt;
1. &amp;#039;&amp;#039;Run the&amp;#039;&amp;#039; autogen &amp;#039;&amp;#039;script.&amp;#039;&amp;#039; The &amp;#039;&amp;#039;autogen&amp;#039;&amp;#039; script performs a few checks and then bootstraps the build system using the GNU &amp;#039;&amp;#039;automake&amp;#039;&amp;#039; and &amp;#039;&amp;#039;autoconf&amp;#039;&amp;#039; functions.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sh autogen.sh&lt;br /&gt;
Checking for a complete tree...&lt;br /&gt;
checking for automake-1.7 1.7.8... found 1.7.9&lt;br /&gt;
checking for autoconf 2.57... found 2.59&lt;br /&gt;
...&lt;br /&gt;
running autogen for liblustre...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
2. &amp;#039;&amp;#039;Apply Lustre patches to your Linux kernel sources.&amp;#039;&amp;#039; For instructions, see [[Applying Lustre Patches to a Kernel]].&lt;br /&gt;
&lt;br /&gt;
3. &amp;#039;&amp;#039;Build a new kernel.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
4. &amp;#039;&amp;#039;Run &amp;#039;&amp;#039; configure &amp;#039;&amp;#039;to set up your system to compile the Lustre code.&amp;#039;&amp;#039; Configure performs extensive checks of the underlying system and kernel and then produces  &amp;#039;&amp;#039;makefiles&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; Replace &amp;#039;&amp;#039;/path/to/linux&amp;#039;&amp;#039; with the path to your patched kernel source (for example, &amp;#039;&amp;#039;/tmp/kernels/linux-2.6.18-128.1.1&amp;#039;&amp;#039;)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ./configure --with-linux=/path/to/linux&lt;br /&gt;
checking build system type... i686-redhat-linux-gnu&lt;br /&gt;
checking host system type... i686-redhat-linux-gnu&lt;br /&gt;
checking target system type... i686-redhat-linux-gnu&lt;br /&gt;
...&lt;br /&gt;
LLCFLAGS: -g -Wall -fPIC&lt;br /&gt;
&lt;br /&gt;
Type &amp;#039;make&amp;#039; to build Lustre.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. &amp;#039;&amp;#039;Type &amp;#039;&amp;#039;make&amp;#039;&amp;#039; to build Lustre.&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ make&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Building and Testing Your Code ====&lt;br /&gt;
Before you submit code for possible inclusion in Lustre, it must pass the &amp;#039;&amp;#039;acceptance-small&amp;#039;&amp;#039; acceptance test suite. For more details about the Lustre testing framework and &amp;#039;&amp;#039;acceptance-small&amp;#039;&amp;#039;, see [[Testing Lustre Code]]. &lt;br /&gt;
&lt;br /&gt;
To initiate a loopback-based Lustre mount for local testing, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
lustre/tests/llmount.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To clean up the loopback mount (reverse the actions of the &amp;#039;&amp;#039;llmount.sh&amp;#039;&amp;#039; script), run &amp;lt;pre&amp;gt;&lt;br /&gt;
lustre/tests/llmountcleanup.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>KenRawlings</name></author>
	</entry>
</feed>