<?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=Debian_Install</id>
	<title>Debian Install - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lustre.org/index.php?action=history&amp;feed=atom&amp;title=Debian_Install"/>
	<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Debian_Install&amp;action=history"/>
	<updated>2026-08-25T20:33:56Z</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=Debian_Install&amp;diff=1803&amp;oldid=prev</id>
		<title>KenRawlings: Initial creation as part of accelerated wiki migration</title>
		<link rel="alternate" type="text/html" href="http://wiki.lustre.org/index.php?title=Debian_Install&amp;diff=1803&amp;oldid=prev"/>
		<updated>2016-06-23T14:48:06Z</updated>

		<summary type="html">&lt;p&gt;Initial creation as part of accelerated wiki migration&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;&lt;br /&gt;
&amp;#039;&amp;#039;DISCLAIMER - EXTERNAL CONTRIBUTOR CONTENT&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;This content was submitted by an external contributor. We provide this information as a resource for the Lustre™ open-source community, but we make no representation as to the accuracy, completeness or reliability of this information.&amp;#039;&amp;#039; &lt;br /&gt;
&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Lustre on Debian ==&lt;br /&gt;
&lt;br /&gt;
If you are brave, use Lenny. There are Lustre client packages there. However, you will still need a lustre-patched kernel for a server. These instructions come from a user-contributed mailing list post on how to recompile the lenny packages for etch.&lt;br /&gt;
&lt;br /&gt;
There are also prebuilt packages and kernel images at:&lt;br /&gt;
[http://www.pdsi-scidac.org/repository/debian/ http://www.pdsi-scidac.org/respository/debian]&lt;br /&gt;
&lt;br /&gt;
== Pre-Requisites ==&lt;br /&gt;
&lt;br /&gt;
Any Debian machine can be used to build the packages. It does not have to be a&lt;br /&gt;
Lustre client or server. You can skip this and the next section if you are on Lenny.&lt;br /&gt;
&lt;br /&gt;
* Install build essentials&lt;br /&gt;
Install the packages required to build debs. (build-essential, module-assistant etc) Better use http://packages.debian.org/etch-backports/debhelper (dh_lintian is missing in sable).&lt;br /&gt;
&lt;br /&gt;
 apt-get install build-essential module-assistant&lt;br /&gt;
&lt;br /&gt;
* Get Source&lt;br /&gt;
&lt;br /&gt;
Make sure you have &amp;#039;&amp;#039;&amp;#039;deb-src&amp;#039;&amp;#039;&amp;#039; lines for Lenny in /etc/apt/sources.list&lt;br /&gt;
from your favorite Debian mirror, such as:&lt;br /&gt;
&lt;br /&gt;
 deb http://mirror.scl.ameslab.gov/debian/ etch main non-free contrib&lt;br /&gt;
 deb-src http://mirror.scl.ameslab.gov/debian/ lenny main contrib non-free&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 deb http://mirror.mcs.anl.gov/debian/ etch main non-free contrib&lt;br /&gt;
 deb-src http://mirror.mcs.anl.gov/debian/ lenny main contrib non-free&lt;br /&gt;
&lt;br /&gt;
* Download the source with:&lt;br /&gt;
&lt;br /&gt;
 aptitude update&lt;br /&gt;
 apt-get source linux-image-2.6.18-X-686&lt;br /&gt;
 apt-get source lustre&lt;br /&gt;
&lt;br /&gt;
This will unpack two directories, one with the Lustre source and one with the&lt;br /&gt;
kernel source.&lt;br /&gt;
&lt;br /&gt;
== Build Lustre userspace ==&lt;br /&gt;
&lt;br /&gt;
Change to the &amp;#039;&amp;#039;&amp;#039;lustre&amp;#039;&amp;#039;&amp;#039; directory.&lt;br /&gt;
&lt;br /&gt;
 cd lustre-X.X.X&lt;br /&gt;
 dpkg-buildpackage -rfakeroot&lt;br /&gt;
&lt;br /&gt;
If the build fails with automake errors you will need to install a later&lt;br /&gt;
automake version. (debian/etch provides several to choose from.)&lt;br /&gt;
&lt;br /&gt;
This will build the following packages in the parent directory:&lt;br /&gt;
&lt;br /&gt;
 lustre-utils        #Userspace lustre util&lt;br /&gt;
 lustre-dev          #Development headers&lt;br /&gt;
 lustre-source       #Source for the kernel module&lt;br /&gt;
 lustre-tests        #Test suite&lt;br /&gt;
 linux-patch-lustre  #Patch for the linux kernel.&lt;br /&gt;
&lt;br /&gt;
Install the &amp;#039;&amp;#039;&amp;#039;lustre-source&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;linux-patch-lustre&amp;#039;&amp;#039;&amp;#039; packages on the build machine.&lt;br /&gt;
These packages contain the patches to the kernel source tree that are used in&lt;br /&gt;
the next step of the build.&lt;br /&gt;
&lt;br /&gt;
 dpkg -i linux-patch-lustre_XXX.deb&lt;br /&gt;
 dpkg -i  lustre-source_XXX.deb&lt;br /&gt;
&lt;br /&gt;
== Build Lustre patched kernel ==&lt;br /&gt;
&lt;br /&gt;
If building on Lenny you can skip above and run&lt;br /&gt;
 apt-get install linux-patch-lustre lustre-source linux-tree-2.6.18&lt;br /&gt;
 cd /usr/src/&lt;br /&gt;
 tar jxvf linux-source-2.6.18.tar.bz2&lt;br /&gt;
&lt;br /&gt;
Now you can CD to the kernel directory&lt;br /&gt;
&lt;br /&gt;
 cd linux-source-2.6.18&lt;br /&gt;
&lt;br /&gt;
We need to grab the &amp;#039;&amp;#039;&amp;#039;.config&amp;#039;&amp;#039;&amp;#039; file for the debian kernel. We should be able to&lt;br /&gt;
generate the config from the source package, but I&amp;#039;m not sure how. The easiest&lt;br /&gt;
way to get the correct config is to copy /boot/config-X.X.X from a machine&lt;br /&gt;
already running the Debian kernel.&lt;br /&gt;
&lt;br /&gt;
 cp /boot/config-2.6.XXX-686 .config&lt;br /&gt;
&lt;br /&gt;
Check the kernel config works: (This might generate 1 or 2 minor questions. Just&lt;br /&gt;
hit &amp;#039;&amp;#039;&amp;#039;m&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;y&amp;#039;&amp;#039;&amp;#039;.)&lt;br /&gt;
&lt;br /&gt;
 make oldconfig&lt;br /&gt;
&lt;br /&gt;
We can now build the kernel.&lt;br /&gt;
&lt;br /&gt;
 export CONCURRENCY_LEVEL=3&lt;br /&gt;
 make-kpkg clean&lt;br /&gt;
 make-kpkg --rootcmd fakeroot --added-patches=lustre --initrd \&lt;br /&gt;
   --append-to-version &amp;quot;-lustre-1.6.5.1&amp;quot; --revision=yyyymmdd kernel_image&lt;br /&gt;
&lt;br /&gt;
(You might be asked about extra scsi statistics options; selecting Y is probably&lt;br /&gt;
a good idea)&lt;br /&gt;
&lt;br /&gt;
If your Lustre patch is not recognized, you might need to create the following symlinks:&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/src/kernel-patches/lustre/scripts/apply /usr/src/kernel-patches/all/XXX/apply/lustre&lt;br /&gt;
 ln -s /usr/src/kernel-patches/lustre/scripts/unpatch /usr/src/kernel-patches/all/XXX/unpatch/lustre&lt;br /&gt;
&lt;br /&gt;
You should now have a &amp;#039;&amp;#039;&amp;#039;kernel-image&amp;#039;&amp;#039;&amp;#039; deb.&lt;br /&gt;
&lt;br /&gt;
== Build lustre kernel modules ==&lt;br /&gt;
&lt;br /&gt;
The Lustre kernel modules can now be built.&lt;br /&gt;
&lt;br /&gt;
 module-assistant -u/your/working/directory \&lt;br /&gt;
   -k /path/to/the/kernel/linux-2.6-X.X&lt;br /&gt;
&lt;br /&gt;
After the build has finished you should now have a &amp;#039;&amp;#039;&amp;#039;lustre-modules.deb&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
You might want to try this if it the previous line fails&lt;br /&gt;
&lt;br /&gt;
  reboot (and boot with the lustre kernel)&lt;br /&gt;
  m-a update&lt;br /&gt;
  m-a a-i lustre&lt;br /&gt;
&lt;br /&gt;
This should auto-install the Lustre modules&lt;br /&gt;
&lt;br /&gt;
= Install =&lt;br /&gt;
&lt;br /&gt;
To install Lustre on a client or server machine, simply install the packages you have created:&lt;br /&gt;
&lt;br /&gt;
 linux-image-2.6.XX-lustre-X.X.X._XXXXXX.deb&lt;br /&gt;
 lustre-modules-2.6.XX-lustre-X.X.X._XXXXXX.deb&lt;br /&gt;
 lustre-utils_X.X.deb&lt;br /&gt;
 liblustre-X-X.deb&lt;br /&gt;
 lustre-dev-X.X.deb&lt;/div&gt;</summary>
		<author><name>KenRawlings</name></author>
	</entry>
</feed>