Whamcloud - gitweb
Merge "LUDOC-8 Make Jenkins build manual using a Makefile."
[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 --index=0 &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 --fsname=&lt;<emphasis>fsname</emphasis>&gt; --mgsnode=&lt;<emphasis>NID</emphasis>&gt; --ost --index=&lt;<emphasis>OST index</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>You should specify the OST index number at format time in order to simplify the translating the OST number in error messages or file striping to the OSS node and block device later on.</para>
77         <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>
78         <note>
79           <para>Lustre currently supports block devices up to 128 TB on RHEL 5/6 (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.  We recommend that you not place DOS partitions on top of RAID 5/6 block devices due to negative impacts on performance, but instead format the whole disk for the filesystem.</para>
80         </note>
81       </listitem>
82       <listitem xml:id="dbdoclet.50438267_pgfId-1293955">
83         <para>Mount the OST. On the OSS node where the OST was created, run:</para>
84         <screen>mount -t lustre <emphasis>&lt;block device name&gt; &lt;mount point&gt;</emphasis></screen>
85         <note>
86           <para>
87               To create additional OSTs, repeat <xref linkend="dbdoclet.50438267_pgfId-1290915"/>Step 3 and <xref linkend="dbdoclet.50438267_pgfId-1293955"/>Step 4, specifying the next higher OST index number.</para>
88         </note>
89       </listitem>
90       <listitem xml:id="dbdoclet.50438267_pgfId-1290934">
91         <para>Mount the Lustre file system on the client. On the client node, run:</para>
92         <screen>mount -t lustre &lt;<emphasis>MGS node</emphasis>&gt;:/&lt;<emphasis>fsname</emphasis>&gt; &lt;<emphasis>mount point</emphasis>&gt; 
93 </screen>
94         <note>
95           <para>To create additional clients, repeat <xref linkend="dbdoclet.50438267_pgfId-1290934"/>Step 5.</para>
96         </note>
97       </listitem>
98       <listitem>
99         <para><note>
100             <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>
101           </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>
102       </listitem>
103       <listitem>
104         <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>
105         <itemizedlist>
106           <listitem>
107             <para><literal>obdfilter_survey</literal>  - Characterizes the storage performance of a Lustre file system. For details, see <xref linkend="dbdoclet.50438212_26516"/>.</para>
108           </listitem>
109           <listitem>
110             <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>
111           </listitem>
112         </itemizedlist>
113       </listitem>
114     </orderedlist>
115     <section remap="h3">
116         <title>
117             <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>simple example</tertiary></indexterm>
118             Simple Lustre Configuration Example</title>
119       <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>
120       <informaltable frame="all">
121         <tgroup cols="4">
122           <colspec colname="c1" colwidth="2*"/>
123           <colspec colname="c2" colwidth="25*"/>
124           <colspec colname="c3" colwidth="25*"/>
125           <colspec colname="c4" colwidth="25*"/>
126           <thead>
127             <row>
128               <entry nameend="c2" namest="c1">
129                 <para><emphasis role="bold">Common Parameters</emphasis></para>
130               </entry>
131               <entry>
132                 <para><emphasis role="bold">Value</emphasis></para>
133               </entry>
134               <entry>
135                 <para><emphasis role="bold">Description</emphasis></para>
136               </entry>
137             </row>
138           </thead>
139           <tbody>
140             <row>
141               <entry>
142                 <para> &#160;</para>
143               </entry>
144               <entry>
145                 <para> <emphasis role="bold">MGS node</emphasis></para>
146               </entry>
147               <entry>
148                 <para> <literal>10.2.0.1@tcp0</literal></para>
149               </entry>
150               <entry>
151                 <para>Node for the combined MGS/MDS</para>
152               </entry>
153             </row>
154             <row>
155               <entry>
156                 <para> &#160;</para>
157               </entry>
158               <entry>
159                 <para> <emphasis role="bold">file system</emphasis></para>
160               </entry>
161               <entry>
162                 <para><literal> temp</literal></para>
163               </entry>
164               <entry>
165                 <para>Name of the Lustre file system</para>
166               </entry>
167             </row>
168             <row>
169               <entry>
170                 <para> &#160;</para>
171               </entry>
172               <entry>
173                 <para> <emphasis role="bold">network type</emphasis></para>
174               </entry>
175               <entry>
176                 <para> <literal>TCP/IP</literal></para>
177               </entry>
178               <entry>
179                 <para>Network type used for Lustre file system temp</para>
180               </entry>
181             </row>
182           </tbody>
183         </tgroup>
184       </informaltable>
185       <informaltable frame="all">
186         <tgroup cols="4">
187           <colspec colname="c1" colwidth="25*"/>
188           <colspec colname="c2" colwidth="25*"/>
189           <colspec colname="c3" colwidth="25*"/>
190           <colspec colname="c4" colwidth="25*"/>
191           <thead>
192             <row>
193               <entry nameend="c2" namest="c1">
194                 <para><emphasis role="bold">Node Parameters</emphasis></para>
195               </entry>
196               <entry>
197                 <para><emphasis role="bold">Value</emphasis></para>
198               </entry>
199               <entry>
200                 <para><emphasis role="bold">Description</emphasis></para>
201               </entry>
202             </row>
203           </thead>
204           <tbody>
205             <row>
206               <entry nameend="c4" namest="c1">
207                 <para> MGS/MDS node</para>
208               </entry>
209             </row>
210             <row>
211               <entry>
212                 <para> &#160;</para>
213               </entry>
214               <entry>
215                 <para> <emphasis role="bold">MGS/MDS node</emphasis></para>
216               </entry>
217               <entry>
218                 <para> <literal>mdt0</literal></para>
219               </entry>
220               <entry>
221                 <para>MDS in Lustre file system temp</para>
222               </entry>
223             </row>
224             <row>
225               <entry>
226                 <para> &#160;</para>
227               </entry>
228               <entry>
229                 <para> <emphasis role="bold">block device</emphasis></para>
230               </entry>
231               <entry>
232                 <para> <literal>/dev/sdb</literal></para>
233               </entry>
234               <entry>
235                 <para>Block device for the combined MGS/MDS node</para>
236               </entry>
237             </row>
238             <row>
239               <entry>
240                 <para> &#160;</para>
241               </entry>
242               <entry>
243                 <para> <emphasis role="bold">mount point</emphasis></para>
244               </entry>
245               <entry>
246                 <para> <literal>/mnt/mdt</literal></para>
247               </entry>
248               <entry>
249                 <para>Mount point for the <literal>mdt0</literal> block device (<literal>/dev/sdb</literal>) on the MGS/MDS node</para>
250               </entry>
251             </row>
252             <row>
253               <entry nameend="c4" namest="c1">
254                 <para> First OSS node</para>
255               </entry>
256             </row>
257             <row>
258               <entry>
259                 <para> &#160;</para>
260               </entry>
261               <entry>
262                 <para> <emphasis role="bold">OSS node</emphasis></para>
263               </entry>
264               <entry>
265                 <para><literal> oss0</literal></para>
266               </entry>
267               <entry>
268                 <para>First OSS node in Lustre file system temp</para>
269               </entry>
270             </row>
271             <row>
272               <entry>
273                 <para> &#160;</para>
274               </entry>
275               <entry>
276                 <para> <emphasis role="bold">OST</emphasis></para>
277               </entry>
278               <entry>
279                 <para><literal>ost0</literal></para>
280               </entry>
281               <entry>
282                 <para>First OST in Lustre file system temp</para>
283               </entry>
284             </row>
285             <row>
286               <entry>
287                 <para> &#160;</para>
288               </entry>
289               <entry>
290                 <para> <emphasis role="bold">block device</emphasis></para>
291               </entry>
292               <entry>
293                 <para> <literal>/dev/sdc</literal></para>
294               </entry>
295               <entry>
296                 <para>Block device for the first OSS node (<literal>oss0</literal>)</para>
297               </entry>
298             </row>
299             <row>
300               <entry>
301                 <para> &#160;</para>
302               </entry>
303               <entry>
304                 <para> <emphasis role="bold">mount point</emphasis></para>
305               </entry>
306               <entry>
307                 <para> <literal>/mnt/ost0</literal></para>
308               </entry>
309               <entry>
310                 <para> Mount point for the <literal>ost0</literal> block device (<literal>/dev/sdc</literal>) on the <literal>oss1</literal> node</para>
311               </entry>
312             </row>
313             <row>
314               <entry nameend="c4" namest="c1">
315                 <para> Second OSS node</para>
316               </entry>
317             </row>
318             <row>
319               <entry>
320                 <para> </para>
321               </entry>
322               <entry>
323                 <para> <emphasis role="bold">OSS node</emphasis></para>
324               </entry>
325               <entry>
326                 <para><literal>oss1</literal></para>
327               </entry>
328               <entry>
329                 <para>Second OSS node in Lustre file system temp</para>
330               </entry>
331             </row>
332             <row>
333               <entry>
334                 <para> </para>
335               </entry>
336               <entry>
337                 <para> <emphasis role="bold">OST</emphasis></para>
338               </entry>
339               <entry>
340                 <para> <literal>ost1</literal></para>
341               </entry>
342               <entry>
343                 <para>Second OST in Lustre file system temp</para>
344               </entry>
345             </row>
346             <row>
347               <entry/>
348               <entry>
349                 <para> <emphasis role="bold">block device</emphasis></para>
350               </entry>
351               <entry>
352                 <para><literal>/dev/sdd</literal></para>
353               </entry>
354               <entry>
355                 <para>Block device for the second OSS node (oss1)</para>
356               </entry>
357             </row>
358             <row>
359               <entry>
360                 <para> </para>
361               </entry>
362               <entry>
363                 <para> <emphasis role="bold">mount point</emphasis></para>
364               </entry>
365               <entry>
366                 <para><literal>/mnt/ost1</literal></para>
367               </entry>
368               <entry>
369                 <para> Mount point for the <literal>ost1</literal> block device (<literal>/dev/sdd</literal>) on the <literal>oss1</literal> node</para>
370               </entry>
371             </row>
372             <row>
373               <entry nameend="c4" namest="c1">
374                 <para> Client node</para>
375               </entry>
376             </row>
377             <row>
378               <entry>
379                 <para> </para>
380               </entry>
381               <entry>
382                 <para> <emphasis role="bold">client node</emphasis></para>
383               </entry>
384               <entry>
385                 <para> <literal>client1</literal></para>
386               </entry>
387               <entry>
388                 <para>Client in Lustre file system temp</para>
389               </entry>
390             </row>
391             <row>
392               <entry>
393                 <para> </para>
394               </entry>
395               <entry>
396                 <para> <emphasis role="bold">mount point</emphasis></para>
397               </entry>
398               <entry>
399                 <para> <literal>/lustre</literal></para>
400               </entry>
401               <entry>
402                 <para>Mount point for Lustre file system temp on the <literal>client1</literal> node</para>
403               </entry>
404             </row>
405           </tbody>
406         </tgroup>
407       </informaltable>
408       <note>
409         <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>
410       </note>
411       <para>For this example, complete the steps below:</para>
412       <orderedlist>
413         <listitem>
414           <para>Create a combined MGS/MDT file system on the block device. On the MDS node, run:</para>
415           <screen>[root@mds /]# mkfs.lustre --fsname=temp --mgs --mdt --index=0 /dev/sdb</screen>
416           <para>This command generates this output:</para>
417           <screen>    Permanent disk data:
418 Target:            temp-MDT0000
419 Index:             0
420 Lustre FS: temp
421 Mount type:        ldiskfs
422 Flags:             0x75
423    (MDT MGS first_time update )
424 Persistent mount opts: errors=remount-ro,iopen_nopriv,user_xattr
425 Parameters: mdt.group_upcall=/usr/sbin/l_getgroups
426  
427 checking for existing Lustre data: not found
428 device size = 16MB
429 2 6 18
430 formatting backing filesystem ldiskfs on /dev/sdb
431    target name             temp-MDTffff
432    4k blocks               0
433    options                 -i 4096 -I 512 -q -O dir_index,uninit_groups -F
434 mkfs_cmd = mkfs.ext2 -j -b 4096 -L temp-MDTffff  -i 4096 -I 512 -q -O 
435 dir_index,uninit_groups -F /dev/sdb
436 Writing CONFIGS/mountdata </screen>
437         </listitem>
438         <listitem>
439           <para>Mount the combined MGS/MDT file system on the block device. On the MDS node, run:</para>
440           <screen>[root@mds /]# mount -t lustre /dev/sdb /mnt/mdt</screen>
441           <para>This command generates this output:</para>
442           <screen>Lustre: temp-MDT0000: new disk, initializing 
443 Lustre: 3009:0:(lproc_mds.c:262:lprocfs_wr_group_upcall()) temp-MDT0000:
444 group upcall set to /usr/sbin/l_getgroups
445 Lustre: temp-MDT0000.mdt: set parameter group_upcall=/usr/sbin/l_getgroups
446 Lustre: Server temp-MDT0000 on device /dev/sdb has started </screen>
447         </listitem>
448         <listitem xml:id="dbdoclet.50438267_pgfId-1291170">
449           <para>Create and mount <literal>ost0</literal>.</para>
450           <para>In this example, the OSTs (<literal>ost0</literal> and <literal>ost1</literal>) are being created on different OSS nodes (<literal>oss0</literal> and <literal>oss1</literal> respectively).</para>
451           <orderedlist>
452             <listitem>
453               <para>Create <literal>ost0</literal>. On <literal>oss0</literal> node, run:</para>
454               <screen>[root@oss0 /]# mkfs.lustre --fsname=temp --mgsnode=10.2.0.1@tcp0 --ost --index=0 /dev/sdc</screen>
455               <para>The command generates this output:</para>
456               <screen>    Permanent disk data:
457 Target:            temp-OST0000
458 Index:             0
459 Lustre FS: temp
460 Mount type:        ldiskfs
461 Flags:             0x72
462 (OST first_time update)
463 Persistent mount opts: errors=remount-ro,extents,mballoc
464 Parameters: mgsnode=10.2.0.1@tcp
465  
466 checking for existing Lustre data: not found
467 device size = 16MB
468 2 6 18
469 formatting backing filesystem ldiskfs on /dev/sdc
470    target name             temp-OST0000
471    4k blocks               0
472    options                 -I 256 -q -O dir_index,uninit_groups -F
473 mkfs_cmd = mkfs.ext2 -j -b 4096 -L temp-OST0000  -I 256 -q -O
474 dir_index,uninit_groups -F /dev/sdc
475 Writing CONFIGS/mountdata </screen>
476             </listitem>
477             <listitem>
478               <para>Mount ost0 on the OSS on which it was created. On <literal>oss0</literal> node, run:</para>
479               <screen>root@oss0 /] mount -t lustre /dev/sdc /mnt/ost0</screen>
480               <para>The command generates this output:</para>
481               <screen>LDISKFS-fs: file extents enabled 
482 LDISKFS-fs: mballoc enabled
483 Lustre: temp-OST0000: new disk, initializing
484 Lustre: Server temp-OST0000 on device /dev/sdb has started</screen>
485               <para>Shortly afterwards, this output appears:</para>
486               <screen>Lustre: temp-OST0000: received MDS connection from 10.2.0.1@tcp0
487 Lustre: MDS temp-MDT0000: temp-OST0000_UUID now active, resetting orphans </screen>
488             </listitem>
489           </orderedlist>
490         </listitem>
491         <listitem>
492           <para>Create and mount <literal>ost1</literal>.</para>
493           <orderedlist>
494             <listitem>
495               <para>Create ost1. On <literal>oss1</literal> node, run:</para>
496               <screen>[root@oss1 /]# mkfs.lustre --fsname=temp --mgsnode=10.2.0.1@tcp0 \
497            --ost --index=1 /dev/sdd</screen>
498               <para>The command generates this output:</para>
499               <screen>    Permanent disk data:
500 Target:            temp-OST0001
501 Index:             1
502 Lustre FS: temp
503 Mount type:        ldiskfs
504 Flags:             0x72
505 (OST first_time update)
506 Persistent mount opts: errors=remount-ro,extents,mballoc
507 Parameters: mgsnode=10.2.0.1@tcp
508  
509 checking for existing Lustre data: not found
510 device size = 16MB
511 2 6 18
512 formatting backing filesystem ldiskfs on /dev/sdd
513    target name             temp-OST0001
514    4k blocks               0
515    options                 -I 256 -q -O dir_index,uninit_groups -F
516 mkfs_cmd = mkfs.ext2 -j -b 4096 -L temp-OST0001  -I 256 -q -O
517 dir_index,uninit_groups -F /dev/sdc
518 Writing CONFIGS/mountdata </screen>
519             </listitem>
520             <listitem>
521               <para>Mount ost1 on the OSS on which it was created. On <literal>oss1</literal> node, run:</para>
522               <screen>root@oss1 /] mount -t lustre /dev/sdd /mnt/ost1 </screen>
523               <para>The command generates this output:</para>
524               <screen>LDISKFS-fs: file extents enabled 
525 LDISKFS-fs: mballoc enabled
526 Lustre: temp-OST0001: new disk, initializing
527 Lustre: Server temp-OST0001 on device /dev/sdb has started</screen>
528               <para>Shortly afterwards, this output appears:</para>
529               <screen>Lustre: temp-OST0001: received MDS connection from 10.2.0.1@tcp0
530 Lustre: MDS temp-MDT0000: temp-OST0001_UUID now active, resetting orphans </screen>
531             </listitem>
532           </orderedlist>
533         </listitem>
534         <listitem>
535           <para>Mount the Lustre file system on the client. On the client node, run:</para>
536           <screen>root@client1 /] mount -t lustre 10.2.0.1@tcp0:/temp /lustre </screen>
537           <para>This command generates this output:</para>
538           <screen>Lustre: Client temp-client has started</screen>
539         </listitem>
540         <listitem>
541           <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>
542           <orderedlist>
543             <listitem>
544               <para>Run the <literal>lfs df -h</literal> command:</para>
545               <screen>[root@client1 /] lfs df -h </screen>
546               <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>
547               <screen>
548 UUID               bytes      Used      Available   Use%    Mounted on
549 temp-MDT0000_UUID  8.0G      400.0M       7.6G        0%      /lustre[MDT:0]
550 temp-OST0000_UUID  800.0G    400.0M     799.6G        0%      /lustre[OST:0]
551 temp-OST0001_UUID  800.0G    400.0M     799.6G        0%      /lustre[OST:1]
552 filesystem summary:  1.6T    800.0M       1.6T        0%      /lustre</screen>
553             </listitem>
554             <listitem>
555               <para>Run the <literal>lfs df -ih</literal> command.</para>
556               <screen>[root@client1 /] lfs df -ih</screen>
557               <para>The <literal>lfs df -ih</literal> command lists inode usage per OST and the MDT. This command generates output similar to this:</para>
558               <screen>
559 UUID              Inodes      IUsed       IFree   IUse%     Mounted on
560 temp-MDT0000_UUID   2.5M        32         2.5M      0%       /lustre[MDT:0]
561 temp-OST0000_UUID   5.5M        54         5.5M      0%       /lustre[OST:0]
562 temp-OST0001_UUID   5.5M        54         5.5M      0%       /lustre[OST:1]
563 filesystem summary: 2.5M        32         2.5M      0%       /lustre</screen>
564             </listitem>
565             <listitem>
566               <para>Run the <literal>dd</literal> command:</para>
567               <screen>[root@client1 /] cd /lustre
568 [root@client1 /lustre] dd if=/dev/zero of=/lustre/zero.dat bs=4M count=2</screen>
569               <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>
570               <screen>2+0 records in
571 2+0 records out
572 8388608 bytes (8.4 MB) copied, 0.159628 seconds, 52.6 MB/s</screen>
573             </listitem>
574             <listitem>
575               <para>Run the <literal>ls</literal> command:</para>
576               <screen>[root@client1 /lustre] ls -lsah</screen>
577               <para>The <literal>ls -lsah</literal> command lists files and directories in the current working directory. This command generates output similar to this:</para>
578               <screen>total 8.0M
579 4.0K drwxr-xr-x  2 root root 4.0K Oct 16 15:27 .
580 8.0K drwxr-xr-x 25 root root 4.0K Oct 16 15:27 ..
581 8.0M -rw-r--r--  1 root root 8.0M Oct 16 15:27 zero.dat 
582  
583 </screen>
584             </listitem>
585           </orderedlist>
586         </listitem>
587       </orderedlist>
588       <para>Once the Lustre file system is configured, it is ready for use.</para>
589     </section>
590   </section>
591   <section xml:id="dbdoclet.50438267_76752">
592       <title>
593           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>additional options</tertiary></indexterm>
594           Additional Configuration Options</title>
595     <para>This section describes how to scale the Lustre file system or make configuration changes using the Lustre configuration utilities.</para>
596     <section remap="h3">
597         <title>
598           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>for scale</tertiary></indexterm>
599             Scaling the Lustre File System</title>
600       <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>
601     </section>
602     <section remap="h3">
603         <title>
604           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>striping</tertiary></indexterm>
605             Changing Striping Defaults</title>
606       <para>The default settings for the file layout stripe pattern are shown in <xref linkend="configuringlustre.tab.stripe"/>.</para>
607       <table frame="none" xml:id="configuringlustre.tab.stripe">
608         <title>Default stripe pattern</title>
609         <tgroup cols="3">
610           <colspec colname="c1" colwidth="3*"/>
611           <colspec colname="c2" colwidth="13*"/>
612           <colspec colname="c3" colwidth="13*"/>
613           <tbody>
614             <row>
615               <entry>
616                 <para><emphasis role="bold">File Layout Parameter</emphasis></para>
617               </entry>
618               <entry>
619                 <para><emphasis role="bold">Default</emphasis></para>
620               </entry>
621               <entry>
622                 <para><emphasis role="bold">Description</emphasis></para>
623               </entry>
624             </row>
625             <row>
626               <entry>
627                 <para> <literal>stripe_size</literal></para>
628               </entry>
629               <entry>
630                 <para> 1 MB</para>
631               </entry>
632               <entry>
633                 <para> Amount of data to write to one OST before moving to the next OST.</para>
634               </entry>
635             </row>
636             <row>
637               <entry>
638                 <para> <literal>stripe_count</literal></para>
639               </entry>
640               <entry>
641                 <para> 1</para>
642               </entry>
643               <entry>
644                 <para> The number of OSTs to use for a single file.</para>
645               </entry>
646             </row>
647             <row>
648               <entry>
649                 <para> <literal>start_ost</literal></para>
650               </entry>
651               <entry>
652                 <para> -1</para>
653               </entry>
654               <entry>
655                 <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>
656               </entry>
657             </row>
658           </tbody>
659         </tgroup>
660       </table>
661       <para>Use the <literal>lfs setstripe</literal> command described in <xref linkend="managingstripingfreespace"/> to change the file layout configuration.</para>
662     </section>
663     <section remap="h3">
664         <title>
665           <indexterm><primary>Lustre</primary><secondary>configuring</secondary><tertiary>utilities</tertiary></indexterm>
666             Using the Lustre Configuration Utilities</title>
667       <para>If additional configuration is necessary, several configuration utilities are available:</para>
668       <itemizedlist>
669         <listitem>
670           <para><literal>mkfs.lustre</literal>  - Use to format a disk for a Lustre service.</para>
671         </listitem>
672         <listitem>
673           <para><literal>tunefs.lustre</literal>  - Use to modify configuration information on a Lustre target disk.</para>
674         </listitem>
675         <listitem>
676           <para><literal>lctl</literal>  - Use to directly control Lustre via an ioctl interface, allowing various configuration, maintenance and debugging features to be accessed.</para>
677         </listitem>
678         <listitem>
679           <para><literal>mount.lustre</literal>  - Use to start a Lustre client or target service.</para>
680         </listitem>
681       </itemizedlist>
682       <para>For examples using these utilities, see the topic <xref linkend="systemconfigurationutilities"/></para>
683       <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>
684       <note>
685         <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>
686       </note>
687     </section>
688   </section>
689 </chapter>