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