<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.old.lustre.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bibble</id>
	<title>Obsolete Lustre Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.old.lustre.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bibble"/>
	<link rel="alternate" type="text/html" href="http://wiki.old.lustre.org/index.php?title=Special:Contributions/Bibble"/>
	<updated>2026-04-22T20:23:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>http://wiki.old.lustre.org/index.php?title=Debian_Install&amp;diff=4890</id>
		<title>Debian Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.old.lustre.org/index.php?title=Debian_Install&amp;diff=4890"/>
		<updated>2008-08-28T23:20:41Z</updated>

		<summary type="html">&lt;p&gt;Bibble: added some clarity as to where the deb packages are built.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 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.&lt;br /&gt;
&lt;br /&gt;
* Install build essentials&lt;br /&gt;
Install the packages required to build debs. (build-essential, module-assistant etc)&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 deb-src 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 lustre 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 lustre-source and linux-patch-lustre 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;
 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 .config file for the debian kernel. We should be able to&lt;br /&gt;
generate the config from the source package, but I&#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;quot;m&amp;quot; or &amp;quot;y&amp;quot;.)&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;
You should now have a kernel-image 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 lustre-modules.deb&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>Bibble</name></author>
	</entry>
	<entry>
		<id>http://wiki.old.lustre.org/index.php?title=Debian_Install&amp;diff=4889</id>
		<title>Debian Install</title>
		<link rel="alternate" type="text/html" href="http://wiki.old.lustre.org/index.php?title=Debian_Install&amp;diff=4889"/>
		<updated>2008-08-28T21:54:57Z</updated>

		<summary type="html">&lt;p&gt;Bibble: there should (indeed MUST) be no space between -r and fakeroot. Else you get an error.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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 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.&lt;br /&gt;
&lt;br /&gt;
* Install build essentials&lt;br /&gt;
Install the packages required to build debs. (build-essential, module-assistant etc)&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 deb-src 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 lustre 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:&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 lustre-source and linux-patch-lustre 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;
 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 .config file for the debian kernel. We should be able to&lt;br /&gt;
generate the config from the source package, but I&#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;quot;m&amp;quot; or &amp;quot;y&amp;quot;.)&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;
You should now have a kernel-image 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 lustre-modules.deb&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>Bibble</name></author>
	</entry>
</feed>