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