Whamcloud - gitweb
LUDOC-104 meta: support lustre versions thru 2.9.
[doc/manual.git] / UnderstandingLustre.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <chapter xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0"
3   xml:lang="en-US" xml:id="understandinglustre">
4   <title xml:id="understandinglustre.title">Understanding  Lustre Architecture</title>
5   <para>This chapter describes the Lustre architecture and features of the Lustre file system. It
6     includes the following sections:</para>
7   <itemizedlist>
8     <listitem>
9       <para>
10         <xref linkend="understandinglustre.whatislustre"/>
11       </para>
12     </listitem>
13     <listitem>
14       <para>
15         <xref linkend="understandinglustre.components"/>
16       </para>
17     </listitem>
18     <listitem>
19       <para>
20         <xref linkend="understandinglustre.storageio"/>
21       </para>
22     </listitem>
23   </itemizedlist>
24   <section xml:id="understandinglustre.whatislustre">
25     <title><indexterm>
26         <primary>Lustre</primary>
27       </indexterm>What a Lustre File System Is (and What It Isn&apos;t)</title>
28     <para>The Lustre architecture is a storage architecture for clusters. The central component of
29       the Lustre architecture is the Lustre file system, which is supported on the Linux operating
30       system and provides a POSIX<superscript>*</superscript> standard-compliant UNIX file system
31       interface.</para>
32     <para>The Lustre storage architecture is used for many different kinds of clusters. It is best
33       known for powering many of the largest high-performance computing (HPC) clusters worldwide,
34       with tens of thousands of client systems, petabytes (PB) of storage and hundreds of gigabytes
35       per second (GB/sec) of I/O throughput. Many HPC sites use a Lustre file system as a site-wide
36       global file system, serving dozens of clusters.</para>
37     <para>The ability of a Lustre file system to scale capacity and performance for any need reduces
38       the need to deploy many separate file systems, such as one for each compute cluster. Storage
39       management is simplified by avoiding the need to copy data between compute clusters. In
40       addition to aggregating storage capacity of many servers, the I/O throughput is also
41       aggregated and scales with additional servers. Moreover, throughput and/or capacity can be
42       easily increased by adding servers dynamically.</para>
43     <para>While a Lustre file system can function in many work environments, it is not necessarily
44       the best choice for all applications. It is best suited for uses that exceed the capacity that
45       a single server can provide, though in some use cases, a Lustre file system can perform better
46       with a single server than other file systems due to its strong locking and data
47       coherency.</para>
48     <para>A Lustre file system is currently not particularly well suited for
49       &quot;peer-to-peer&quot; usage models where clients and servers are running on the same node,
50       each sharing a small amount of storage, due to the lack of data replication at the Lustre
51       software level. In such uses, if one client/server fails, then the data stored on that node
52       will not be accessible until the node is restarted.</para>
53     <section remap="h3">
54       <title><indexterm>
55           <primary>Lustre</primary>
56           <secondary>features</secondary>
57         </indexterm>Lustre Features</title>
58       <para>Lustre file systems run on a variety of vendor&apos;s kernels. For more details, see the
59         Lustre Test Matrix <xref xmlns:xlink="http://www.w3.org/1999/xlink"
60           linkend="dbdoclet.50438261_99193"/>.</para>
61       <para>A Lustre installation can be scaled up or down with respect to the number of client
62         nodes, disk storage and bandwidth. Scalability and performance are dependent on available
63         disk and network bandwidth and the processing power of the servers in the system. A Lustre
64         file system can be deployed in a wide variety of configurations that can be scaled well
65         beyond the size and performance observed in production systems to date.</para>
66       <para><xref linkend="understandinglustre.tab1"/> shows the practical range of scalability and
67         performance characteristics of a Lustre file system and some test results in production
68         systems.</para>
69       <table frame="all">
70         <title xml:id="understandinglustre.tab1">Lustre File System Scalability and
71           Performance</title>
72         <tgroup cols="3">
73           <colspec colname="c1" colwidth="1*"/>
74           <colspec colname="c2" colwidth="2*"/>
75           <colspec colname="c3" colwidth="3*"/>
76           <thead>
77             <row>
78               <entry>
79                 <para><emphasis role="bold">Feature</emphasis></para>
80               </entry>
81               <entry>
82                 <para><emphasis role="bold">Current Practical Range</emphasis></para>
83               </entry>
84               <entry>
85                 <para><emphasis role="bold">Tested in Production</emphasis></para>
86               </entry>
87             </row>
88           </thead>
89           <tbody>
90             <row>
91               <entry>
92                 <para>
93                   <emphasis role="bold">Client Scalability</emphasis></para>
94               </entry>
95               <entry>
96                 <para> 100-100000</para>
97               </entry>
98               <entry>
99                 <para> 50000+ clients, many in the 10000 to 20000 range</para>
100               </entry>
101             </row>
102             <row>
103               <entry>
104                 <para><emphasis role="bold">Client Performance</emphasis></para>
105               </entry>
106               <entry>
107                 <para>
108                   <emphasis>Single client: </emphasis></para>
109                 <para>I/O 90% of network bandwidth</para>
110                 <para><emphasis>Aggregate:</emphasis></para>
111                 <para>2.5 TB/sec I/O</para>
112               </entry>
113               <entry>
114                 <para>
115                   <emphasis>Single client: </emphasis></para>
116                 <para>2 GB/sec I/O, 1000 metadata ops/sec</para>
117                 <para><emphasis>Aggregate:</emphasis></para>
118                 <para>240 GB/sec I/O </para>
119               </entry>
120             </row>
121             <row>
122               <entry>
123                 <para>
124                   <emphasis role="bold">OSS Scalability</emphasis></para>
125               </entry>
126               <entry>
127                 <para>
128                   <emphasis>Single OSS:</emphasis></para>
129                 <para>1-32 OSTs per OSS,</para>
130                 <para>128TB per OST</para>
131                 <para>
132                   <emphasis>OSS count:</emphasis></para>
133                 <para>500 OSSs, with up to 4000 OSTs</para>
134               </entry>
135               <entry>
136                 <para>
137                   <emphasis>Single OSS:</emphasis></para>
138                 <para>8 OSTs per OSS,</para>
139                 <para>16TB per OST</para>
140                 <para>
141                   <emphasis>OSS count:</emphasis></para>
142                 <para>450 OSSs with 1000 4TB OSTs</para>
143                 <para>192 OSSs with 1344 8TB OSTs</para>
144               </entry>
145             </row>
146             <row>
147               <entry>
148                 <para>
149                   <emphasis role="bold">OSS Performance</emphasis></para>
150               </entry>
151               <entry>
152                 <para>
153                   <emphasis>Single OSS:</emphasis></para>
154                 <para> 5 GB/sec</para>
155                 <para>
156                   <emphasis>Aggregate:</emphasis></para>
157                 <para> 2.5 TB/sec</para>
158               </entry>
159               <entry>
160                 <para>
161                   <emphasis>Single OSS:</emphasis></para>
162                 <para> 2.0+ GB/sec</para>
163                 <para>
164                   <emphasis>Aggregate:</emphasis></para>
165                 <para> 240 GB/sec</para>
166               </entry>
167             </row>
168             <row>
169               <entry>
170                 <para>
171                   <emphasis role="bold">MDS Scalability</emphasis></para>
172               </entry>
173               <entry>
174                 <para>
175                   <emphasis>Single MDS:</emphasis></para>
176                 <para> 4 billion files</para>
177                 <para>
178                   <emphasis>MDS count:</emphasis></para>
179                 <para> 1 primary + 1 backup</para>
180                 <para condition="l24"><emphasis role="italic">Since Lustre software release 2.4:
181                   </emphasis></para>
182                 <para condition="l24">Up to 4096 MDSs and up to 4096 MDTs</para>
183               </entry>
184               <entry>
185                 <para>
186                   <emphasis>Single MDS:</emphasis></para>
187                 <para> 750 million files</para>
188                 <para>
189                   <emphasis>MDS count:</emphasis></para>
190                 <para> 1 primary + 1 backup</para>
191               </entry>
192             </row>
193             <row>
194               <entry>
195                 <para>
196                   <emphasis role="bold">MDS Performance</emphasis></para>
197               </entry>
198               <entry>
199                 <para> 35000/s create operations,</para>
200                 <para> 100000/s metadata stat operations</para>
201               </entry>
202               <entry>
203                 <para> 15000/s create operations,</para>
204                 <para> 35000/s metadata stat operations</para>
205               </entry>
206             </row>
207             <row>
208               <entry>
209                 <para>
210                   <emphasis role="bold">File system Scalability</emphasis></para>
211               </entry>
212               <entry>
213                 <para>
214                   <emphasis>Single File:</emphasis></para>
215                 <para>2.5 PB max file size</para>
216                 <para>
217                   <emphasis>Aggregate:</emphasis></para>
218                 <para>512 PB space, 4 billion files</para>
219               </entry>
220               <entry>
221                 <para>
222                   <emphasis>Single File:</emphasis></para>
223                 <para>multi-TB max file size</para>
224                 <para>
225                   <emphasis>Aggregate:</emphasis></para>
226                 <para>10 PB space, 750 million files</para>
227               </entry>
228             </row>
229           </tbody>
230         </tgroup>
231       </table>
232       <para>Other Lustre software features are:</para>
233       <itemizedlist>
234         <listitem>
235           <para><emphasis role="bold">Performance-enhanced ext4 file system:</emphasis> The Lustre
236             file system uses an improved version of the ext4 journaling file system to store data
237             and metadata. This version, called <emphasis role="italic"
238               ><literal>ldiskfs</literal></emphasis>, has been enhanced to improve performance and
239             provide additional functionality needed by the Lustre file system.</para>
240         </listitem>
241         <listitem>
242           <para><emphasis role="bold">POSIX standard compliance:</emphasis> The full POSIX test
243             suite passes in an identical manner to a local ext4 file system, with limited exceptions
244             on Lustre clients. In a cluster, most operations are atomic so that clients never see
245             stale data or metadata. The Lustre software supports mmap() file I/O.</para>
246         </listitem>
247         <listitem>
248           <para><emphasis role="bold">High-performance heterogeneous networking:</emphasis> The
249             Lustre software supports a variety of high performance, low latency networks and permits
250             Remote Direct Memory Access (RDMA) for InfiniBand<superscript>*</superscript> (utilizing
251             OpenFabrics Enterprise Distribution (OFED<superscript>*</superscript>) and other
252             advanced networks for fast and efficient network transport. Multiple RDMA networks can
253             be bridged using Lustre routing for maximum performance. The Lustre software also
254             includes integrated network diagnostics.</para>
255         </listitem>
256         <listitem>
257           <para><emphasis role="bold">High-availability:</emphasis> The Lustre file system supports
258             active/active failover using shared storage partitions for OSS targets (OSTs). Lustre
259             software release 2.3 and earlier releases offer active/passive failover using a shared
260             storage partition for the MDS target (MDT).</para>
261           <para condition="l24">With Lustre software release 2.4 or later servers and clients it is
262             possible to configure active/active failover of multiple MDTs. This allows application
263             transparent recovery. The Lustre file system can work with a variety of high
264             availability (HA) managers to allow automated failover and has no single point of
265             failure (NSPF). Multiple mount protection (MMP) provides integrated protection from
266             errors in highly-available systems that would otherwise cause file system
267             corruption.</para>
268         </listitem>
269         <listitem>
270           <para><emphasis role="bold">Security:</emphasis> By default TCP connections are only
271             allowed from privileged ports. UNIX group membership is verified on the MDS.</para>
272         </listitem>
273         <listitem>
274           <para><emphasis role="bold">Access control list (ACL), extended attributes:</emphasis> the
275             Lustre security model follows that of a UNIX file system, enhanced with POSIX ACLs.
276             Noteworthy additional features include root squash.</para>
277         </listitem>
278         <listitem>
279           <para><emphasis role="bold">Interoperability:</emphasis> The Lustre file system runs on a
280             variety of CPU architectures and mixed-endian clusters and is interoperable between
281             successive major Lustre software releases.</para>
282         </listitem>
283         <listitem>
284           <para><emphasis role="bold">Object-based architecture:</emphasis> Clients are isolated
285             from the on-disk file structure enabling upgrading of the storage architecture without
286             affecting the client.</para>
287         </listitem>
288         <listitem>
289           <para><emphasis role="bold">Byte-granular file and fine-grained metadata
290               locking:</emphasis> Many clients can read and modify the same file or directory
291             concurrently. The Lustre distributed lock manager (LDLM) ensures that files are coherent
292             between all clients and servers in the file system. The MDT LDLM manages locks on inode
293             permissions and pathnames. Each OST has its own LDLM for locks on file stripes stored
294             thereon, which scales the locking performance as the file system grows.</para>
295         </listitem>
296         <listitem>
297           <para><emphasis role="bold">Quotas:</emphasis> User and group quotas are available for a
298             Lustre file system.</para>
299         </listitem>
300         <listitem>
301           <para><emphasis role="bold">Capacity growth:</emphasis> The size of a Lustre file system
302             and aggregate cluster bandwidth can be increased without interruption by adding a new
303             OSS with OSTs to the cluster.</para>
304         </listitem>
305         <listitem>
306           <para><emphasis role="bold">Controlled striping:</emphasis> The layout of files across
307             OSTs can be configured on a per file, per directory, or per file system basis. This
308             allows file I/O to be tuned to specific application requirements within a single file
309             system. The Lustre file system uses RAID-0 striping and balances space usage across
310             OSTs.</para>
311         </listitem>
312         <listitem>
313           <para><emphasis role="bold">Network data integrity protection:</emphasis> A checksum of
314             all data sent from the client to the OSS protects against corruption during data
315             transfer.</para>
316         </listitem>
317         <listitem>
318           <para><emphasis role="bold">MPI I/O:</emphasis> The Lustre architecture has a dedicated
319             MPI ADIO layer that optimizes parallel I/O to match the underlying file system
320             architecture.</para>
321         </listitem>
322         <listitem>
323           <para><emphasis role="bold">NFS and CIFS export:</emphasis> Lustre files can be
324             re-exported using NFS (via Linux knfsd) or CIFS (via Samba) enabling them to be shared
325             with non-Linux clients, such as Microsoft<superscript>*</superscript>
326               Windows<superscript>*</superscript> and Apple<superscript>*</superscript> Mac OS
327               X<superscript>*</superscript>.</para>
328         </listitem>
329         <listitem>
330           <para><emphasis role="bold">Disaster recovery tool:</emphasis> The Lustre file system
331             provides a distributed file system check (lfsck) that can restore consistency between
332             storage components in case of a major file system error. A Lustre file system can
333             operate even in the presence of file system inconsistencies, so lfsck is not required
334             before returning the file system to production.</para>
335         </listitem>
336         <listitem>
337           <para><emphasis role="bold">Performance monitoring:</emphasis> The Lustre file system
338             offers a variety of mechanisms to examine performance and tuning.</para>
339         </listitem>
340         <listitem>
341           <para><emphasis role="bold">Open source:</emphasis> The Lustre software is licensed under
342             the GPL 2.0 license for use with the Linux operating system.</para>
343         </listitem>
344       </itemizedlist>
345     </section>
346   </section>
347   <section xml:id="understandinglustre.components">
348     <title><indexterm>
349         <primary>Lustre</primary>
350         <secondary>components</secondary>
351       </indexterm>Lustre Components</title>
352     <para>An installation of the Lustre software includes a management server (MGS) and one or more
353       Lustre file systems interconnected with Lustre networking (LNET).</para>
354     <para>A basic configuration of Lustre file system components is shown in <xref
355         linkend="understandinglustre.fig.cluster"/>.</para>
356     <figure>
357       <title xml:id="understandinglustre.fig.cluster">Lustre file system components in a basic
358         cluster </title>
359       <mediaobject>
360         <imageobject>
361           <imagedata scalefit="1" width="100%" fileref="./figures/Basic_Cluster.png"/>
362         </imageobject>
363         <textobject>
364           <phrase> Lustre file system components in a basic cluster </phrase>
365         </textobject>
366       </mediaobject>
367     </figure>
368     <section remap="h3">
369       <title><indexterm>
370           <primary>Lustre</primary>
371           <secondary>MGS</secondary>
372         </indexterm>Management Server (MGS)</title>
373       <para>The MGS stores configuration information for all the Lustre file systems in a cluster
374         and provides this information to other Lustre components. Each Lustre target contacts the
375         MGS to provide information, and Lustre clients contact the MGS to retrieve
376         information.</para>
377       <para>It is preferable that the MGS have its own storage space so that it can be managed
378         independently. However, the MGS can be co-located and share storage space with an MDS as
379         shown in <xref linkend="understandinglustre.fig.cluster"/>.</para>
380     </section>
381     <section remap="h3">
382       <title>Lustre File System Components</title>
383       <para>Each Lustre file system consists of the following components:</para>
384       <itemizedlist>
385         <listitem>
386           <para><emphasis role="bold">Metadata Server (MDS)</emphasis> - The MDS makes metadata
387             stored in one or more MDTs available to Lustre clients. Each MDS manages the names and
388             directories in the Lustre file system(s) and provides network request handling for one
389             or more local MDTs.</para>
390         </listitem>
391         <listitem>
392           <para><emphasis role="bold">Metadata Target (MDT</emphasis> ) - For Lustre software
393             release 2.3 and earlier, each file system has one MDT. The MDT stores metadata (such as
394             filenames, directories, permissions and file layout) on storage attached to an MDS. Each
395             file system has one MDT. An MDT on a shared storage target can be available to multiple
396             MDSs, although only one can access it at a time. If an active MDS fails, a standby MDS
397             can serve the MDT and make it available to clients. This is referred to as MDS
398             failover.</para>
399           <para condition="l24">Since Lustre software release 2.4, multiple MDTs are supported. Each
400             file system has at least one MDT. An MDT on a shared storage target can be available via
401             multiple MDSs, although only one MDS can export the MDT to the clients at one time. Two
402             MDS machines share storage for two or more MDTs. After the failure of one MDS, the
403             remaining MDS begins serving the MDT(s) of the failed MDS.</para>
404         </listitem>
405         <listitem>
406           <para><emphasis role="bold">Object Storage Servers (OSS)</emphasis> : The OSS provides
407             file I/O service and network request handling for one or more local OSTs. Typically, an
408             OSS serves between two and eight OSTs, up to 16 TB each. A typical configuration is an
409             MDT on a dedicated node, two or more OSTs on each OSS node, and a client on each of a
410             large number of compute nodes.</para>
411         </listitem>
412         <listitem>
413           <para><emphasis role="bold">Object Storage Target (OST)</emphasis> : User file data is
414             stored in one or more objects, each object on a separate OST in a Lustre file system.
415             The number of objects per file is configurable by the user and can be tuned to optimize
416             performance for a given workload.</para>
417         </listitem>
418         <listitem>
419           <para><emphasis role="bold">Lustre clients</emphasis> : Lustre clients are computational,
420             visualization or desktop nodes that are running Lustre client software, allowing them to
421             mount the Lustre file system.</para>
422         </listitem>
423       </itemizedlist>
424       <para>The Lustre client software provides an interface between the Linux virtual file system
425         and the Lustre servers. The client software includes a management client (MGC), a metadata
426         client (MDC), and multiple object storage clients (OSCs), one corresponding to each OST in
427         the file system.</para>
428       <para>A logical object volume (LOV) aggregates the OSCs to provide transparent access across
429         all the OSTs. Thus, a client with the Lustre file system mounted sees a single, coherent,
430         synchronized namespace. Several clients can write to different parts of the same file
431         simultaneously, while, at the same time, other clients can read from the file.</para>
432       <para><xref linkend="understandinglustre.tab.storagerequire"/> provides the requirements for
433         attached storage for each Lustre file system component and describes desirable
434         characteristics of the hardware used.</para>
435       <table frame="all">
436         <title xml:id="understandinglustre.tab.storagerequire"><indexterm>
437             <primary>Lustre</primary>
438             <secondary>requirements</secondary>
439           </indexterm>Storage and hardware requirements for Lustre file system components</title>
440         <tgroup cols="3">
441           <colspec colname="c1" colwidth="1*"/>
442           <colspec colname="c2" colwidth="3*"/>
443           <colspec colname="c3" colwidth="3*"/>
444           <thead>
445             <row>
446               <entry>
447                 <para><emphasis role="bold"/></para>
448               </entry>
449               <entry>
450                 <para><emphasis role="bold">Required attached storage</emphasis></para>
451               </entry>
452               <entry>
453                 <para><emphasis role="bold">Desirable hardware characteristics</emphasis></para>
454               </entry>
455             </row>
456           </thead>
457           <tbody>
458             <row>
459               <entry>
460                 <para>
461                   <emphasis role="bold">MDSs</emphasis></para>
462               </entry>
463               <entry>
464                 <para> 1-2% of file system capacity</para>
465               </entry>
466               <entry>
467                 <para> Adequate CPU power, plenty of memory, fast disk storage.</para>
468               </entry>
469             </row>
470             <row>
471               <entry>
472                 <para>
473                   <emphasis role="bold">OSSs</emphasis></para>
474               </entry>
475               <entry>
476                 <para> 1-16 TB per OST, 1-8 OSTs per OSS</para>
477               </entry>
478               <entry>
479                 <para> Good bus bandwidth. Recommended that storage be balanced evenly across
480                   OSSs.</para>
481               </entry>
482             </row>
483             <row>
484               <entry>
485                 <para>
486                   <emphasis role="bold">Clients</emphasis></para>
487               </entry>
488               <entry>
489                 <para> None</para>
490               </entry>
491               <entry>
492                 <para> Low latency, high bandwidth network.</para>
493               </entry>
494             </row>
495           </tbody>
496         </tgroup>
497       </table>
498       <para>For additional hardware requirements and considerations, see <xref
499           linkend="settinguplustresystem"/>.</para>
500     </section>
501     <section remap="h3">
502       <title><indexterm>
503           <primary>Lustre</primary>
504           <secondary>LNET</secondary>
505         </indexterm>Lustre Networking (LNET)</title>
506       <para>Lustre Networking (LNET) is a custom networking API that provides the communication
507         infrastructure that handles metadata and file I/O data for the Lustre file system servers
508         and clients. For more information about LNET, see <xref
509           linkend="understandinglustrenetworking"/>.</para>
510     </section>
511     <section remap="h3">
512       <title><indexterm>
513           <primary>Lustre</primary>
514           <secondary>cluster</secondary>
515         </indexterm>Lustre Cluster</title>
516       <para>At scale, a Lustre file system cluster can include hundreds of OSSs and thousands of
517         clients (see <xref linkend="understandinglustre.fig.lustrescale"/>). More than one type of
518         network can be used in a Lustre cluster. Shared storage between OSSs enables failover
519         capability. For more details about OSS failover, see <xref linkend="understandingfailover"
520         />.</para>
521       <figure>
522         <title xml:id="understandinglustre.fig.lustrescale"><indexterm>
523             <primary>Lustre</primary>
524             <secondary>at scale</secondary>
525           </indexterm>Lustre cluster at scale</title>
526         <mediaobject>
527           <imageobject>
528             <imagedata scalefit="1" width="100%" fileref="./figures/Scaled_Cluster.png"/>
529           </imageobject>
530           <textobject>
531             <phrase> Lustre file system cluster at scale </phrase>
532           </textobject>
533         </mediaobject>
534       </figure>
535     </section>
536   </section>
537   <section xml:id="understandinglustre.storageio">
538     <title><indexterm>
539         <primary>Lustre</primary>
540         <secondary>storage</secondary>
541       </indexterm>
542       <indexterm>
543         <primary>Lustre</primary>
544         <secondary>I/O</secondary>
545       </indexterm> Lustre File System Storage and I/O</title>
546     <para>In Lustre software release 2.0, Lustre file identifiers (FIDs) were introduced to replace
547       UNIX inode numbers for identifying files or objects. A FID is a 128-bit identifier that
548       contains a unique 64-bit sequence number, a 32-bit object ID (OID), and a 32-bit version
549       number. The sequence number is unique across all Lustre targets in a file system (OSTs and
550       MDTs). This change enabled future support for multiple MDTs (introduced in Lustre software
551       release 2.3) and ZFS (introduced in Lustre software release 2.4).</para>
552     <para>Also introduced in release 2.0 is a feature call <emphasis role="italic"
553         >FID-in-dirent</emphasis> (also known as <emphasis role="italic">dirdata</emphasis>) in
554       which the FID is stored as part of the name of the file in the parent directory. This feature
555       significantly improves performance for <literal>ls</literal> command executions by reducing
556       disk I/O. The FID-in-dirent is generated at the time the file is created.</para>
557     <note>
558       <para>The FID-in-dirent feature is not compatible with the Lustre software release 1.8 format.
559         Therefore, when an upgrade from Lustre software release 1.8 to a Lustre software release 2.x
560         is performed, the FID-in-dirent feature is not automatically enabled. For upgrades from
561         Lustre software release 1.8 to Lustre software releases 2.0 through 2.3, FID-in-dirent can
562         be enabled manually but only takes effect for new files. </para>
563       <para>For more information about upgrading from Lustre software release 1.8 and enabling
564         FID-in-dirent for existing files, see <xref xmlns:xlink="http://www.w3.org/1999/xlink"
565           linkend="upgradinglustre"/>Chapter 16 “Upgrading a Lustre File System”.</para>
566     </note>
567     <para condition="l24">The LFSCK 1.5 file system administration tool released with Lustre
568       software release 2.4 provides functionality that enables FID-in-dirent for existing files. It
569       includes the following functionality:<itemizedlist>
570         <listitem>
571           <para>Generates IGIF mode FIDs for existing release 1.8 files.</para>
572         </listitem>
573         <listitem>
574           <para>Verifies the FID-in-dirent for each file to determine when it doesn’t exist or is
575             invalid and then regenerates the FID-in-dirent if needed.</para>
576         </listitem>
577         <listitem>
578           <para>Verifies the linkEA entry for each file to determine when it is missing or invalid
579             and then regenerates the linkEA if needed. The <emphasis role="italic">linkEA</emphasis>
580             consists of the file name plus its parent FID and is stored as an extended attribute in
581             the file itself. Thus, the linkEA can be used to parse out the full path name of a file
582             from root.</para>
583         </listitem>
584       </itemizedlist></para>
585     <para>Information about where file data is located on the OST(s) is stored as an extended
586       attribute called layout EA in an MDT object identified by the FID for the file (see <xref
587         xmlns:xlink="http://www.w3.org/1999/xlink" linkend="Fig1.3_LayoutEAonMDT"/>). If the file is
588       a data file (not a directory or symbol link), the MDT object points to 1-to-N OST object(s) on
589       the OST(s) that contain the file data. If the MDT file points to one object, all the file data
590       is stored in that object. If the MDT file points to more than one object, the file data is
591         <emphasis role="italic">striped</emphasis> across the objects using RAID 0, and each object
592       is stored on a different OST. (For more information about how striping is implemented in a
593       Lustre file system, see <xref linkend="dbdoclet.50438250_89922"/>.</para>
594     <figure xml:id="Fig1.3_LayoutEAonMDT">
595       <title>Layout EA on MDT pointing to file data on OSTs</title>
596       <mediaobject>
597         <imageobject>
598           <imagedata scalefit="1" width="80%" fileref="./figures/Metadata_File.png"/>
599         </imageobject>
600         <textobject>
601           <phrase> Layout EA on MDT pointing to file data on OSTs </phrase>
602         </textobject>
603       </mediaobject>
604     </figure>
605     <para>When a client wants to read from or write to a file, it first fetches the layout EA from
606       the MDT object for the file. The client then uses this information to perform I/O on the file,
607       directly interacting with the OSS nodes where the objects are stored.
608       <?oxy_custom_start type="oxy_content_highlight" color="255,255,0"?>This process is illustrated
609       in <xref xmlns:xlink="http://www.w3.org/1999/xlink" linkend="Fig1.4_ClientReqstgData"
610       /><?oxy_custom_end?>.</para>
611     <figure xml:id="Fig1.4_ClientReqstgData">
612       <title>Lustre client requesting file data</title>
613       <mediaobject>
614         <imageobject>
615           <imagedata scalefit="1" width="75%" fileref="./figures/File_Write.png"/>
616         </imageobject>
617         <textobject>
618           <phrase> Lustre client requesting file data </phrase>
619         </textobject>
620       </mediaobject>
621     </figure>
622     <para>The available bandwidth of a Lustre file system is determined as follows:</para>
623     <itemizedlist>
624       <listitem>
625         <para>The <emphasis>network bandwidth</emphasis> equals the aggregated bandwidth of the OSSs
626           to the targets.</para>
627       </listitem>
628       <listitem>
629         <para>The <emphasis>disk bandwidth</emphasis> equals the sum of the disk bandwidths of the
630           storage targets (OSTs) up to the limit of the network bandwidth.</para>
631       </listitem>
632       <listitem>
633         <para>The <emphasis>aggregate bandwidth</emphasis> equals the minimum of the disk bandwidth
634           and the network bandwidth.</para>
635       </listitem>
636       <listitem>
637         <para>The <emphasis>available file system space</emphasis> equals the sum of the available
638           space of all the OSTs.</para>
639       </listitem>
640     </itemizedlist>
641     <section xml:id="dbdoclet.50438250_89922">
642       <title>
643         <indexterm>
644           <primary>Lustre</primary>
645           <secondary>striping</secondary>
646         </indexterm>
647         <indexterm>
648           <primary>striping</primary>
649           <secondary>overview</secondary>
650         </indexterm> Lustre File System and Striping</title>
651       <para>One of the main factors leading to the high performance of Lustre file systems is the
652         ability to stripe data across multiple OSTs in a round-robin fashion. Users can optionally
653         configure for each file the number of stripes, stripe size, and OSTs that are used.</para>
654       <para>Striping can be used to improve performance when the aggregate bandwidth to a single
655         file exceeds the bandwidth of a single OST. The ability to stripe is also useful when a
656         single OST does not have enough free space to hold an entire file. For more information
657         about benefits and drawbacks of file striping, see <xref linkend="dbdoclet.50438209_48033"
658         />.</para>
659       <para>Striping allows segments or &apos;chunks&apos; of data in a file to be stored on
660         different OSTs, as shown in <xref linkend="understandinglustre.fig.filestripe"/>. In the
661         Lustre file system, a RAID 0 pattern is used in which data is &quot;striped&quot; across a
662         certain number of objects. The number of objects in a single file is called the
663           <literal>stripe_count</literal>.</para>
664       <para>Each object contains a chunk of data from the file. When the chunk of data being written
665         to a particular object exceeds the <literal>stripe_size</literal>, the next chunk of data in
666         the file is stored on the next object.</para>
667       <para>Default values for <literal>stripe_count</literal> and <literal>stripe_size</literal>
668         are set for the file system. The default value for <literal>stripe_count</literal> is 1
669         stripe for file and the default value for <literal>stripe_size</literal> is 1MB. The user
670         may change these values on a per directory or per file basis. For more details, see <xref
671           linkend="dbdoclet.50438209_78664"/>.</para>
672       <para><xref linkend="understandinglustre.fig.filestripe"/>, the <literal>stripe_size</literal>
673         for File C is larger than the <literal>stripe_size</literal> for File A, allowing more data
674         to be stored in a single stripe for File C. The <literal>stripe_count</literal> for File A
675         is 3, resulting in data striped across three objects, while the
676           <literal>stripe_count</literal> for File B and File C is 1.</para>
677       <para>No space is reserved on the OST for unwritten data. File A in <xref
678           linkend="understandinglustre.fig.filestripe"/>.</para>
679       <figure>
680         <title xml:id="understandinglustre.fig.filestripe">File striping on a Lustre file
681           system</title>
682         <mediaobject>
683           <imageobject>
684             <imagedata scalefit="1" width="100%" fileref="./figures/File_Striping.png"/>
685           </imageobject>
686           <textobject>
687             <phrase>File striping pattern across three OSTs for three different data files. The file
688               is sparse and missing chunk 6. </phrase>
689           </textobject>
690         </mediaobject>
691       </figure>
692       <para>The maximum file size is not limited by the size of a single target. In a Lustre file
693         system,   files can be striped across multiple objects (up to 2000), and each object can be
694         up to 16 TB in size with ldiskfs. This leads to a maximum file size of 31.25 PB. (Note that
695         a Lustre file system can support files up to 2^64 bytes depending on the backing storage
696         used by OSTs.)</para>
697       <note>
698         <para>Versions of the Lustre software prior to Release 2.2 limited the  maximum stripe count
699           for a single file to 160 OSTs.</para>
700       </note>
701       <para>Although a single file can only be striped over 2000 objects, Lustre file systems can
702         have thousands of OSTs. The I/O bandwidth to access a single file is the aggregated I/O
703         bandwidth to the objects in a file, which can be as much as a bandwidth of up to 2000
704         servers. On systems with more than 2000 OSTs, clients can do I/O using multiple files to
705         utilize the full file system bandwidth.</para>
706       <para>For more information about striping, see <xref linkend="managingstripingfreespace"
707         />.</para>
708     </section>
709   </section>
710 </chapter>