Whamcloud - gitweb
c1a0bcff73a96c8aa18790b75da1752c3f894c17
[doc/manual.git] / ConfiguringLustre.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- This document was created with Syntext Serna Free. --><chapter xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en-US" xml:id="configuringlustre">
3   <title xml:id="configuringlustre.title">Configuring Lustre</title>
4   <para>This chapter shows how to configure a simple Lustre system comprised of a combined MGS/MDT, an OST and a client. It includes:</para>
5   <itemizedlist>
6     <listitem>
7       <para><xref linkend="dbdoclet.50438267_50692"/>
8           </para>
9     </listitem>
10     <listitem>
11       <para><xref linkend="dbdoclet.50438267_76752"/>
12           </para>
13     </listitem>
14   </itemizedlist>
15   <section xml:id="dbdoclet.50438267_50692">
16       <title>
17           <indexterm><primary>Lustre</primary><secondary>configuring</secondary></indexterm>
18           Configuring a Simple Lustre File System</title>
19     <para>A Lustre system can be set up in a variety of configurations by using the administrative utilities provided with Lustre. The procedure below shows how to to configure a simple Lustre file system consisting of a combined MGS/MDS, one OSS with two OSTs, and a client. For an overview of the entire Lustre installation procedure, see <xref linkend="installoverview"/>.</para>
20     <para>This configuration procedure assumes you have completed the following:</para>
21     <itemizedlist>
22       <listitem>
23         <para><emphasis>
24             <emphasis role="bold">Set up and configured your hardware</emphasis>
25           </emphasis>. For more information about hardware requirements, see <xref linkend="settinguplustresystem"/>.</para>
26       </listitem>
27       <listitem>
28         <para><emphasis><emphasis role="bold">Downloaded and installed the Lustre software</emphasis>.</emphasis>  For more information about preparing for and installing the Lustre software, see <xref linkend="installinglustre"/>.</para>
29       </listitem>
30     </itemizedlist>
31     <para>The following optional steps should also be completed, if needed, before the Lustre software is configured:</para>
32     <itemizedlist>
33       <listitem>
34         <para><emphasis>Set up a hardware or software RAID on block devices to be used as OSTs or MDTs.</emphasis>  For information about setting up RAID, see the documentation for your RAID controller or <xref linkend="configuringstorage"/>.</para>
35       </listitem>
36       <listitem>
37         <para><emphasis>Set up network interface bonding on Ethernet interfaces.</emphasis>  For information about setting up network interface bonding, see <xref linkend="settingupbonding"/>.</para>
38       </listitem>
39       <listitem>
40         <para><emphasis>Set</emphasis> lnet <emphasis>module parameters to specify how Lustre Networking (LNET) is to be configured to work with Lustre and test the LNET configuration.</emphasis>  LNET will, by default, use the first TCP/IP interface it discovers on a system. If this network configuration is sufficient, you do not need to configure LNET. LNET configuration is required if you are using Infiniband or multiple Ethernet interfaces.</para>
41       </listitem>
42     </itemizedlist>
43     <para>For information about configuring LNET, see <xref linkend="configuringlnet"/>. For information about testing LNET, see <xref linkend="lnetselftest"/>.</para>
44     <itemizedlist>
45       <listitem>
46         <para><emphasis>Run the benchmark script <literal>sgpdd_survey</literal> to determine baseline performance of your hardware.</emphasis>  Benchmarking your hardware will simplify debugging performance issues that are unrelated to Lustre and ensure you are getting the best possible performance with your installation. For information about running sgpdd_survey, see <xref linkend="benchmarkingtests"/>.</para>
47       </listitem>
48     </itemizedlist>
49     <note>
50       <para>The <literal>sgpdd_survey</literal> script overwrites the device being tested so it must be run before the OSTs are configured.</para>
51     </note>
52     <para>To configure a simple Lustre file system, complete these steps:</para>
53     <orderedlist>
54       <listitem>
55         <para>Create a combined MGS/MDT file system on a block device. On the MDS node, run:</para>
56         <screen>mkfs.lustre --fsname=&lt;<emphasis>fsname</emphasis>&gt; --mgs --mdt &lt;<emphasis>block device name</emphasis>&gt;</screen>
57         <para>The default file system name (<literal>fsname</literal>) is <literal>lustre</literal>.</para>
58         <note>
59           <para>If you plan to generate multiple file systems, the MGS should be created separately on its own dedicated block device, by running:</para>
60           <screen>mkfs.lustre --fsname=&lt;<emphasis>fsname</emphasis>&gt; --mgs &lt;<emphasis>block device name</emphasis>&gt;</screen>
61         </note>
62       </listitem>
63       <listitem>
64         <para>Mount the combined MGS/MDT file system on the block device. On the MDS node, run:</para>
65         <screen>mount -t lustre &lt;<emphasis>block device name</emphasis>&gt; &lt;<emphasis>mount point</emphasis>&gt;</screen>
66         <note>
67           <para>If you have created and MGS and an MDT on separate block devices, mount them both.</para>
68         </note>
69       </listitem>
70       <listitem xml:id="dbdoclet.50438267_pgfId-1290915">
71         <para>Create the OST. On the OSS node, run:</para>
72         <screen>mkfs.lustre --ost --fsname=&lt;<emphasis>fsname</emphasis>&gt; --mgsnode=&lt;<emphasis>NID</emphasis>&gt; &lt;<emphasis>block device name</emphasis>&gt;</screen>
73         <para>When you create an OST, you are formatting a <literal>ldiskfs</literal> file system on a block storage device like you would with any local file system.</para>
74         <para>You can have as many OSTs per OSS as the hardware or drivers allow. For more information about storage and memory requirements for a Lustre file system, see <xref linkend="settinguplustresystem"/>.</para>
75         <para>You can only configure one OST per block device. You should create an OST that uses the raw block device and does not use partitioning.</para>
76         <para>If you are using block devices that are accessible from multiple OSS nodes, ensure that you mount the OSTs from only one OSS node at at time. It is strongly recommended that multiple-mount protection be enabled for such devices to prevent serious data corruption. For more information about multiple-mount protection, see <xref linkend="managingfailover"/>.</para>
77         <note>
78           <para>Lustre currently supports block devices up to 16 TB on OEL 5/RHEL 5 (up to 8 TB on other distributions). If the device size is only slightly larger that 16 TB, it is recommended that you limit the file system size to 16 TB at format time. If the size is significantly larger than 16 TB, you should reconfigure the storage into devices smaller than 16 TB. We recommend that you not place partitions on top of RAID 5/6 block devices due to negative impacts on performance.</para>
79         </note>
80       </listitem>
81       <listitem xml:id="dbdoclet.50438267_pgfId-1293955">
82         <para>Mount the OST. On the OSS node where the OST was created, run:</para>
83         <screen>mount -t lustre <emphasis>&lt;block device name&gt; &lt;mount point&gt;</emphasis></screen>
84         <note>
85           <para>
86               To create additional OSTs, repeat <xref linkend="dbdoclet.50438267_pgfId-1290915"/>Step 3 and <xref linkend="dbdoclet.50438267_pgfId-1293955"/>Step 4.</para>
87         </note>
88       </listitem>
89       <listitem xml:id="dbdoclet.50438267_pgfId-1290934">
90         <para>Mount the Lustre file system on the client. On the client node, run:</para>
91         <screen>mount -t lustre &lt;<emphasis>MGS node</emphasis>&gt;:/&lt;<emphasis>fsname</emphasis>&gt; &lt;<emphasis>mount point</emphasis>&gt; 
92 </screen>
93         <note>
94           <para>To create additional clients, repeat <xref linkend="dbdoclet.50438267_pgfId-1290934"/>Step 5.</para>
95         </note>
96       </listitem>
97       <listitem>
98         <para><note>
99             <para>If you have a problem mounting the file system, check the syslogs on the client and all the servers for errors and also check the network settings. A common issue with newly-installed systems is that hosts.deny or firewall rules may prevent connections on port 988.</para>
100           </note><emphasis role="bold">Verify that the file system started and is working correctly. Do this by running the <literal>lfs</literal><literal> df</literal>, <literal>dd</literal> and <literal>ls</literal> commands on the client node.</emphasis></para>
101       </listitem>
102       <listitem>
103         <para><emphasis role="italic">(Optional)</emphasis> Run benchmarking tools to validate the performance of hardware and software layers in the cluster. Available tools include:</para>
104         <itemizedlist>
105           <listitem>
106             <para><literal>obdfilter_survey</literal>  - Characterizes the storage performance of a Lustre file system. For details, see <xref linkend="dbdoclet.50438212_26516"/>.</para>
107           </listitem>
108           <listitem>
109             <para><literal>ost_survey</literal>  - Performs I/O against OSTs to detect anomalies between otherwise identical disk subsystems. For details, see <xref linkend="dbdoclet.50438212_85136"/>.</para>
110           </listitem>
111         </itemizedlist>
112       </listitem>
113     </orderedlist>
114     <section remap="h3">
115         <title>
116             <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>simple example</tertiary></indexterm>
117             Simple Lustre Configuration Example</title>
118       <para>To see the steps in a simple Lustre configuration, follow this example in which a combined MGS/MDT and two OSTs are created. Three block devices are used, one for the combined MGS/MDS node and one for each OSS node. Common parameters used in the example are listed below, along with individual node parameters.</para>
119       <informaltable frame="all">
120         <tgroup cols="4">
121           <colspec colname="c1" colwidth="2*"/>
122           <colspec colname="c2" colwidth="25*"/>
123           <colspec colname="c3" colwidth="25*"/>
124           <colspec colname="c4" colwidth="25*"/>
125           <thead>
126             <row>
127               <entry nameend="c2" namest="c1">
128                 <para><emphasis role="bold">Common Parameters</emphasis></para>
129               </entry>
130               <entry>
131                 <para><emphasis role="bold">Value</emphasis></para>
132               </entry>
133               <entry>
134                 <para><emphasis role="bold">Description</emphasis></para>
135               </entry>
136             </row>
137           </thead>
138           <tbody>
139             <row>
140               <entry>
141                 <para> &#160;</para>
142               </entry>
143               <entry>
144                 <para> <emphasis role="bold">MGS node</emphasis></para>
145               </entry>
146               <entry>
147                 <para> <literal>10.2.0.1@tcp0</literal></para>
148               </entry>
149               <entry>
150                 <para>Node for the combined MGS/MDS</para>
151               </entry>
152             </row>
153             <row>
154               <entry>
155                 <para> &#160;</para>
156               </entry>
157               <entry>
158                 <para> <emphasis role="bold">file system</emphasis></para>
159               </entry>
160               <entry>
161                 <para><literal> temp</literal></para>
162               </entry>
163               <entry>
164                 <para>Name of the Lustre file system</para>
165               </entry>
166             </row>
167             <row>
168               <entry>
169                 <para> &#160;</para>
170               </entry>
171               <entry>
172                 <para> <emphasis role="bold">network type</emphasis></para>
173               </entry>
174               <entry>
175                 <para> <literal>TCP/IP</literal></para>
176               </entry>
177               <entry>
178                 <para>Network type used for Lustre file system temp</para>
179               </entry>
180             </row>
181           </tbody>
182         </tgroup>
183       </informaltable>
184       <informaltable frame="all">
185         <tgroup cols="4">
186           <colspec colname="c1" colwidth="25*"/>
187           <colspec colname="c2" colwidth="25*"/>
188           <colspec colname="c3" colwidth="25*"/>
189           <colspec colname="c4" colwidth="25*"/>
190           <thead>
191             <row>
192               <entry nameend="c2" namest="c1">
193                 <para><emphasis role="bold">Node Parameters</emphasis></para>
194               </entry>
195               <entry>
196                 <para><emphasis role="bold">Value</emphasis></para>
197               </entry>
198               <entry>
199                 <para><emphasis role="bold">Description</emphasis></para>
200               </entry>
201             </row>
202           </thead>
203           <tbody>
204             <row>
205               <entry nameend="c4" namest="c1">
206                 <para> MGS/MDS node</para>
207               </entry>
208             </row>
209             <row>
210               <entry>
211                 <para> &#160;</para>
212               </entry>
213               <entry>
214                 <para> <emphasis role="bold">MGS/MDS node</emphasis></para>
215               </entry>
216               <entry>
217                 <para> <literal>mdt1</literal></para>
218               </entry>
219               <entry>
220                 <para>MDS in Lustre file system temp</para>
221               </entry>
222             </row>
223             <row>
224               <entry>
225                 <para> &#160;</para>
226               </entry>
227               <entry>
228                 <para> <emphasis role="bold">block device</emphasis></para>
229               </entry>
230               <entry>
231                 <para> <literal>/dev/sdb</literal></para>
232               </entry>
233               <entry>
234                 <para>Block device for the combined MGS/MDS node</para>
235               </entry>
236             </row>
237             <row>
238               <entry>
239                 <para> &#160;</para>
240               </entry>
241               <entry>
242                 <para> <emphasis role="bold">mount point</emphasis></para>
243               </entry>
244               <entry>
245                 <para> <literal>/mnt/mdt</literal></para>
246               </entry>
247               <entry>
248                 <para>Mount point for the <literal>mdt1</literal> block device (<literal>/dev/sdb</literal>) on the MGS/MDS node</para>
249               </entry>
250             </row>
251             <row>
252               <entry nameend="c4" namest="c1">
253                 <para> First OSS node</para>
254               </entry>
255             </row>
256             <row>
257               <entry>
258                 <para> &#160;</para>
259               </entry>
260               <entry>
261                 <para> <emphasis role="bold">OSS node</emphasis></para>
262               </entry>
263               <entry>
264                 <para><literal> oss1</literal></para>
265               </entry>
266               <entry>
267                 <para>First OSS node in Lustre file system temp</para>
268               </entry>
269             </row>
270             <row>
271               <entry>
272                 <para> &#160;</para>
273               </entry>
274               <entry>
275                 <para> <emphasis role="bold">OST</emphasis></para>
276               </entry>
277               <entry>
278                 <para><literal> ost1</literal></para>
279               </entry>
280               <entry>
281                 <para>First OST in Lustre file system temp</para>
282               </entry>
283             </row>
284             <row>
285               <entry>
286                 <para> &#160;</para>
287               </entry>
288               <entry>
289                 <para> <emphasis role="bold">block device</emphasis></para>
290               </entry>
291               <entry>
292                 <para> <literal>/dev/sdc</literal></para>
293               </entry>
294               <entry>
295                 <para>Block device for the first OSS node (<literal>oss1</literal>)</para>
296               </entry>
297             </row>
298             <row>
299               <entry>
300                 <para> &#160;</para>
301               </entry>
302               <entry>
303                 <para> <emphasis role="bold">mount point</emphasis></para>
304               </entry>
305               <entry>
306                 <para> <literal>/mnt/ost1</literal></para>
307               </entry>
308               <entry>
309                 <para> Mount point for the <literal>ost1</literal> block device (<literal>/dev/sdc</literal>) on the <literal>oss1</literal> node</para>
310               </entry>
311             </row>
312             <row>
313               <entry nameend="c4" namest="c1">
314                 <para> Second OSS node</para>
315               </entry>
316             </row>
317             <row>
318               <entry>
319                 <para> </para>
320               </entry>
321               <entry>
322                 <para> <emphasis role="bold">OSS node</emphasis></para>
323               </entry>
324               <entry>
325                 <para><literal>oss2</literal></para>
326               </entry>
327               <entry>
328                 <para>Second OSS node in Lustre file system temp</para>
329               </entry>
330             </row>
331             <row>
332               <entry>
333                 <para> </para>
334               </entry>
335               <entry>
336                 <para> <emphasis role="bold">OST</emphasis></para>
337               </entry>
338               <entry>
339                 <para> <literal>ost2</literal></para>
340               </entry>
341               <entry>
342                 <para>Second OST in Lustre file system temp</para>
343               </entry>
344             </row>
345             <row>
346               <entry/>
347               <entry>
348                 <para> <emphasis role="bold">block device</emphasis></para>
349               </entry>
350               <entry>
351                 <para><literal>/dev/sdd</literal></para>
352               </entry>
353               <entry>
354                 <para>Block device for the second OSS node (oss2)</para>
355               </entry>
356             </row>
357             <row>
358               <entry>
359                 <para> </para>
360               </entry>
361               <entry>
362                 <para> <emphasis role="bold">mount point</emphasis></para>
363               </entry>
364               <entry>
365                 <para><literal>/mnt/ost2</literal></para>
366               </entry>
367               <entry>
368                 <para> Mount point for the <literal>ost2</literal> block device (<literal>/dev/sdd</literal>) on the <literal>oss2</literal> node</para>
369               </entry>
370             </row>
371             <row>
372               <entry nameend="c4" namest="c1">
373                 <para> Client node</para>
374               </entry>
375             </row>
376             <row>
377               <entry>
378                 <para> </para>
379               </entry>
380               <entry>
381                 <para> <emphasis role="bold">client node</emphasis></para>
382               </entry>
383               <entry>
384                 <para> <literal>client1</literal></para>
385               </entry>
386               <entry>
387                 <para>Client in Lustre file system temp</para>
388               </entry>
389             </row>
390             <row>
391               <entry>
392                 <para> </para>
393               </entry>
394               <entry>
395                 <para> <emphasis role="bold">mount point</emphasis></para>
396               </entry>
397               <entry>
398                 <para> <literal>/lustre</literal></para>
399               </entry>
400               <entry>
401                 <para>Mount point for Lustre file system temp on the <literal>client1</literal> node</para>
402               </entry>
403             </row>
404           </tbody>
405         </tgroup>
406       </informaltable>
407       <note>
408         <para>We recommend that you use &apos;dotted-quad&apos; notation for IP addresses rather than host names to make it easier to read debug logs and debug configurations with multiple interfaces.</para>
409       </note>
410       <para>For this example, complete the steps below:</para>
411       <orderedlist>
412         <listitem>
413           <para>Create a combined MGS/MDT file system on the block device. On the MDS node, run:</para>
414           <screen>[root@mds /]# mkfs.lustre --fsname=temp --mgs --mdt /dev/sdb</screen>
415           <para>This command generates this output:</para>
416           <screen>    Permanent disk data:
417 Target:            temp-MDTffff
418 Index:             unassigned
419 Lustre FS: temp
420 Mount type:        ldiskfs
421 Flags:             0x75
422    (MDT MGS needs_index first_time update )
423 Persistent mount opts: errors=remount-ro,iopen_nopriv,user_xattr
424 Parameters: mdt.group_upcall=/usr/sbin/l_getgroups
425  
426 checking for existing Lustre data: not found
427 device size = 16MB
428 2 6 18
429 formatting backing filesystem ldiskfs on /dev/sdb
430    target name             temp-MDTffff
431    4k blocks               0
432    options                 -i 4096 -I 512 -q -O dir_index,uninit_groups -F
433 mkfs_cmd = mkfs.ext2 -j -b 4096 -L temp-MDTffff  -i 4096 -I 512 -q -O 
434 dir_index,uninit_groups -F /dev/sdb
435 Writing CONFIGS/mountdata </screen>
436         </listitem>
437         <listitem>
438           <para>Mount the combined MGS/MDT file system on the block device. On the MDS node, run:</para>
439           <screen>[root@mds /]# mount -t lustre /dev/sdb /mnt/mdt</screen>
440           <para>This command generates this output:</para>
441           <screen>Lustre: temp-MDT0000: new disk, initializing 
442 Lustre: 3009:0:(lproc_mds.c:262:lprocfs_wr_group_upcall()) temp-MDT0000: gr\
443 oup upcall set to /usr/sbin/l_getgroups
444 Lustre: temp-MDT0000.mdt: set parameter group_upcall=/usr/sbin/l_getgroups
445 Lustre: Server temp-MDT0000 on device /dev/sdb has started </screen>
446         </listitem>
447         <listitem xml:id="dbdoclet.50438267_pgfId-1291170">
448           <para>Create and mount <literal>ost1</literal>.</para>
449           <para>In this example, the OSTs (<literal>ost1</literal> and <literal>ost2</literal>) are being created on different OSSs (<literal>oss1</literal> and <literal>oss2</literal> respectively).</para>
450           <orderedlist>
451             <listitem>
452               <para>Create <literal>ost1</literal>. On <literal>oss1</literal> node, run:</para>
453               <screen>[root@oss1 /]# mkfs.lustre --ost --fsname=temp --mgsnode=10.2.0.1@tcp0 /dev/sdc</screen>
454               <para>The command generates this output:</para>
455               <screen>    Permanent disk data:
456 Target:            temp-OSTffff
457 Index:             unassigned
458 Lustre FS: temp
459 Mount type:        ldiskfs
460 Flags:             0x72
461 (OST needs_index first_time update)
462 Persistent mount opts: errors=remount-ro,extents,mballoc
463 Parameters: mgsnode=10.2.0.1@tcp
464  
465 checking for existing Lustre data: not found
466 device size = 16MB
467 2 6 18
468 formatting backing filesystem ldiskfs on /dev/sdc
469    target name             temp-OSTffff
470    4k blocks               0
471    options                 -I 256 -q -O dir_index,uninit_groups -F
472 mkfs_cmd = mkfs.ext2 -j -b 4096 -L temp-OSTffff  -I 256 -q -O
473 dir_index,uninit_groups -F /dev/sdc
474 Writing CONFIGS/mountdata </screen>
475             </listitem>
476             <listitem>
477               <para>Mount ost1 on the OSS on which it was created. On <literal>oss1</literal> node, run:</para>
478               <screen>root@oss1 /] mount -t lustre /dev/sdc /mnt/ost1 </screen>
479               <para>The command generates this output:</para>
480               <screen>LDISKFS-fs: file extents enabled 
481 LDISKFS-fs: mballoc enabled
482 Lustre: temp-OST0000: new disk, initializing
483 Lustre: Server temp-OST0000 on device /dev/sdb has started</screen>
484               <para>Shortly afterwards, this output appears:</para>
485               <screen>Lustre: temp-OST0000: received MDS connection from 10.2.0.1@tcp0
486 Lustre: MDS temp-MDT0000: temp-OST0000_UUID now active, resetting orphans </screen>
487             </listitem>
488           </orderedlist>
489         </listitem>
490         <listitem>
491           <para>Create and mount <literal>ost2</literal>.</para>
492           <orderedlist>
493             <listitem>
494               <para>Create ost2. On <literal>oss2</literal> node, run:</para>
495               <screen>[root@oss2 /]# mkfs.lustre --ost --fsname=temp --mgsnode=10.2.0.1@tcp0 /dev\
496 /sdd</screen>
497               <para>The command generates this output:</para>
498               <screen>    Permanent disk data:
499 Target:            temp-OSTffff
500 Index:             unassigned
501 Lustre FS: temp
502 Mount type:        ldiskfs
503 Flags:             0x72
504 (OST needs_index first_time update)
505 Persistent mount opts: errors=remount-ro,extents,mballoc
506 Parameters: mgsnode=10.2.0.1@tcp
507  
508 checking for existing Lustre data: not found
509 device size = 16MB
510 2 6 18
511 formatting backing filesystem ldiskfs on /dev/sdd
512    target name             temp-OSTffff
513    4k blocks               0
514    options                 -I 256 -q -O dir_index,uninit_groups -F
515 mkfs_cmd = mkfs.ext2 -j -b 4096 -L temp-OSTffff  -I 256 -q -O
516 dir_index,uninit_groups -F /dev/sdc
517 Writing CONFIGS/mountdata </screen>
518             </listitem>
519             <listitem>
520               <para>Mount ost2 on the OSS on which it was created. On <literal>oss2</literal> node, run:</para>
521               <screen>root@oss2 /] mount -t lustre /dev/sdd /mnt/ost2 </screen>
522               <para>The command generates this output:</para>
523               <screen>LDISKFS-fs: file extents enabled 
524 LDISKFS-fs: mballoc enabled
525 Lustre: temp-OST0000: new disk, initializing
526 Lustre: Server temp-OST0000 on device /dev/sdb has started</screen>
527               <para>Shortly afterwards, this output appears:</para>
528               <screen>Lustre: temp-OST0000: received MDS connection from 10.2.0.1@tcp0
529 Lustre: MDS temp-MDT0000: temp-OST0000_UUID now active, resetting orphans </screen>
530             </listitem>
531           </orderedlist>
532         </listitem>
533         <listitem>
534           <para>Mount the Lustre file system on the client. On the client node, run:</para>
535           <screen>root@client1 /] mount -t lustre 10.2.0.1@tcp0:/temp /lustre </screen>
536           <para>This command generates this output:</para>
537           <screen>Lustre: Client temp-client has started</screen>
538         </listitem>
539         <listitem>
540           <para>Verify that the file system started and is working by running the <literal>df</literal>, <literal>dd</literal> and <literal>ls</literal> commands on the client node.</para>
541           <orderedlist>
542             <listitem>
543               <para>Run the <literal>lfs df -h</literal> command:</para>
544               <screen>[root@client1 /] lfs df -h </screen>
545               <para>The <literal>lfs df -h</literal> command lists space usage per OST and the MDT in human-readable format. This command generates output similar to this:</para>
546               <screen>UUID                        bytes           Used            Available      \
547  Use%    Mounted on
548 temp-MDT0000_UUID  8.0G            400.0M          7.6G            0%      \
549 /lustre[MDT:0]
550 temp-OST0000_UUID  800.0G          400.0M          799.6G          0%      \
551 /lustre[OST:0]
552 temp-OST0001_UUID  800.0G          400.0M          799.6G          0%      \
553 /lustre[OST:1]
554 filesystem summary:        1.6T            800.0M          1.6T            \
555 0%      /lustre</screen>
556             </listitem>
557             <listitem>
558               <para>Run the <literal>lfs df -ih</literal> command.</para>
559               <screen>[root@client1 /] lfs df -ih</screen>
560               <para>The <literal>lfs df -ih</literal> command lists inode usage per OST and the MDT. This command generates output similar to this:</para>
561               <screen>UUID                        Inodes       IUsed      IFree   IUse%   Mounted\
562  on
563 temp-MDT0000_UUID  2.5M         32         2.5M    0%      /lustre[MDT:0]
564 temp-OST0000_UUID  5.5M         54         5.5M    0%      /lustre[OST:0]
565 temp-OST0001_UUID  5.5M         54         5.5M    0%      /lustre[OST:1]
566 filesystem summary:        2.5M         32         2.5M    0%      /lustre</screen>
567             </listitem>
568             <listitem>
569               <para>Run the <literal>dd</literal> command:</para>
570               <screen>[root@client1 /] cd /lustre
571 [root@client1 /lustre] dd if=/dev/zero of=/lustre/zero.dat bs=4M count=2</screen>
572               <para>The <literal>dd</literal> command verifies write functionality by creating a file containing all zeros (<literal>0</literal>s). In this command, an 8 MB file is created. This command generates output similar to this:</para>
573               <screen>2+0 records in
574 2+0 records out
575 8388608 bytes (8.4 MB) copied, 0.159628 seconds, 52.6 MB/s</screen>
576             </listitem>
577             <listitem>
578               <para>Run the <literal>ls</literal> command:</para>
579               <screen>[root@client1 /lustre] ls -lsah</screen>
580               <para>The <literal>ls -lsah</literal> command lists files and directories in the current working directory. This command generates output similar to this:</para>
581               <screen>total 8.0M
582 4.0K drwxr-xr-x  2 root root 4.0K Oct 16 15:27 .
583 8.0K drwxr-xr-x 25 root root 4.0K Oct 16 15:27 ..
584 8.0M -rw-r--r--  1 root root 8.0M Oct 16 15:27 zero.dat 
585  
586 </screen>
587             </listitem>
588           </orderedlist>
589         </listitem>
590       </orderedlist>
591       <para>Once the Lustre file system is configured, it is ready for use.</para>
592     </section>
593   </section>
594   <section xml:id="dbdoclet.50438267_76752">
595       <title>
596           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>additional options</tertiary></indexterm>
597           Additional Configuration Options</title>
598     <para>This section describes how to scale the Lustre file system or make configuration changes using the Lustre configuration utilities.</para>
599     <section remap="h3">
600         <title>
601           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>for scale</tertiary></indexterm>
602             Scaling the Lustre File System</title>
603       <para>A Lustre file system can be scaled by adding OSTs or clients. For instructions on creating additional OSTs repeat Step <xref linkend="dbdoclet.50438267_pgfId-1291170"/> and Step <xref linkend="dbdoclet.50438267_pgfId-1293955"/> above. For mounting additional clients, repeat Step <xref linkend="dbdoclet.50438267_pgfId-1290934"/> for each client.</para>
604     </section>
605     <section remap="h3">
606         <title>
607           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>striping</tertiary></indexterm>
608             Changing Striping Defaults</title>
609       <para>The default settings for the file layout stripe pattern are shown in <xref linkend="configuringlustre.tab.stripe"/>.</para>
610       <table frame="none" xml:id="configuringlustre.tab.stripe">
611         <title>Default stripe pattern</title>
612         <tgroup cols="3">
613           <colspec colname="c1" colwidth="3*"/>
614           <colspec colname="c2" colwidth="13*"/>
615           <colspec colname="c3" colwidth="13*"/>
616           <tbody>
617             <row>
618               <entry>
619                 <para><emphasis role="bold">File Layout Parameter</emphasis></para>
620               </entry>
621               <entry>
622                 <para><emphasis role="bold">Default</emphasis></para>
623               </entry>
624               <entry>
625                 <para><emphasis role="bold">Description</emphasis></para>
626               </entry>
627             </row>
628             <row>
629               <entry>
630                 <para> <literal>stripe_size</literal></para>
631               </entry>
632               <entry>
633                 <para> 1 MB</para>
634               </entry>
635               <entry>
636                 <para> Amount of data to write to one OST before moving to the next OST.</para>
637               </entry>
638             </row>
639             <row>
640               <entry>
641                 <para> <literal>stripe_count</literal></para>
642               </entry>
643               <entry>
644                 <para> 1</para>
645               </entry>
646               <entry>
647                 <para> The number of OSTs to use for a single file.</para>
648               </entry>
649             </row>
650             <row>
651               <entry>
652                 <para> <literal>start_ost</literal></para>
653               </entry>
654               <entry>
655                 <para> -1</para>
656               </entry>
657               <entry>
658                 <para> The first OST where objects are created for each file. The default -1 allows the MDS to choose the starting index based on available space and load balancing. <emphasis>It&apos;s strongly recommended not to change the default for this parameter to a value other than -1.</emphasis></para>
659               </entry>
660             </row>
661           </tbody>
662         </tgroup>
663       </table>
664       <para>Use the <literal>lfs setstripe</literal> command described in <xref linkend="managingstripingfreespace"/> to change the file layout configuration.</para>
665     </section>
666     <section remap="h3">
667         <title>
668           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>utilities</tertiary></indexterm>
669             Using the Lustre Configuration Utilities</title>
670       <para>If additional configuration is necessary, several configuration utilities are available:</para>
671       <itemizedlist>
672         <listitem>
673           <para><literal>mkfs.lustre</literal>  - Use to format a disk for a Lustre service.</para>
674         </listitem>
675         <listitem>
676           <para><literal>tunefs.lustre</literal>  - Use to modify configuration information on a Lustre target disk.</para>
677         </listitem>
678         <listitem>
679           <para><literal>lctl</literal>  - Use to directly control Lustre via an ioctl interface, allowing various configuration, maintenance and debugging features to be accessed.</para>
680         </listitem>
681         <listitem>
682           <para><literal>mount.lustre</literal>  - Use to start a Lustre client or target service.</para>
683         </listitem>
684       </itemizedlist>
685       <para>For examples using these utilities, see the topic <xref linkend="systemconfigurationutilities"/></para>
686       <para>The <literal>lfs</literal> utility is usful for configuring and querying a variety of options related to files. For more information, see <xref linkend="userutilities"/>.</para>
687       <note>
688         <para>Some sample scripts are included in the directory where Lustre is installed. If you have installed the Lustre source code, the scripts are located in the <literal>lustre/tests</literal> sub-directory. These scripts enable quick setup of some simple standard Lustre configurations.</para>
689       </note>
690     </section>
691   </section>
692 </chapter>