Whamcloud - gitweb
Lustre 2.x Operations Manual as Docbook 5.0
[doc/manual.git] / InstallingLustreFromSourceCode.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <article version="5.0" xml:lang="en-US" xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink">
3   <info>
4     <title>Installing Lustre from Source Code</title>
5   </info>
6   <informaltable frame="none">
7     <tgroup cols="2">
8       <colspec colname="c1" colwidth="50*"/>
9       <colspec colname="c2" colwidth="50*"/>
10       
11       
12       <tbody>
13         <row>
14           <entry align="left"><para>Lustre 2.0 Operations Manual</para></entry>
15           <entry align="right" valign="top"><para><link xl:href="index.html"><inlinemediaobject><imageobject role="html">
16                     <imagedata contentdepth="26" contentwidth="30" fileref="./shared/toc01.gif" scalefit="1"/>
17                   </imageobject>
18 <imageobject role="fo">
19                     <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/toc01.gif" scalefit="1" width="100%"/>
20                   </imageobject>
21 </inlinemediaobject></link><link xl:href="VI_Reference.html"><inlinemediaobject><imageobject role="html">
22                     <imagedata contentdepth="26" contentwidth="30" fileref="./shared/prev01.gif" scalefit="1"/>
23                   </imageobject>
24 <imageobject role="fo">
25                     <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/prev01.gif" scalefit="1" width="100%"/>
26                   </imageobject>
27 </inlinemediaobject></link><link xl:href="LustreRecovery.html"><inlinemediaobject><imageobject role="html">
28                     <imagedata contentdepth="26" contentwidth="30" fileref="./shared/next01.gif" scalefit="1"/>
29                   </imageobject>
30 <imageobject role="fo">
31                     <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/next01.gif" scalefit="1" width="100%"/>
32                   </imageobject>
33 </inlinemediaobject></link><link xl:href="ix.html"><inlinemediaobject><imageobject role="html">
34                     <imagedata contentdepth="26" contentwidth="30" fileref="./shared/index01.gif" scalefit="1"/>
35                   </imageobject>
36 <imageobject role="fo">
37                     <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/index01.gif" scalefit="1" width="100%"/>
38                   </imageobject>
39 </inlinemediaobject></link></para></entry>
40         </row>
41       </tbody>
42     </tgroup>
43   </informaltable>
44   <para><link xl:href=""/></para>
45   <informaltable frame="none">
46     <tgroup cols="1">
47       <colspec colname="c1" colwidth="100*"/>
48       
49       <tbody>
50         <row>
51           <entry align="right"><para><anchor xml:id="dbdoclet.50438210_pgfId-874" xreflabel=""/>C H A P T E R  29<anchor xml:id="dbdoclet.50438210_75891" xreflabel=""/></para></entry>
52         </row>
53       </tbody>
54     </tgroup>
55   </informaltable>
56   <informaltable frame="none">
57     <tgroup cols="1">
58       <colspec colname="c1" colwidth="100*"/>
59       
60       <tbody>
61         <row>
62           <entry align="right"><para><anchor xml:id="dbdoclet.50438210_pgfId-5529" xreflabel=""/><anchor xml:id="dbdoclet.50438210_67391" xreflabel=""/>Installing Lustre from Source Code</para></entry>
63         </row>
64       </tbody>
65     </tgroup>
66   </informaltable>
67   <para><anchor xml:id="dbdoclet.50438210_pgfId-1304664" xreflabel=""/>If you need to build a customized Lustre server kernel or are using a Linux kernel that has not been tested with the version of Lustre you are installing, you may need to build and install Lustre from source code. This chapter describes:</para>
68   <itemizedlist><listitem>
69       <para><anchor xml:id="dbdoclet.50438210_pgfId-1305083" xreflabel=""/><link xl:href="InstallingLustrefrSourceCode.html#50438210_69313">Overview and Prerequisites</link></para>
70     </listitem>
71 <listitem>
72       <para> </para>
73     </listitem>
74 <listitem>
75       <para><anchor xml:id="dbdoclet.50438210_pgfId-1305088" xreflabel=""/><link xl:href="InstallingLustrefrSourceCode.html#50438210_65411">Patching the Kernel</link></para>
76     </listitem>
77 <listitem>
78       <para> </para>
79     </listitem>
80 <listitem>
81       <para><anchor xml:id="dbdoclet.50438210_pgfId-1305093" xreflabel=""/><link xl:href="InstallingLustrefrSourceCode.html#50438210_47529">Creating and Installing the Lustre Packages</link></para>
82     </listitem>
83 <listitem>
84       <para> </para>
85     </listitem>
86 <listitem>
87       <para><anchor xml:id="dbdoclet.50438210_pgfId-1305098" xreflabel=""/><link xl:href="InstallingLustrefrSourceCode.html#50438210_27248">Installing Lustre with a Third-Party Network Stack</link></para>
88     </listitem>
89 <listitem>
90       <para> </para>
91     </listitem>
92 </itemizedlist>
93   <section remap="h2">
94     <title><anchor xml:id="dbdoclet.50438210_pgfId-1297212" xreflabel=""/></title>
95     <section remap="h2">
96       <title>29.1 <emphasis role="bold">Overview and Prerequisites</emphasis><anchor xml:id="dbdoclet.50438210_69313" xreflabel=""/></title>
97       <para><anchor xml:id="dbdoclet.50438210_pgfId-1305142" xreflabel=""/>Lustre can be installed from either pre-built binary packages (RPMs) or freely-available source code. Installing from the package release is recommended unless you need to customize the Lustre server kernel or will be using an Linux kernel that has not been tested with Lustre. For a list of supported Linux distributions and architectures, see the topic <link xl:href="http://wiki.lustre.org/index.php/Lustre_2.0">Lustre_2.0</link> on the Lustre wiki. The procedure for installing Lustre from RPMs is describe in <link xl:href="InstallingLustre.html#50438261_81829">Chapter 8</link>: <link xl:href="InstallingLustre.html#50438261_62973">Installing the Lustre Software</link>.</para>
98       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297213" xreflabel=""/>To install Lustre from source code, the following are required:</para>
99       <itemizedlist><listitem>
100           <para><anchor xml:id="dbdoclet.50438210_pgfId-1297214" xreflabel=""/> Linux kernel patched with Lustre-specific patches</para>
101         </listitem>
102 <listitem>
103           <para> </para>
104         </listitem>
105 <listitem>
106           <para><anchor xml:id="dbdoclet.50438210_pgfId-1297215" xreflabel=""/> Lustre modules compiled for the Linux kernel</para>
107         </listitem>
108 <listitem>
109           <para> </para>
110         </listitem>
111 <listitem>
112           <para><anchor xml:id="dbdoclet.50438210_pgfId-1297216" xreflabel=""/> Lustre utilities required for Lustre configuration</para>
113         </listitem>
114 <listitem>
115           <para> </para>
116         </listitem>
117 </itemizedlist>
118       <para><anchor xml:id="dbdoclet.50438210_pgfId-1304577" xreflabel=""/>The installation procedure involves several steps:</para>
119       <itemizedlist><listitem>
120           <para><anchor xml:id="dbdoclet.50438210_pgfId-1302403" xreflabel=""/> Patching the core kernel</para>
121         </listitem>
122 <listitem>
123           <para> </para>
124         </listitem>
125 <listitem>
126           <para><anchor xml:id="dbdoclet.50438210_pgfId-1302413" xreflabel=""/> Configuring the kernel to work with Lustre</para>
127         </listitem>
128 <listitem>
129           <para> </para>
130         </listitem>
131 <listitem>
132           <para><anchor xml:id="dbdoclet.50438210_pgfId-1302420" xreflabel=""/> Creating Lustre and kernel RPMs from source code.</para>
133         </listitem>
134 <listitem>
135           <para> </para>
136         </listitem>
137 </itemizedlist>
138       <informaltable frame="none">
139         <tgroup cols="1">
140           <colspec colname="c1" colwidth="100*"/>
141           <tbody>
142             <row>
143               <entry><para><emphasis role="bold">Note -</emphasis><anchor xml:id="dbdoclet.50438210_pgfId-1299593" xreflabel=""/>When using third-party network hardware with Lustre, the third-party modules (typically, the drivers) must be linked against the Linux kernel. The LNET modules in Lustre also need these references. To meet these requirements, a specific process must be followed to install and recompile Lustre. See <link xl:href="InstallingLustrefrSourceCode.html#50438210_27248">Installing Lustre with a Third-Party Network Stack</link>, for an example showing how to install Lustre 1.6.6 using the Myricom MX 1.2.7 driver. The same process can be used for other third-party network stacks.</para></entry>
144             </row>
145           </tbody>
146         </tgroup>
147       </informaltable>
148     </section>
149     <section remap="h2">
150       <title>29.2 <anchor xml:id="dbdoclet.50438210_65411" xreflabel=""/>Patching the Kernel</title>
151       <para><anchor xml:id="dbdoclet.50438210_pgfId-1296830" xreflabel=""/>If you are using non-standard hardware, plan to apply a Lustre patch, or have another reason not to use packaged Lustre binaries, you have to apply several Lustre patches to the core kernel and run the Lustre configure script against the kernel.</para>
152       <section remap="h3">
153         <title><anchor xml:id="dbdoclet.50438210_pgfId-1296831" xreflabel=""/>29.2.1 Introducing the Quilt Utility</title>
154         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296832" xreflabel=""/>To simplify the process of applying Lustre patches to the kernel, we recommend that you use the Quilt utility.</para>
155         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296833" xreflabel=""/>Quilt manages a stack of patches on a single source tree. A series file lists the patch files and the order in which they are applied. Patches are applied, incrementally, on the base tree and all preceding patches. You can:</para>
156         <itemizedlist><listitem>
157             <para><anchor xml:id="dbdoclet.50438210_pgfId-1302485" xreflabel=""/> Apply patches from the stack (quilt push)</para>
158           </listitem>
159 <listitem>
160             <para> </para>
161           </listitem>
162 <listitem>
163             <para><anchor xml:id="dbdoclet.50438210_pgfId-1302495" xreflabel=""/> Remove patches from the stack (quilt pop)</para>
164           </listitem>
165 <listitem>
166             <para> </para>
167           </listitem>
168 <listitem>
169             <para><anchor xml:id="dbdoclet.50438210_pgfId-1302502" xreflabel=""/> Query the contents of the series file (quilt series), the contents of the stack (quilt applied, quilt previous, quilt top), and the patches that are not applied at a particular moment (quilt next, quilt unapplied).</para>
170           </listitem>
171 <listitem>
172             <para> </para>
173           </listitem>
174 <listitem>
175             <para><anchor xml:id="dbdoclet.50438210_pgfId-1302509" xreflabel=""/> Edit and refresh (update) patches with Quilt, as well as revert inadvertent changes, and fork or clone patches and show the diffs before and after work.</para>
176           </listitem>
177 <listitem>
178             <para> </para>
179           </listitem>
180 </itemizedlist>
181         <para><anchor xml:id="dbdoclet.50438210_pgfId-1302510" xreflabel=""/>A variety of Quilt packages (RPMs, SRPMs and tarballs) are available from various sources. Use the most recent version you can find. Quilt depends on several other utilities, e.g., the coreutils RPM that is only available in RedHat 9. For other RedHat kernels, you have to get the required packages to successfully install Quilt. If you cannot locate a Quilt package or fulfill its dependencies, you can build Quilt from a tarball, available at the Quilt project website:</para>
182         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296837" xreflabel=""/><link xl:href="http://savannah.nongnu.org/projects/quilt">http://savannah.nongnu.org/projects/quilt</link></para>
183         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296838" xreflabel=""/>For additional information on using Quilt, including its commands, see <link xl:href="http://www.suse.de/~agruen/quilt.pdf">Introduction to Quilt</link> and the <link xl:href="http://linux.die.net/man/1/quilt">quilt(1) man page.</link></para>
184       </section>
185       <section remap="h3">
186         <title><anchor xml:id="dbdoclet.50438210_pgfId-1296842" xreflabel=""/>29.2.2 <anchor xml:id="dbdoclet.50438210_44148" xreflabel=""/>Get the Lustre Source and Unpatched Kernel</title>
187         <para><anchor xml:id="dbdoclet.50438210_pgfId-1302564" xreflabel=""/>The Lustre Engineering Team has targeted several Linux kernels for use with Lustre servers (MDS/OSS) and provides a series of patches for each one. The Lustre patches are maintained in the kernel_patch directory bundled with the Lustre source code.</para>
188         <informaltable frame="none">
189           <tgroup cols="2">
190             <colspec colname="c1" colwidth="5*"/>
191             <colspec colname="c2" colwidth="95*"/>
192             
193             
194             <tbody>
195               <row>
196                 <entry><para><inlinemediaobject><imageobject role="html">
197                         <imagedata fileref="./shared/caution.gif" scalefit="1"/>
198                       </imageobject>
199 <imageobject role="fo">
200                         <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/caution.gif" scalefit="1" width="100%"/>
201                       </imageobject>
202 </inlinemediaobject></para></entry>
203                 <entry><para><emphasis role="bold">Caution -</emphasis><anchor xml:id="dbdoclet.50438210_pgfId-1305236" xreflabel=""/>Lustre contains kernel modifications which interact with storage devices and may introduce security issues and data loss if not installed, configured and administered correctly. Before installing Lustre, be cautious and back up ALL data.</para></entry>
204               </row>
205             </tbody>
206           </tgroup>
207         </informaltable>
208          <informaltable frame="none">
209           <tgroup cols="1">
210             <colspec colname="c1" colwidth="100*"/>
211             <tbody>
212               <row>
213                 <entry><para><emphasis role="bold">Note -</emphasis> Each patch series has been tailored to a specific kernel version, and may or may not apply cleanly to other versions of the kernel.</para></entry>
214               </row>
215             </tbody>
216           </tgroup>
217         </informaltable>
218         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305199" xreflabel=""/>To obtain the Lustre source and unpatched kernel:</para>
219         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305200" xreflabel=""/> 1. Verify that all of the Lustre installation requirements have been met.</para>
220         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305210" xreflabel=""/>For more information on these prerequisites, see:</para>
221         <itemizedlist><listitem>
222             <para><anchor xml:id="dbdoclet.50438210_pgfId-1305217" xreflabel=""/> Hardware requirements in <link xl:href="SettingUpLustreSystem.html#50438256_38751">Chapter 5</link>: <link xl:href="SettingUpLustreSystem.html#50438256_66186">Setting Up a Lustre File System</link></para>
223           </listitem>
224 <listitem>
225             <para> </para>
226           </listitem>
227 <listitem>
228             <para><anchor xml:id="dbdoclet.50438210_pgfId-1305220" xreflabel=""/> Software and environmental requirements in <link xl:href="InstallingLustre.html#50438261_99193">Preparing to Install the Lustre Software</link></para>
229           </listitem>
230 <listitem>
231             <para> </para>
232           </listitem>
233 </itemizedlist>
234         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305206" xreflabel=""/> 2. Download the Lustre source code.</para>
235         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305253" xreflabel=""/>On the <link xl:href="http://www.oracle.com/technetwork/indexes/downloads/sun-az-index-095901.html#L">Lustre download site</link>, select a version of Lustre to download and then select â€œSource†as the platform.</para>
236         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296849" xreflabel=""/> 3. Download the unpatched kernel.</para>
237         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296857" xreflabel=""/>For convenience, Oracle maintains an archive of unpatched kernel sources at:</para>
238         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305277" xreflabel=""/><link xl:href="http://downloads.lustre.org/public/kernels/">http://downloads.lustre.org/public/kernels/</link><anchor xml:id="dbdoclet.50438210_28487" xreflabel=""/></para>
239       </section>
240       <section remap="h3">
241         <title><anchor xml:id="dbdoclet.50438210_pgfId-1305280" xreflabel=""/>29.2.3 Patch the Kernel</title>
242         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305429" xreflabel=""/>This procedure describes how to use Quilt to apply the Lustre patches to the kernel. To illustrate the steps in this procedure, a RHEL 5 kernel is patched for Lustre 1.6.5.1.</para>
243         <para><anchor xml:id="dbdoclet.50438210_pgfId-1305430" xreflabel=""/> 1. Unpack the Lustre source and kernel to separate source trees.</para>
244         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296865" xreflabel=""/>a. Unpack the Lustre source.</para>
245         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296866" xreflabel=""/>For this procedure, we assume that the resulting source tree is in /tmp/lustre-1.6.5.1</para>
246         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296867" xreflabel=""/>b. Unpack the kernel.</para>
247         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296868" xreflabel=""/>For this procedure, we assume that the resulting source tree (also known as the destination tree) is in /tmp/kernels/linux-2.6.18</para>
248         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296869" xreflabel=""/> 2. Select a config file for your kernel, located in the kernel_configs directory (lustre/kernel_patches/kernel_config).</para>
249         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296870" xreflabel=""/>The kernel_config directory contains the .config files, which are named to indicate the kernel and architecture with which they are associated. For example, the configuration file for the 2.6.18 kernel shipped with RHEL 5 (suitable for i686 SMP systems) is kernel-2.6.18-2.6-rhel5-i686-smp.config.</para>
250         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296871" xreflabel=""/> 3. Select the series file for your kernel, located in the series directory (lustre/kernel_patches/series).</para>
251         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296872" xreflabel=""/>The series file contains the patches that need to be applied to the kernel.</para>
252         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296873" xreflabel=""/> 4. Set up the necessary symlinks between the kernel patches and the Lustre source.</para>
253         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296874" xreflabel=""/>This example assumes that the Lustre source files are unpacked under /tmp/lustre-1.6.5.1 and you have chosen the 2.6-rhel5.series file). Run:</para>
254         <screen><anchor xml:id="dbdoclet.50438210_pgfId-1296875" xreflabel=""/>$ cd /tmp/kernels/linux-2.6.18
255 <anchor xml:id="dbdoclet.50438210_pgfId-1296876" xreflabel=""/>$ rm -f patches series
256 <anchor xml:id="dbdoclet.50438210_pgfId-1296877" xreflabel=""/>$ ln -s /tmp/lustre-1.6.5.1/lustre/kernel_patches/series/2.6-\ rhel5.series\
257  ./series
258 <anchor xml:id="dbdoclet.50438210_pgfId-1296878" xreflabel=""/>$ ln -s /tmp/lustre-1.6.5.1/lustre/kernel_patches/patches .
259 </screen>
260         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296879" xreflabel=""/> 5. Use Quilt to apply the patches in the selected series file to the unpatched kernel. Run:</para>
261         <screen><anchor xml:id="dbdoclet.50438210_pgfId-1296880" xreflabel=""/>$ cd /tmp/kernels/linux-2.6.18
262 <anchor xml:id="dbdoclet.50438210_pgfId-1296881" xreflabel=""/>$ quilt push -av
263 </screen>
264         <para><anchor xml:id="dbdoclet.50438210_pgfId-1296882" xreflabel=""/>The patched destination tree acts as a base Linux source tree for Lustre.</para>
265       </section>
266     </section>
267     <section remap="h2">
268       <title>29.3 <anchor xml:id="dbdoclet.50438210_47529" xreflabel=""/>Creating and Installing the Lustre Packages</title>
269       <para><anchor xml:id="dbdoclet.50438210_pgfId-1296886" xreflabel=""/>After patching the kernel, configure it to work with Lustre, create the Lustre packages (RPMs) and install them.</para>
270       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297162" xreflabel=""/> 1. Configure the patched kernel to run with Lustre. Run:</para>
271       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1297163" xreflabel=""/>$ cd &lt;path to kernel tree&gt;
272 <anchor xml:id="dbdoclet.50438210_pgfId-1297079" xreflabel=""/>$ cp /boot/config-‘uname -r‘ .config
273 <anchor xml:id="dbdoclet.50438210_pgfId-1297080" xreflabel=""/>$ make oldconfig || make menuconfig
274 <anchor xml:id="dbdoclet.50438210_pgfId-1297083" xreflabel=""/>$ make include/asm
275 <anchor xml:id="dbdoclet.50438210_pgfId-1297084" xreflabel=""/>$ make include/linux/version.h
276 <anchor xml:id="dbdoclet.50438210_pgfId-1297085" xreflabel=""/>$ make SUBDIRS=scripts
277 <anchor xml:id="dbdoclet.50438210_pgfId-1297086" xreflabel=""/>$ make include/linux/utsrelease.h
278 </screen>
279       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297087" xreflabel=""/> 2. Run the Lustre configure script against the patched kernel and create the Lustre packages.</para>
280       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1297088" xreflabel=""/>$ cd &lt;path to lustre source tree&gt;
281 <anchor xml:id="dbdoclet.50438210_pgfId-1297089" xreflabel=""/>$ ./configure --with-linux=&lt;path to kernel tree&gt;
282 <anchor xml:id="dbdoclet.50438210_pgfId-1297090" xreflabel=""/>$ make rpms
283 </screen>
284       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297091" xreflabel=""/>This creates a set of .rpms in /usr/src/redhat/RPMS/&lt;arch&gt; with an appended date-stamp. The SuSE path is /usr/src/packages.</para>
285       <informaltable frame="none">
286         <tgroup cols="1">
287           <colspec colname="c1" colwidth="100*"/>
288           <tbody>
289             <row>
290               <entry><para><emphasis role="bold">Note -</emphasis><anchor xml:id="dbdoclet.50438210_pgfId-1298281" xreflabel=""/>You do not need to run the Lustre configure script against an unpatched kernel.</para></entry>
291             </row>
292           </tbody>
293         </tgroup>
294       </informaltable>
295       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297092" xreflabel=""/><emphasis role="bold">Example set of RPMs:</emphasis></para>
296       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1297093" xreflabel=""/>lustre-1.6.5.1-\2.6.18_53.xx.xx.el5_lustre.1.6.5.1.custom_20081021.i686.rpm
297 <anchor xml:id="dbdoclet.50438210_pgfId-1297094" xreflabel=""/> 
298 <anchor xml:id="dbdoclet.50438210_pgfId-1297095" xreflabel=""/>lustre-debuginfo-1.6.5.1-\2.6.18_53.xx.xx.el5_lustre.1.6.5.1.custom_2008102\
299 1.i686.rpm
300 <anchor xml:id="dbdoclet.50438210_pgfId-1297096" xreflabel=""/> 
301 <anchor xml:id="dbdoclet.50438210_pgfId-1297097" xreflabel=""/>lustre-modules-1.6.5.1-\2.6.18_53.xx.xxel5_lustre.1.6.5.1.custom_20081021.i\
302 686.rpm
303 <anchor xml:id="dbdoclet.50438210_pgfId-1297098" xreflabel=""/> 
304 <anchor xml:id="dbdoclet.50438210_pgfId-1297099" xreflabel=""/>lustre-source-1.6.5.1-\2.6.18_53.xx.xx.el5_lustre.1.6.5.1.custom_20081021.i\
305 686.rpm
306 </screen>
307       <informaltable frame="none">
308         <tgroup cols="1">
309           <colspec colname="c1" colwidth="100*"/>
310           <tbody>
311             <row>
312               <entry><para><emphasis role="bold">Note -</emphasis><anchor xml:id="dbdoclet.50438210_pgfId-1297101" xreflabel=""/>If the steps to create the RPMs fail, contact Lustre Support by reporting a bug. See <link xl:href="LustreTroubleshooting.html#50438198_30989">Reporting a Lustre Bug</link>.</para></entry>
313             </row>
314           </tbody>
315         </tgroup>
316       </informaltable>
317        <informaltable frame="none">
318         <tgroup cols="1">
319           <colspec colname="c1" colwidth="100*"/>
320           <tbody>
321             <row>
322               <entry><para><emphasis role="bold">Note -</emphasis><anchor xml:id="dbdoclet.50438210_pgfId-1297102" xreflabel=""/>Several features and packages are available that extend the core functionality of Lustre. These features/packages can be enabled at the build time by issuing appropriate arguments to the configure command. For a list of these features and packages, run ./configure -help in the Lustre source tree. The configs/ directory of the kernel source contains the config files matching each the kernel version. Copy one to .config at the root of the kernel tree.</para></entry>
323             </row>
324           </tbody>
325         </tgroup>
326       </informaltable>
327       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297103" xreflabel=""/> 3. <anchor xml:id="dbdoclet.50438210_41207" xreflabel=""/>Create the kernel package. Navigate to the kernel source directory and run:</para>
328       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1297104" xreflabel=""/>$ make rpm
329 </screen>
330       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297106" xreflabel=""/>Example result:</para>
331       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1297107" xreflabel=""/>kernel-2.6.95.0.3.EL_lustre.1.6.5.1custom-1.i686.rpm
332 </screen>
333       <informaltable frame="none">
334         <tgroup cols="1">
335           <colspec colname="c1" colwidth="100*"/>
336           <tbody>
337             <row>
338               <entry><para><emphasis role="bold">Note -</emphasis><anchor xml:id="dbdoclet.50438210_pgfId-1297108" xreflabel=""/><link xl:href="InstallingLustrefrSourceCode.html#50438210_41207">Step 3</link> is only valid for RedHat and SuSE kernels. If you are using a stock Linux kernel, you need to get a script to create the kernel RPM.</para></entry>
339             </row>
340           </tbody>
341         </tgroup>
342       </informaltable>
343        <para><anchor xml:id="dbdoclet.50438210_pgfId-1297755" xreflabel=""/> 4. Install the Lustre packages.</para>
344       <para><anchor xml:id="dbdoclet.50438210_pgfId-1302732" xreflabel=""/>Some Lustre packages are installed on servers (MDS and OSSs), and others are installed on Lustre clients. For guidance on where to install specific packages, see <link xl:href="InstallingLustre.html#50438261_21654">TABLE 8-1</link> in <link xl:href="InstallingLustre.html#50438261_99193">Preparing to Install the Lustre Software</link>. which lists required packages and for each package, where to install it. Depending on the selected platform, not all of the packages listed in <link xl:href="InstallingLustre.html#50438261_21654">TABLE 8-1</link> need to be installed.</para>
345       <informaltable frame="none">
346         <tgroup cols="1">
347           <colspec colname="c1" colwidth="100*"/>
348           <tbody>
349             <row>
350               <entry><para><emphasis role="bold">Note -</emphasis><anchor xml:id="dbdoclet.50438210_pgfId-1302707" xreflabel=""/>Running the patched server kernel on the clients is optional. It is not necessary unless the clients will be used for multiple purposes, for example, to run as a client and an OST.</para></entry>
351             </row>
352           </tbody>
353         </tgroup>
354       </informaltable>
355        <para><anchor xml:id="dbdoclet.50438210_pgfId-1302716" xreflabel=""/>Lustre packages should be installed in this order:</para>
356       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297644" xreflabel=""/>a. Install the kernel, modules and ldiskfs packages.</para>
357       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297645" xreflabel=""/>Navigate to the directory where the RPMs are stored, and use the rpm -ivh command to install the kernel, module and ldiskfs packages.</para>
358       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299031" xreflabel=""/>$ rpm -ivh kernel-lustre-smp-&lt;ver&gt; \
359 <anchor xml:id="dbdoclet.50438210_pgfId-1299032" xreflabel=""/>kernel-ib-&lt;ver&gt; \
360 <anchor xml:id="dbdoclet.50438210_pgfId-1299033" xreflabel=""/>lustre-modules-&lt;ver&gt; \
361 <anchor xml:id="dbdoclet.50438210_pgfId-1299034" xreflabel=""/>lustre-ldiskfs-&lt;ver&gt;
362 </screen>
363       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297650" xreflabel=""/>b. Install the utilities/userspace packages.</para>
364       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297651" xreflabel=""/>Use the rpm -ivh command to install the utilities packages. For example:</para>
365       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1297652" xreflabel=""/>$ rpm -ivh lustre-&lt;ver&gt;
366 </screen>
367       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297653" xreflabel=""/>c. Install the e2fsprogs package.</para>
368       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297654" xreflabel=""/>Make sure the e2fsprogs package is unpacked, and use the rpm -i command to install it. For example:</para>
369       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1297655" xreflabel=""/>$ rpm -i e2fsprogs-&lt;ver&gt;
370 </screen>
371       <para><anchor xml:id="dbdoclet.50438210_pgfId-1297656" xreflabel=""/>d. (Optional) If you want to add optional packages to your Lustre system, install them now.</para>
372       <para><anchor xml:id="dbdoclet.50438210_pgfId-1298263" xreflabel=""/> 5. Verify that the boot loader (grub.conf or lilo.conf) has been updated to load the patched kernel.</para>
373       <para><anchor xml:id="dbdoclet.50438210_pgfId-1298264" xreflabel=""/> 6. Reboot the patched clients and the servers.</para>
374       <para><anchor xml:id="dbdoclet.50438210_pgfId-1298265" xreflabel=""/>a. If you applied the patched kernel to any clients, reboot them.</para>
375       <para><anchor xml:id="dbdoclet.50438210_pgfId-1298266" xreflabel=""/>Unpatched clients do not need to be rebooted.</para>
376       <para><anchor xml:id="dbdoclet.50438210_pgfId-1298267" xreflabel=""/>b. Reboot the servers.</para>
377       <para><anchor xml:id="dbdoclet.50438210_pgfId-1298268" xreflabel=""/>Once all the machines have rebooted, the next steps are to configure Lustre Networking (LNET) and the Lustre file system. See <link xl:href="ConfiguringLustre.html#50438267_88428">Chapter 10</link>: <link xl:href="ConfiguringLustre.html#50438267_66186">Configuring Lustre</link>.</para>
378     </section>
379     <section remap="h2">
380       <title>29.4 <anchor xml:id="dbdoclet.50438210_27248" xreflabel=""/>Installing Lustre with a Third-Party Network Stack</title>
381       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299781" xreflabel=""/>When using third-party network hardware, you must follow a specific process to install and recompile Lustre. This section provides an installation example, describing how to install Lustre 1.6.6 while using the Myricom MX 1.2.7 driver. The same process is used for other third-party network stacks, by replacing MX-specific references in <link xl:href="InstallingLustrefrSourceCode.html#50438210_12366">Step 2</link> with the stack-specific build and using the proper --with option when configuring the Lustre source code.</para>
382       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299638" xreflabel=""/> 1. Compile and install the Lustre kernel.</para>
383       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299642" xreflabel=""/>a. Install the necessary build tools.</para>
384       <para><anchor xml:id="dbdoclet.50438210_pgfId-1305395" xreflabel=""/>GCC and related tools must be installed. For more information, see <link xl:href="InstallingLustre.html#50438261_37079">Required Software</link>.</para>
385       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299645" xreflabel=""/>$ yum install rpm-build redhat-rpm-config
386 <anchor xml:id="dbdoclet.50438210_pgfId-1300055" xreflabel=""/>$ mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
387 <anchor xml:id="dbdoclet.50438210_pgfId-1300058" xreflabel=""/>$ echo &apos;%_topdir %(echo $HOME)/rpmbuild&apos; &gt; .rpmmacros
388 </screen>
389       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299650" xreflabel=""/>b. Install the patched Lustre source code.</para>
390       <para><anchor xml:id="dbdoclet.50438210_pgfId-1300116" xreflabel=""/>This RPM is available at the <link xl:href="http://www.oracle.com/technetwork/indexes/downloads/sun-az-index-095901.html#L">Lustre download site</link>.</para>
391       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1300294" xreflabel=""/>$ rpm -ivh \
392 <anchor xml:id="dbdoclet.50438210_pgfId-1305349" xreflabel=""/>kernel-lustre-source-2.6.18-92.1.10.el5_lustre.1.6.6.x86_64.rpm
393 </screen>
394       <para><anchor xml:id="dbdoclet.50438210_pgfId-1300117" xreflabel=""/>a. Build the Linux kernel RPM.</para>
395       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299659" xreflabel=""/>$ cd /usr/src/linux-2.6.18-92.1.10.el5_lustre.1.6.6
396 <anchor xml:id="dbdoclet.50438210_pgfId-1300080" xreflabel=""/>$ make distclean
397 <anchor xml:id="dbdoclet.50438210_pgfId-1300083" xreflabel=""/>$ make oldconfig dep bzImage modules
398 <anchor xml:id="dbdoclet.50438210_pgfId-1300086" xreflabel=""/>$ cp /boot/config-`uname -r` .config
399 <anchor xml:id="dbdoclet.50438210_pgfId-1300089" xreflabel=""/>$ make oldconfig || make menuconfig
400 <anchor xml:id="dbdoclet.50438210_pgfId-1300092" xreflabel=""/>$ make include/asm
401 <anchor xml:id="dbdoclet.50438210_pgfId-1300095" xreflabel=""/>$ make include/linux/version.h
402 <anchor xml:id="dbdoclet.50438210_pgfId-1300098" xreflabel=""/>$ make SUBDIRS=scripts
403 <anchor xml:id="dbdoclet.50438210_pgfId-1300101" xreflabel=""/>$ make rpm
404 </screen>
405       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299670" xreflabel=""/>b. Install the Linux kernel RPM.</para>
406       <para><anchor xml:id="dbdoclet.50438210_pgfId-1300130" xreflabel=""/>If you are building a set of RPMs for a cluster installation, this step is not necessary. Source RPMs are only needed on the build machine.</para>
407       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299674" xreflabel=""/>$ rpm -ivh \
408 <anchor xml:id="dbdoclet.50438210_pgfId-1305534" xreflabel=""/>~/rpmbuild/kernel-lustre-2.6.18-92.1.10.el5_\lustre.1.6.6.x86_64.rpm
409 <anchor xml:id="dbdoclet.50438210_pgfId-1300142" xreflabel=""/>$ mkinitrd /boot/2.6.18-92.1.10.el5_lustre.1.6.6
410 </screen>
411       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299677" xreflabel=""/>c. Update the boot loader (/etc/grub.conf) with the new kernel boot information.</para>
412       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299679" xreflabel=""/>$ /sbin/shutdown 0 -r
413 </screen>
414       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299681" xreflabel=""/> 2. <anchor xml:id="dbdoclet.50438210_12366" xreflabel=""/>Compile and install the MX stack.</para>
415       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299686" xreflabel=""/>$ cd /usr/src/
416 <anchor xml:id="dbdoclet.50438210_pgfId-1299907" xreflabel=""/>$ gunzip mx_1.2.7.tar.gz (can be obtained from www.myri.com/scs/)
417 <anchor xml:id="dbdoclet.50438210_pgfId-1299910" xreflabel=""/>$ tar -xvf mx_1.2.7.tar
418 <anchor xml:id="dbdoclet.50438210_pgfId-1299913" xreflabel=""/>$ cd mx-1.2.7
419 <anchor xml:id="dbdoclet.50438210_pgfId-1299916" xreflabel=""/>$ ln -s common include
420 <anchor xml:id="dbdoclet.50438210_pgfId-1299919" xreflabel=""/>$ ./configure --with-kernel-lib
421 <anchor xml:id="dbdoclet.50438210_pgfId-1299922" xreflabel=""/>$ make
422 <anchor xml:id="dbdoclet.50438210_pgfId-1299925" xreflabel=""/>$ make install
423 </screen>
424       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299696" xreflabel=""/> 3. Compile and install the Lustre source code.</para>
425       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299698" xreflabel=""/>a. Install the Lustre source (this can be done via RPM or tarball). The source file is available at the <link xl:href="http://www.oracle.com/technetwork/indexes/downloads/sun-az-index-095901.html#L">Lustre download site</link>. This example shows installation via the tarball.</para>
426       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299700" xreflabel=""/>$ cd /usr/src/
427 <anchor xml:id="dbdoclet.50438210_pgfId-1300181" xreflabel=""/>$ gunzip lustre-1.6.6.tar.gz
428 <anchor xml:id="dbdoclet.50438210_pgfId-1300184" xreflabel=""/>$ tar -xvf lustre-1.6.6.tar
429 </screen>
430       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299706" xreflabel=""/>b. Configure and build the Lustre source code.</para>
431       <para><anchor xml:id="dbdoclet.50438210_pgfId-1300191" xreflabel=""/>The ./configure --help command shows a list of all of the --with options. All third-party network stacks are built in this manner.</para>
432       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299711" xreflabel=""/>$ cd lustre-1.6.6
433 <anchor xml:id="dbdoclet.50438210_pgfId-1300366" xreflabel=""/>$ ./configure --with-linux=/usr/src/linux \
434 <anchor xml:id="dbdoclet.50438210_pgfId-1305509" xreflabel=""/>--with-mx=/usr/src/mx-1.2.7
435 <anchor xml:id="dbdoclet.50438210_pgfId-1300369" xreflabel=""/>$ make
436 <anchor xml:id="dbdoclet.50438210_pgfId-1300372" xreflabel=""/>$ make rpms
437 </screen>
438       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299716" xreflabel=""/>The make rpms command output shows the location of the generated RPMs</para>
439       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299718" xreflabel=""/> 4. Use the rpm -ivh command to install the RPMS.</para>
440       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299720" xreflabel=""/>$ rpm -ivh \
441 <anchor xml:id="dbdoclet.50438210_pgfId-1305550" xreflabel=""/>lustre-1.6.6-2.6.18_92.1.10.el5_lustre.1.6.6smp.x86_64.rpm
442 <anchor xml:id="dbdoclet.50438210_pgfId-1300246" xreflabel=""/>$ rpm -ivh \
443 <anchor xml:id="dbdoclet.50438210_pgfId-1305560" xreflabel=""/>lustre-modules-1.6.6-2.6.18_92.1.10.el5_lustre.1.6.6\
444 <anchor xml:id="dbdoclet.50438210_pgfId-1305564" xreflabel=""/>smp.x86_64.rpm
445 <anchor xml:id="dbdoclet.50438210_pgfId-1300249" xreflabel=""/>$ rpm -ivh \
446 <anchor xml:id="dbdoclet.50438210_pgfId-1305568" xreflabel=""/>lustre-ldiskfs-3.0.6-2.6.18_92.1.10.el5_lustre.1.6.6\
447 <anchor xml:id="dbdoclet.50438210_pgfId-1305572" xreflabel=""/>smp.x86_64.rpm
448 </screen>
449       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299726" xreflabel=""/> 5. Add the following lines to the /etc/modprobe.conf file.</para>
450       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299727" xreflabel=""/>options kmxlnd hosts=/etc/hosts.mxlnd
451 <anchor xml:id="dbdoclet.50438210_pgfId-1300264" xreflabel=""/>options lnet networks=mx0(myri0),tcp0(eth0)
452 </screen>
453       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299730" xreflabel=""/> 6. Populate the myri0 configuration with the proper IP addresses.</para>
454       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299731" xreflabel=""/>vim /etc/sysconfig/network-scripts/myri0
455 </screen>
456       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299733" xreflabel=""/> 7. Add the following line to the /etc/hosts.mxlnd file.</para>
457       <screen><anchor xml:id="dbdoclet.50438210_pgfId-1299734" xreflabel=""/>$ IP HOST BOARD EP_ID
458 </screen>
459       <para><anchor xml:id="dbdoclet.50438210_pgfId-1299736" xreflabel=""/> 8. Start Lustre.</para>
460       <para><anchor xml:id="dbdoclet.50438210_pgfId-1300394" xreflabel=""/>Once all the machines have rebooted, the next steps are to configure Lustre Networking (LNET) and the Lustre file system. See <link xl:href="ConfiguringLustre.html#50438267_88428">Chapter 10</link>: <link xl:href="InstallingLustrefrSourceCode.html#50438210_67391">Installing Lustre from Source Code</link>.</para>
461       <!--
462 Begin SiteCatalyst code version: G.5.
463 -->
464       <!--
465 End SiteCatalyst code version: G.5.
466 -->
467         <informaltable frame="none">
468         <tgroup cols="3">
469           <colspec colname="c1" colwidth="33*"/>
470           <colspec colname="c2" colwidth="33*"/>
471           <colspec colname="c3" colwidth="33*"/>
472           
473           
474           
475           <tbody>
476             <row>
477               <entry align="left"><para>Lustre 2.0 Operations Manual</para></entry>
478               <entry align="right"><para>821-2076-10</para></entry>
479               <entry align="right" valign="top"><para><link xl:href="index.html"><inlinemediaobject><imageobject role="html">
480                         <imagedata contentdepth="26" contentwidth="30" fileref="./shared/toc01.gif" scalefit="1"/>
481                       </imageobject>
482 <imageobject role="fo">
483                         <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/toc01.gif" scalefit="1" width="100%"/>
484                       </imageobject>
485 </inlinemediaobject></link><link xl:href="VI_Reference.html"><inlinemediaobject><imageobject role="html">
486                         <imagedata contentdepth="26" contentwidth="30" fileref="./shared/prev01.gif" scalefit="1"/>
487                       </imageobject>
488 <imageobject role="fo">
489                         <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/prev01.gif" scalefit="1" width="100%"/>
490                       </imageobject>
491 </inlinemediaobject></link><link xl:href="LustreRecovery.html"><inlinemediaobject><imageobject role="html">
492                         <imagedata contentdepth="26" contentwidth="30" fileref="./shared/next01.gif" scalefit="1"/>
493                       </imageobject>
494 <imageobject role="fo">
495                         <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/next01.gif" scalefit="1" width="100%"/>
496                       </imageobject>
497 </inlinemediaobject></link><link xl:href="ix.html"><inlinemediaobject><imageobject role="html">
498                         <imagedata contentdepth="26" contentwidth="30" fileref="./shared/index01.gif" scalefit="1"/>
499                       </imageobject>
500 <imageobject role="fo">
501                         <imagedata contentdepth="100%" contentwidth="" depth="" fileref="./shared/index01.gif" scalefit="1" width="100%"/>
502                       </imageobject>
503 </inlinemediaobject></link></para></entry>
504             </row>
505           </tbody>
506         </tgroup>
507       </informaltable>
508       <para><link xl:href=""/></para>
509       <para><link xl:href="copyright.html">Copyright</link> © 2011, Oracle and/or its affiliates. All rights reserved.</para>
510     </section>
511   </section>
512 </article>