Whamcloud - gitweb
LUDOC-394 manual: Remove extra 'held' word
[doc/manual.git] / SystemConfigurationUtilities.xml
1 <?xml version='1.0' encoding='UTF-8'?>
2 <chapter xmlns="http://docbook.org/ns/docbook"
3  xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en-US"
4  xml:id="systemconfigurationutilities">
5   <title xml:id="systemconfigurationutilities.title">System Configuration Utilities</title>
6   <para>This chapter includes system configuration utilities and includes the following sections:</para>
7   <itemizedlist>
8     <listitem>
9       <para><xref linkend="dbdoclet.50438219_55923"/></para>
10     </listitem>
11     <listitem>
12       <para><xref linkend="dbdoclet.l_getidentity"/></para>
13     </listitem>
14     <listitem>
15       <para><xref linkend="dbdoclet.50438219_38274"/></para>
16     </listitem>
17     <listitem>
18       <para><xref linkend="dbdoclet.50438219_58217"/></para>
19     </listitem>
20     <listitem>
21       <para><xref linkend="dbdoclet.50438219_44971"/></para>
22     </listitem>
23     <listitem>
24       <para><xref linkend="dbdoclet.50438219_90386"/></para>
25     </listitem>
26     <listitem>
27       <para><xref linkend="dbdoclet.50438219_23232"/></para>
28     </listitem>
29     <listitem>
30       <para><xref linkend="dbdoclet.50438219_23648"/></para>
31     </listitem>
32     <listitem>
33       <para><xref linkend="dbdoclet.50438219_64286"/></para>
34     </listitem>
35     <listitem>
36       <para><xref linkend="dbdoclet.50438219_90218"/></para>
37     </listitem>
38     <listitem>
39       <para><xref linkend="dbdoclet.50438219_54734"/></para>
40     </listitem>
41     <listitem>
42       <para><xref linkend="dbdoclet.50438219_63667"/></para>
43     </listitem>
44     <listitem>
45       <para><xref linkend="dbdoclet.50438219_75432"/></para>
46     </listitem>
47     <listitem>
48       <para><xref linkend="dbdoclet.50438219_12635"/></para>
49     </listitem>
50     <listitem>
51       <para><xref linkend="dbdoclet.50438219_82679"/></para>
52     </listitem>
53     <listitem>
54       <para><xref linkend="dbdoclet.50438219_51496"/></para>
55     </listitem>
56     <listitem>
57       <para><xref linkend="dbdoclet.50438219_39574"/></para>
58     </listitem>
59     <listitem>
60       <para><xref linkend="dbdoclet.50438219_99928"/></para>
61     </listitem>
62   </itemizedlist>
63   <section xml:id="dbdoclet.50438219_55923">
64       <title><indexterm><primary>e2scan</primary></indexterm>
65                   e2scan</title>
66     <para>The e2scan utility is an ext2 file system-modified inode scan program. The e2scan program uses libext2fs to find inodes with ctime or mtime newer than a given time and prints out their pathname. Use e2scan to efficiently generate lists of files that have been modified. The e2scan tool is included in the e2fsprogs package, located at:</para>
67     <para><link xl:href="http://downloads.whamcloud.com/public/e2fsprogs/latest/">http://downloads.whamcloud.com/public/e2fsprogs/latest/</link></para>
68     <section remap="h5">
69       <title>Synopsis</title>
70       <screen>e2scan [options] [-f file] block_device</screen>
71     </section>
72     <section remap="h5">
73       <title>Description</title>
74       <para>When invoked, the e2scan utility iterates all inodes on the block device, finds modified inodes, and prints their inode numbers. A similar iterator, using libext2fs(5), builds a table (called parent database) which lists the parent node for each inode. With a lookup function, you can reconstruct modified pathnames from root.</para>
75     </section>
76     <section remap="h5">
77       <title>Options</title>
78       <informaltable frame="all">
79         <tgroup cols="2">
80           <colspec colname="c1" colwidth="50*"/>
81           <colspec colname="c2" colwidth="50*"/>
82           <thead>
83             <row>
84               <entry>
85                 <para><emphasis role="bold">Option</emphasis></para>
86               </entry>
87               <entry>
88                 <para><emphasis role="bold">Description</emphasis></para>
89               </entry>
90             </row>
91           </thead>
92           <tbody>
93             <row>
94               <entry>
95                 <para> <literal>-b <replaceable>inode buffer blocks</replaceable></literal></para>
96               </entry>
97               <entry>
98                 <para> Sets the readahead inode blocks to get excellent performance when scanning the block device.</para>
99                 <para>&#160;</para>
100               </entry>
101             </row>
102             <row>
103               <entry>
104                 <para> <literal>-o <replaceable>output file</replaceable></literal></para>
105               </entry>
106               <entry>
107                 <para> If an output file is specified, modified pathnames are written to this file. Otherwise, modified parameters are written to stdout.</para>
108               </entry>
109             </row>
110             <row>
111               <entry>
112                 <para> <literal>-t <replaceable>inode</replaceable>| <replaceable>pathname</replaceable></literal></para>
113               </entry>
114               <entry>
115                 <para> Sets the e2scan type if type is inode. The e2scan utility prints modified inode numbers to stdout. By default, the type is set as pathname.</para>
116                 <para>The e2scan utility lists modified pathnames based on modified inode numbers.</para>
117               </entry>
118             </row>
119             <row>
120               <entry>
121                 <para> <literal>-u</literal></para>
122               </entry>
123               <entry>
124                 <para> Rebuilds the parent database from scratch. Otherwise, the current parent database is used.</para>
125               </entry>
126             </row>
127           </tbody>
128         </tgroup>
129       </informaltable>
130     </section>
131   </section>
132   <section xml:id="dbdoclet.l_getidentity">
133     <title><indexterm><primary>l_getidentity</primary></indexterm>
134 l_getidentity</title>
135     <para>The l_getidentity tool normally handles Lustre user/group mapping
136       upcall.</para>
137     <section remap="h5">
138       <title>Synopsis</title>
139       <screen>l_getidentity { $FSNAME-MDT{xxxx}| -d} {uid}</screen>
140     </section>
141     <section remap="h5">
142       <title>Description</title>
143       <para>The <literal>l_getidentity</literal> utility is called from the
144         MDS to map a numeric UID value into the list of supplementary group
145         values for that UID, and writes this into the
146         <literal>mdt.*.identity_info</literal> parameter file.  The list of
147         supplementary groups is cached in the kernel to avoid repeated
148         upcalls.  See <xref linkend="dbdoclet.identity_upcall"/> for more
149         details.</para>
150       <para>The <literal>l_getidentity</literal> utility can also be run
151         directly for debugging purposes to ensure that the UID mapping for a
152         particular user is configured correctly, by using the
153         <literal>-d</literal> argument instead of the MDT name.
154       </para>
155     </section>
156     <section remap="h5">
157       <title>Options</title>
158       <informaltable frame="all">
159         <tgroup cols="2">
160           <colspec colname="c1" colwidth="50*"/>
161           <colspec colname="c2" colwidth="50*"/>
162           <thead>
163             <row>
164               <entry>
165                 <para><emphasis role="bold">Option</emphasis></para>
166               </entry>
167               <entry>
168                 <para><emphasis role="bold">Description</emphasis></para>
169               </entry>
170             </row>
171           </thead>
172           <tbody>
173             <row>
174               <entry>
175                 <para>
176                   <literal>${FSNAME}-MDT{xxxx}</literal></para>
177               </entry>
178               <entry>
179                 <para> Metadata server target name</para>
180               </entry>
181             </row>
182             <row>
183               <entry>
184                 <para> <literal>uid</literal></para>
185               </entry>
186               <entry>
187                 <para> User identifier</para>
188               </entry>
189             </row>
190           </tbody>
191         </tgroup>
192       </informaltable>
193     </section>
194     <section remap="h5">
195       <title>Files</title>
196       <para>The parameter to set the <literal>l_getidentity</literal> path is:
197       </para>
198 <screen>mds# lctl set_param -P mdt.*-MDT*.identity_upcall=<replaceable>path</replaceable>
199 </screen>
200     </section>
201   </section>
202   <section xml:id="dbdoclet.50438219_38274">
203     <title><indexterm><primary>lctl</primary></indexterm>
204 lctl</title>
205     <para>The lctl utility is used for root control and configuration. With lctl you can directly control Lustre via an ioctl interface, allowing various configuration, maintenance and debugging features to be accessed.</para>
206     <section remap="h5">
207       <title>Synopsis</title>
208       <screen>lctl [--device <replaceable>devno</replaceable>] <replaceable>command [args]</replaceable></screen>
209     </section>
210     <section remap="h5">
211       <title>Description</title>
212       <para>The lctl utility can be invoked in interactive mode by issuing the lctl command. After that, commands are issued as shown below. The most common lctl commands are:</para>
213       <screen>dl
214 dk
215 device
216 network <replaceable>up|down</replaceable>
217 list_nids
218 ping <replaceable>nid</replaceable>help
219 quit</screen>
220       <para>For a complete list of available commands, type <literal>help</literal> at the <literal>lctl</literal> prompt. To get basic help on command meaning and syntax, type <literal>help <replaceable>command</replaceable></literal>. Command completion is activated with the TAB key (depending on compile options), and command history is available via the up- and down-arrow keys.</para>
221       <para>For non-interactive use, use the second invocation, which runs the command after connecting to the device.</para>
222     </section>
223     <section remap="h5">
224       <title>Setting Parameters with lctl</title>
225       <para>Lustre parameters are not always accessible using the procfs
226       interface, as it is platform-specific. As a solution,
227       <literal>lctl {get,set}_param</literal> provides a platform-independent
228       interface to the Lustre tunables. Avoid any direct references to
229       <literal>/proc</literal> and <literal>/sys</literal> files in scripts.
230       For future portability, instead use lctl {get,set}_param, which handles
231       these details internally.</para>
232       <para>When the file system is running, use the
233       <literal>lctl set_param</literal> command on the affected node(s) to
234       <emphasis>temporarily</emphasis> set parameters (mapping to items in).
235       The <literal>lctl set_param</literal> command uses this syntax:</para>
236       <screen>lctl set_param [-n] [-P] [-d] <replaceable>obdtype.obdname.property</replaceable>=<replaceable>value</replaceable></screen>
237       <para>For example:</para>
238 <screen>mds# lctl set_param mdt.testfs-MDT0000.identity_upcall=NONE</screen>
239       <para condition='l25'>Use <literal>-P</literal> option to set parameters
240       permanently. Option <literal>-d </literal>deletes permanent parameters.
241       For example:
242 <screen>
243 mgs# lctl set_param -P mdt.testfs-MDT0000.identity_upcall=NONE
244 mgs# lctl set_param -P -d mdt.testfs-MDT0000.identity_upcall</screen></para>
245       <para>Many permanent parameters can be set with the
246       <literal>lctl conf_param</literal> utility. In general,
247       <literal>lctl conf_param</literal> can be used to specify any OBD
248       device parameter settable in a /proc/fs/lustre file. The
249       <literal>lctl conf_param</literal> command must be run on the MGS node,
250       and uses this syntax:</para>
251       <screen><replaceable>obd|fsname</replaceable>.obdtype.property=<replaceable>value</replaceable>) </screen>
252       <para>For example:</para>
253       <screen>mgs# lctl conf_param testfs-MDT0000.mdt.identity_upcall=NONE
254 $ lctl conf_param testfs.llite.max_read_ahead_mb=16 </screen>
255       <caution>
256         <para>The <literal>lctl conf_param</literal> command <emphasis>permanently</emphasis> sets parameters in the file system configuration for all nodes of the specified type.</para>
257       </caution>
258       <para>To get current Lustre parameter settings, use the <literal>lctl get_param</literal> command on the desired node with the same parameter name as <literal>lctl set_param</literal>:</para>
259       <screen>lctl get_param [-n] <replaceable>obdtype.obdname.parameter</replaceable></screen>
260       <para>For example:</para>
261       <screen>mds# lctl get_param mdt.testfs-MDT0000.identity_upcall</screen>
262       <para>To list Lustre parameters that are available to set, use the <literal>lctl list_param</literal> command, with this syntax:</para>
263       <screen>lctl list_param [-R] [-F] <replaceable>obdtype.obdname.*</replaceable></screen>
264       <para>For example, to list all of the parameters on the MDT:</para>
265       <screen>oss# lctl list_param -RF mdt</screen>
266       <para>For more information on using lctl to set temporary and permanent parameters, see <xref linkend="dbdoclet.50438194_51490"/>.</para>
267       <para><emphasis role="bold">Network Configuration</emphasis></para>
268       <informaltable frame="all">
269         <tgroup cols="2">
270           <colspec colname="c1" colwidth="50*"/>
271           <colspec colname="c2" colwidth="50*"/>
272           <thead>
273             <row>
274               <entry>
275                 <para><emphasis role="bold">Option</emphasis></para>
276               </entry>
277               <entry>
278                 <para><emphasis role="bold">Description</emphasis></para>
279               </entry>
280             </row>
281           </thead>
282           <tbody>
283             <row>
284               <entry>
285                 <para> <literal>network up|down|tcp|elan</literal></para>
286               </entry>
287               <entry>
288                 <para> Starts or stops LNet, or selects a network type for other <literal>lctl</literal> LNet commands.</para>
289               </entry>
290             </row>
291             <row>
292               <entry>
293                 <para> <literal>list_nids</literal></para>
294               </entry>
295               <entry>
296                 <para> Prints all NIDs on the local node. LNet must be running.</para>
297               </entry>
298             </row>
299             <row>
300               <entry>
301                 <para> <literal>which_nid <replaceable>nidlist</replaceable></literal></para>
302               </entry>
303               <entry>
304                 <para> From a list of NIDs for a remote node, identifies the NID on which interface communication will occur.</para>
305               </entry>
306             </row>
307             <row>
308               <entry>
309                 <para> <literal>ping <replaceable>nid</replaceable></literal></para>
310               </entry>
311               <entry>
312                 <para> Checks LNet connectivity via an LNet ping. This uses the fabric appropriate to the specified NID.</para>
313               </entry>
314             </row>
315             <row>
316               <entry>
317                 <para> <literal>interface_list</literal></para>
318               </entry>
319               <entry>
320                 <para> Prints the network interface information for a given <emphasis>network</emphasis> type.</para>
321               </entry>
322             </row>
323             <row>
324               <entry>
325                 <para> <literal>peer_list</literal></para>
326               </entry>
327               <entry>
328                 <para> Prints the known peers for a given <emphasis>network</emphasis> type.</para>
329               </entry>
330             </row>
331             <row>
332               <entry>
333                 <para> <literal>conn_list</literal></para>
334               </entry>
335               <entry>
336                 <para> Prints all the connected remote NIDs for a given <emphasis>network</emphasis> type.</para>
337               </entry>
338             </row>
339             <row>
340               <entry>
341                 <para> <literal>active_tx</literal></para>
342               </entry>
343               <entry>
344                 <para> This command prints active transmits. It is only used for the Elan <emphasis>network</emphasis> type.</para>
345               </entry>
346             </row>
347             <row>
348               <entry>
349                 <para> <literal>route_list</literal></para>
350               </entry>
351               <entry>
352                 <para> Prints the complete routing table.</para>
353               </entry>
354             </row>
355           </tbody>
356         </tgroup>
357       </informaltable>
358       <para><emphasis role="bold">Device Selection</emphasis></para>
359       <informaltable frame="all">
360         <tgroup cols="3">
361           <colspec colname="c1" colwidth="33*"/>
362           <colspec colname="c2" colwidth="33*"/>
363           <colspec colname="c3" colwidth="33*"/>
364           <thead>
365             <row>
366               <entry>
367                 <para><emphasis role="bold">Option</emphasis></para>
368               </entry>
369               <entry>
370                 <para><emphasis role="bold">&#160;</emphasis></para>
371               </entry>
372               <entry>
373                 <para><emphasis role="bold">Description</emphasis></para>
374               </entry>
375             </row>
376           </thead>
377           <tbody>
378             <row>
379               <entry>
380                 <para> <literal>device <replaceable>devname</replaceable></literal></para>
381               </entry>
382               <entry>
383                 <para> &#160;</para>
384               </entry>
385               <entry>
386                 <para> This selects the specified OBD device. All other commands depend on the device being set.</para>
387               </entry>
388             </row>
389             <row>
390               <entry>
391                 <para> <literal>device_list</literal></para>
392               </entry>
393               <entry>
394                 <para> &#160;</para>
395               </entry>
396               <entry>
397                 <para> Shows the local Lustre OBDs, a/k/a <literal>dl</literal>.</para>
398               </entry>
399             </row>
400           </tbody>
401         </tgroup>
402       </informaltable>
403       <para><emphasis role="bold">Device Operations</emphasis></para>
404       <informaltable frame="all">
405         <tgroup cols="3">
406           <colspec colname="c1" colwidth="33*"/>
407           <colspec colname="c2" colwidth="33*"/>
408           <colspec colname="c3" colwidth="33*"/>
409           <thead>
410             <row>
411               <entry nameend="c2" namest="c1">
412                 <para><emphasis role="bold">Option</emphasis></para>
413               </entry>
414               <entry>
415                 <para><emphasis role="bold">Description</emphasis></para>
416               </entry>
417             </row>
418           </thead>
419           <tbody>
420             <row>
421               <entry nameend="c2" namest="c1">
422                 <para> <literal>list_param [-F|-R] <replaceable>parameter</replaceable> <replaceable>[parameter ...]</replaceable></literal></para>
423               </entry>
424               <entry>
425                 <para> Lists the Lustre or LNet parameter name.</para>
426                 <para>&#160;</para>
427               </entry>
428             </row>
429             <row>
430               <entry>
431                 <para> &#160;</para>
432               </entry>
433               <entry>
434                 <para> <literal>-F</literal></para>
435               </entry>
436               <entry>
437                 <para> Adds &apos;/&apos;, &apos;@&apos; or &apos;=&apos; for directories, symlinks and writeable files, respectively.</para>
438               </entry>
439             </row>
440             <row>
441               <entry>
442                 <para> &#160;</para>
443               </entry>
444               <entry>
445                 <para> <literal>-R</literal></para>
446               </entry>
447               <entry>
448                 <para> Recursively lists all parameters under the specified path. If <literal>param_path</literal> is unspecified, all parameters are shown.</para>
449               </entry>
450             </row>
451             <row>
452               <entry nameend="c2" namest="c1">
453                 <para> <literal>get_param [-n|-N|-F] <replaceable>parameter</replaceable> <replaceable>[parameter ...]</replaceable></literal></para>
454               </entry>
455               <entry>
456                 <para> Gets the value of a Lustre or LNet parameter from the specified path.</para>
457               </entry>
458             </row>
459             <row>
460               <entry>
461                 <para> &#160;</para>
462               </entry>
463               <entry>
464                 <para> <literal>-n</literal></para>
465               </entry>
466               <entry>
467                 <para> Prints only the parameter value and not the parameter name.</para>
468               </entry>
469             </row>
470             <row>
471               <entry>
472                 <para> &#160;</para>
473               </entry>
474               <entry>
475                 <para> <literal>-N</literal></para>
476               </entry>
477               <entry>
478                 <para> Prints only matched parameter names and not the values; especially useful when using patterns.</para>
479               </entry>
480             </row>
481             <row>
482               <entry>
483                 <para> &#160;</para>
484               </entry>
485               <entry>
486                 <para> <literal>-F</literal></para>
487               </entry>
488               <entry>
489                 <para> When <literal>-N</literal> is specified, adds &apos;/&apos;, &apos;@&apos; or &apos;=&apos; for directories, symlinks and writeable files, respectively.</para>
490               </entry>
491             </row>
492             <row>
493               <entry nameend="c2" namest="c1">
494                 <para> <literal>set_param [-n] <replaceable>parameter</replaceable>=<replaceable>value</replaceable></literal></para>
495               </entry>
496               <entry>
497                 <para> Sets the value of a Lustre or LNet parameter from the specified path.</para>
498               </entry>
499             </row>
500             <row>
501               <entry>
502                 <para> &#160;</para>
503               </entry>
504               <entry>
505                 <para> <literal>-n</literal></para>
506               </entry>
507               <entry>
508                 <para> Disables printing of the key name when printing values.</para>
509               </entry>
510             </row>
511             <row>
512               <entry nameend="c2" namest="c1">
513                 <para><literal>conf_param [-d] <replaceable>device|fsname</replaceable> <replaceable>parameter</replaceable>=<replaceable>value</replaceable></literal></para>
514               </entry>
515               <entry>
516                 <para> Sets a permanent configuration parameter for any device via the MGS. This command must be run on the MGS node.</para>
517                 <para>All writeable parameters under <literal>lctl list_param</literal> (e.g. <literal>lctl list_param -F osc.*.* | grep</literal> =) can be permanently set using <literal>lctl conf_param</literal>, but the format is slightly different. For <literal>conf_param</literal>, the device is specified first, then the obdtype. Wildcards are not supported. Additionally, failover nodes may be added (or removed), and some system-wide parameters may be set as well (sys.at_max, sys.at_min, sys.at_extra, sys.at_early_margin, sys.at_history, sys.timeout, sys.ldlm_timeout). For system-wide parameters, <replaceable>device</replaceable> is ignored.</para>
518                 <para>For more information on setting permanent parameters and <literal>lctl conf_param</literal> command examples, see <xref linkend="dbdoclet.50438194_64195"/> (Setting Permanent Parameters).</para>
519               </entry>
520             </row>
521             <row>
522               <entry>
523                 <para> &#160;</para>
524               </entry>
525               <entry>
526                 <para><literal>-d <replaceable>device|fsname</replaceable>.<replaceable>parameter</replaceable></literal></para>
527                 <para>&#160;</para>
528               </entry>
529               <entry>
530                 <para> Deletes a parameter setting (use the default value at the next restart). A null value for <replaceable>value</replaceable> also deletes the parameter setting.</para>
531               </entry>
532             </row>
533             <row>
534               <entry nameend="c2" namest="c1">
535                 <para> <literal>activate</literal></para>
536               </entry>
537               <entry>
538                 <para> Re-activates an import after the deactivate operation. This setting is only effective until the next restart (see <literal>conf_param</literal>).</para>
539               </entry>
540             </row>
541             <row>
542               <entry nameend="c2" namest="c1">
543                 <para> <literal>deactivate</literal></para>
544               </entry>
545               <entry>
546                 <para> Deactivates an import, in particular meaning do not assign new file stripes to an OSC. Running lctl deactivate on the MDS stops new objects from being allocated on the OST. Running lctl deactivate on Lustre clients causes them to return -EIO when accessing objects on the OST instead of waiting for recovery.</para>
547               </entry>
548             </row>
549             <row>
550               <entry nameend="c2" namest="c1">
551                 <para> <literal>abort_recovery</literal></para>
552               </entry>
553               <entry>
554                 <para> Aborts the recovery process on a re-starting MDT or OST.</para>
555               </entry>
556             </row>
557           </tbody>
558         </tgroup>
559       </informaltable>
560       <note>
561         <para>Lustre tunables are not always accessible using the procfs interface, as it is platform-specific. As a solution, <literal>lctl {get,set,list}_param</literal> has been introduced as a platform-independent interface to the Lustre tunables. Avoid direct references to <literal>/proc/{fs,sys}/{lustre,lnet}</literal>. For future portability, use <literal>lctl {get,set,list}_param</literal> instead.</para>
562       </note>
563       <para><emphasis role="bold">Virtual Block Device Operations</emphasis></para>
564       <para>Lustre can emulate a virtual block device upon a regular file. This emulation is needed when you are trying to set up a swap space via the file.</para>
565       <informaltable frame="all">
566         <tgroup cols="2">
567           <colspec colname="c1" colwidth="50*"/>
568           <colspec colname="c2" colwidth="50*"/>
569           <thead>
570             <row>
571               <entry>
572                 <para><emphasis role="bold">Option</emphasis></para>
573               </entry>
574               <entry>
575                 <para><emphasis role="bold">Description</emphasis></para>
576               </entry>
577             </row>
578           </thead>
579           <tbody>
580             <row>
581               <entry>
582                 <para><literal>blockdev_attach <replaceable>filename</replaceable> <replaceable>/dev/lloop_device</replaceable></literal></para>
583               </entry>
584               <entry>
585                 <para> Attaches a regular Lustre file to a block device. If the device node does not exist, <literal>lctl</literal> creates it. It is recommend that a device node is created by <literal>lctl</literal> since the emulator uses a dynamical major number.</para>
586               </entry>
587             </row>
588             <row>
589               <entry>
590                 <para><literal>blockdev_detach <replaceable>/dev/lloop_device</replaceable></literal></para>
591               </entry>
592               <entry>
593                 <para> Detaches the virtual block device.</para>
594               </entry>
595             </row>
596             <row>
597               <entry>
598                 <para><literal>blockdev_info <replaceable>/dev/lloop_device</replaceable></literal></para>
599               </entry>
600               <entry>
601                 <para> Provides information about the Lustre file attached to the device node.</para>
602               </entry>
603             </row>
604           </tbody>
605         </tgroup>
606       </informaltable>
607       <para><emphasis role="bold">Changelogs</emphasis></para>
608       <informaltable frame="all">
609         <tgroup cols="2">
610           <colspec colname="c1" colwidth="50*"/>
611           <colspec colname="c2" colwidth="50*"/>
612           <thead>
613             <row>
614               <entry>
615                 <para><emphasis role="bold">Option</emphasis></para>
616               </entry>
617               <entry>
618                 <para><emphasis role="bold">Description</emphasis></para>
619               </entry>
620             </row>
621           </thead>
622           <tbody>
623             <row>
624               <entry>
625                 <para> <literal>changelog_register</literal></para>
626               </entry>
627               <entry>
628                 <para> Registers a new changelog user for a particular device.
629                 Changelog entries are saved persistently on the MDT with each
630                 filesystem operation, and are only purged beyond all registered
631                 user&apos;s minimum set point (see
632                 <literal>lfs changelog_clear</literal>). This may cause the
633                 Changelog to consume a large amount of space, eventually
634                 filling the MDT, if a changelog user is registered but never
635                 consumes those records.</para>
636               </entry>
637             </row>
638             <row>
639               <entry>
640                 <para>changelog_deregister <replaceable>id</replaceable></para>
641               </entry>
642               <entry>
643                 <para> Unregisters an existing changelog user. If the
644                 user&apos;s &quot;clear&quot; record number is the minimum for
645                 the device, changelog records are purged until the next minimum.
646                 </para>
647               </entry>
648             </row>
649           </tbody>
650         </tgroup>
651       </informaltable>
652       <para><emphasis role="bold">Debug</emphasis></para>
653       <informaltable frame="all">
654         <tgroup cols="2">
655           <colspec colname="c1" colwidth="50*"/>
656           <colspec colname="c2" colwidth="50*"/>
657           <thead>
658             <row>
659               <entry>
660                 <para><emphasis role="bold">Option</emphasis></para>
661               </entry>
662               <entry>
663                 <para><emphasis role="bold">Description</emphasis></para>
664               </entry>
665             </row>
666           </thead>
667           <tbody>
668             <row>
669               <entry>
670                 <para> <literal>debug_daemon</literal></para>
671               </entry>
672               <entry>
673                 <para> Starts and stops the debug daemon, and controls the output filename and size.</para>
674               </entry>
675             </row>
676             <row>
677               <entry>
678                 <para> <literal>debug_kernel <replaceable>[file]</replaceable> [raw]</literal></para>
679               </entry>
680               <entry>
681                 <para> Dumps the kernel debug buffer to stdout or a file.</para>
682               </entry>
683             </row>
684             <row>
685               <entry>
686                 <para><literal>debug_file <replaceable>input_file</replaceable> <replaceable>[output_file]</replaceable></literal></para>
687               </entry>
688               <entry>
689                 <para> Converts the kernel-dumped debug log from binary to plain text format.</para>
690               </entry>
691             </row>
692             <row>
693               <entry>
694                 <para> <literal>clear</literal></para>
695               </entry>
696               <entry>
697                 <para> Clears the kernel debug buffer.</para>
698               </entry>
699             </row>
700             <row>
701               <entry>
702                 <para> <literal>mark <replaceable>text</replaceable></literal></para>
703               </entry>
704               <entry>
705                 <para> Inserts marker text in the kernel debug buffer.</para>
706               </entry>
707             </row>
708             <row>
709               <entry>
710                 <para> <literal>filter <replaceable>subsystem_id|debug_mask</replaceable></literal></para>
711               </entry>
712               <entry>
713                 <para> Filters kernel debug messages by subsystem or mask.</para>
714               </entry>
715             </row>
716             <row>
717               <entry>
718                 <para> <literal>show <replaceable>subsystem_id|debug_mask</replaceable></literal></para>
719               </entry>
720               <entry>
721                 <para> Shows specific types of messages.</para>
722               </entry>
723             </row>
724             <row>
725               <entry>
726                 <para> <literal>debug_list <replaceable>subsystems|types</replaceable></literal></para>
727               </entry>
728               <entry>
729                 <para> Lists all subsystem and debug types.</para>
730               </entry>
731             </row>
732             <row>
733               <entry>
734                 <para> <literal>modules <replaceable>path</replaceable></literal></para>
735               </entry>
736               <entry>
737                 <para> Provides GDB-friendly module information.</para>
738               </entry>
739             </row>
740           </tbody>
741         </tgroup>
742       </informaltable>
743     </section>
744     <section remap="h5">
745       <title>Options</title>
746       <para>Use the following options to invoke lctl.</para>
747       <informaltable frame="all">
748         <tgroup cols="2">
749           <colspec colname="c1" colwidth="50*"/>
750           <colspec colname="c2" colwidth="50*"/>
751           <thead>
752             <row>
753               <entry>
754                 <para><emphasis role="bold">Option</emphasis></para>
755               </entry>
756               <entry>
757                 <para><emphasis role="bold">Description</emphasis></para>
758               </entry>
759             </row>
760           </thead>
761           <tbody>
762             <row>
763               <entry>
764                 <para> <literal>--device</literal></para>
765               </entry>
766               <entry>
767                 <para> Device to be used for the operation (specified by name or number). See device_list.</para>
768               </entry>
769             </row>
770             <row>
771               <entry>
772                 <para> <literal>--ignore_errors | ignore_errors</literal></para>
773               </entry>
774               <entry>
775                 <para> Ignores errors during script processing.</para>
776               </entry>
777             </row>
778           </tbody>
779         </tgroup>
780       </informaltable>
781     </section>
782     <section remap="h5">
783       <title>Examples</title>
784       <para><literal>lctl</literal></para>
785       <screen>$ lctl
786 lctl &gt; dl 
787    0 UP mgc MGC192.168.0.20@tcp btbb24e3-7deb-2ffa-eab0-44dffe00f692 5 
788    1 UP ost OSS OSS_uuid 3 
789    2 UP obdfilter testfs-OST0000 testfs-OST0000_UUID 3 
790 lctl &gt; dk /tmp/log Debug log: 87 lines, 87 kept, 0 dropped. 
791 lctl &gt; quit</screen>
792     </section>
793     <section remap="h5">
794       <title>See Also</title>
795       <itemizedlist>
796         <listitem>
797           <para> <xref linkend="dbdoclet.50438219_75432"/> </para>
798         </listitem>
799         <listitem>
800           <para> <xref linkend="dbdoclet.50438219_12635"/> </para>
801         </listitem>
802         <listitem>
803           <para> <xref linkend="dbdoclet.50438219_38274"/> </para>
804         </listitem>
805         <listitem>
806           <para> <xref linkend="dbdoclet.50438206_94597"/> </para>
807         </listitem>
808       </itemizedlist>
809     </section>
810   </section>
811   <section xml:id="dbdoclet.50438219_58217">
812     <title><indexterm><primary>ll_decode_filter_fid</primary></indexterm>
813 ll_decode_filter_fid</title>
814     <para>The <literal>ll_decode_filter_fid</literal> utility displays the
815     Lustre object ID and MDT parent FID.</para>
816     <section remap="h5">
817       <title>Synopsis</title>
818       <screen>ll_decode_filter_fid object_file [object_file ...]</screen>
819     </section>
820     <section remap="h5">
821       <title>Description</title>
822       <para>The ll_decode_filter_fid utility decodes and prints the Lustre OST
823         object ID, MDT FID, stripe index for the specified OST object(s), which
824         is stored in the &quot;trusted.fid&quot; attribute on each OST object.
825         This is accessible to <literal>ll_decode_filter_fid</literal> when the
826         OST file system is mounted locally as type ldiskfs for maintenance.
827       </para>
828       <para>The &quot;trusted.fid&quot; extended attribute is stored on each
829         OST object when it is first modified (data written or attributes set),
830         and is not accessed or modified by Lustre after that time.</para>
831       <para>The OST object ID (objid) may be useful in case of OST directory
832         corruption, though LFSCK can normally reconstruct the entire OST object
833         directory tree, see <xref linkend="dbdoclet.lfsckadmin" /> for details.
834         The MDS FID can be useful to determine which MDS inode an OST object
835         is (or was) used by. The stripe index can be used in conjunction with
836         other OST objects to reconstruct the layout of a file even if the MDT
837         inode was lost.
838       </para>
839     </section>
840     <section remap="h5">
841       <title>Examples</title>
842       <screen>root@oss1# cd /mnt/ost/lost+found
843 root@oss1# ll_decode_filter_fid #12345[4,5,8]
844 #123454: objid=690670 seq=0 parent=[0x751c5:0xfce6e605:0x0]
845 #123455: objid=614725 seq=0 parent=[0x18d11:0xebba84eb:0x1]
846 #123458: objid=533088 seq=0 parent=[0x21417:0x19734d61:0x0]</screen>
847       <para>This shows that the three files in lost+found have decimal object IDs - 690670, 614725, and 533088, respectively. The object sequence number (formerly object group) is 0 for all current OST objects.</para>
848       <para>The MDT parent inode FIDs are hexadecimal numbers of the form sequence:oid:idx. Since the sequence number is below 0x100000000 in all these cases, the FIDs are in the legacy Inode and Generation In FID (IGIF) namespace and are mapped directly to the MDT inode = seq and generation = oid values; the MDT inodes are 0x751c5, 0x18d11, and 0x21417 respectively. For objects with MDT parent sequence numbers above 0x200000000, this indicates that the FID needs to be mapped via the MDT Object Index (OI) file on the MDT to determine the internal inode number.</para>
849       <para>The idx field shows the stripe number of this OST object in the Lustre RAID-0 striped file.</para>
850     </section>
851     <section remap="h5">
852       <title>See Also</title>
853       <para><xref linkend="dbdoclet.50438219_44971"/></para>
854     </section>
855   </section>
856   <section xml:id="dbdoclet.50438219_44971" condition='l28'>
857     <title><indexterm><primary>ll_recover_lost_found_objs</primary></indexterm>
858 ll_recover_lost_found_objs</title>
859     <para>The <literal>ll_recover_lost_found_objs</literal> utility was
860       used to help recover Lustre OST objects (file data) from the
861       <literal>lost+found</literal> directory of an OST and return them to
862       their correct locations based on information stored in the
863       <literal>trusted.fid</literal> extended attribute stored on every
864       OST object containing data.</para>
865     <note condition="l26"><para>This utility is not needed with Lustre 2.6
866       and later, and is removed in Lustre 2.8 since <literal>LFSCK</literal>
867       online scanning will automatically move objects from
868       <literal>lost+found</literal> to the proper place in the OST.</para>
869     </note>
870     <section remap="h5">
871       <title>Synopsis</title>
872       <screen>llobdstat ost_name [interval]</screen>
873     </section>
874     <section remap="h5">
875       <title>Description</title>
876       <para>The llobdstat utility displays a line of OST statistics for the given ost_name every interval seconds. It should be run directly on an OSS node. Type <literal>CTRL-C</literal> to stop statistics printing.</para>
877     </section>
878     <section remap="h5">
879       <title>Example</title>
880       <screen># llobdstat liane-OST0002 1
881 /usr/bin/llobdstat on /proc/fs/lustre/obdfilter/liane-OST0002/stats
882 Processor counters run at 2800.189 MHz
883 Read: 1.21431e+07, Write: 9.93363e+08, create/destroy: 24/1499, stat: 34, p\
884 unch: 18
885 [NOTE: cx: create, dx: destroy, st: statfs, pu: punch ]
886 Timestamp Read-delta ReadRate Write-delta WriteRate
887 --------------------------------------------------------
888 1217026053 0.00MB 0.00MB/s 0.00MB 0.00MB/s
889 1217026054 0.00MB 0.00MB/s 0.00MB 0.00MB/s
890 1217026055 0.00MB 0.00MB/s 0.00MB 0.00MB/s
891 1217026056 0.00MB 0.00MB/s 0.00MB 0.00MB/s
892 1217026057 0.00MB 0.00MB/s 0.00MB 0.00MB/s
893 1217026058 0.00MB 0.00MB/s 0.00MB 0.00MB/s
894 1217026059 0.00MB 0.00MB/s 0.00MB 0.00MB/s st:1</screen>
895     </section>
896     <section remap="h5">
897       <title>Files</title>
898       <screen>/proc/fs/lustre/obdfilter/<replaceable>ostname</replaceable>/stats</screen>
899     </section>
900   </section>
901   <section xml:id="dbdoclet.50438219_90386">
902     <title><indexterm><primary>llog_reader</primary></indexterm>
903 llog_reader</title>
904     <para>The llog_reader utility translates a Lustre configuration log into human-readable form.</para>
905     <section remap="h5">
906       <title>Synopsis</title>
907       <screen>llog_reader filename</screen>
908     </section>
909     <section remap="h5">
910       <title>Description</title>
911       <para>The llog_reader utility parses the binary format of Lustre&apos;s on-disk configuration logs. Llog_reader can only read logs; use tunefs.lustre to write to them.</para>
912       <para>To examine a log file on a stopped Lustre server, mount its backing file system as ldiskfs or zfs, then use llog_reader to dump the log file&apos;s contents, for example:</para>
913       <screen>mount -t ldiskfs /dev/sda /mnt/mgs 
914 llog_reader /mnt/mgs/CONFIGS/tfs-client</screen>
915       <para>To examine the same log file on a running Lustre server, use the ldiskfs-enabled debugfs utility (called debug.ldiskfs on some distributions) to extract the file, for example:</para>
916       <screen>debugfs -c -R &apos;dump CONFIGS/tfs-client /tmp/tfs-client&apos; /dev/sda 
917 llog_reader /tmp/tfs-client</screen>
918       <caution>
919         <para>Although they are stored in the CONFIGS directory, mountdata files do not use the configuration log format and will confuse the llog_reader utility.</para>
920       </caution>
921     </section>
922     <section remap="h5">
923       <title>See Also</title>
924       <para><xref linkend="dbdoclet.50438219_39574"/></para>
925     </section>
926   </section>
927   <section xml:id="dbdoclet.50438219_23232">
928     <title><indexterm><primary>llstat</primary></indexterm>
929 llstat</title>
930     <para>The llstat utility displays Lustre statistics.</para>
931     <section remap="h5">
932       <title>Synopsis</title>
933       <screen>llstat [-c] [-g] [-i <replaceable>interval</replaceable>] <replaceable>stats_file
934 </replaceable></screen>
935     </section>
936     <section remap="h5">
937       <title>Description</title>
938       <para>The llstat utility displays statistics from any of the Lustre statistics files that share a common format and are updated at <literal>interval</literal> seconds. To stop statistics printing, use <literal>ctrl</literal>-<literal>c.</literal></para>
939     </section>
940     <section remap="h5">
941       <title>Options</title>
942       <informaltable frame="all">
943         <tgroup cols="2">
944           <colspec colname="c1" colwidth="50*"/>
945           <colspec colname="c2" colwidth="50*"/>
946           <thead>
947             <row>
948               <entry>
949                 <para><emphasis role="bold">Option</emphasis></para>
950               </entry>
951               <entry>
952                 <para><emphasis role="bold">Description</emphasis></para>
953               </entry>
954             </row>
955           </thead>
956           <tbody>
957             <row>
958               <entry>
959                 <para> <literal>-c</literal></para>
960               </entry>
961               <entry>
962                 <para> Clears the statistics file.</para>
963               </entry>
964             </row>
965             <row>
966               <entry>
967                 <para> <literal>-i</literal></para>
968               </entry>
969               <entry>
970                 <para> Specifies the polling period (in seconds).</para>
971               </entry>
972             </row>
973             <row>
974               <entry>
975                 <para> <literal>-g</literal></para>
976               </entry>
977               <entry>
978                 <para> Specifies graphable output format.</para>
979               </entry>
980             </row>
981             <row>
982               <entry>
983                 <para> <literal>-h</literal></para>
984               </entry>
985               <entry>
986                 <para> Displays help information.</para>
987               </entry>
988             </row>
989             <row>
990               <entry>
991                 <para> <literal>stats_file</literal></para>
992               </entry>
993               <entry>
994                 <para> Specifies either the full path to a statistics file or the shorthand reference, <literal>mds</literal> or <literal>ost</literal></para>
995               </entry>
996             </row>
997           </tbody>
998         </tgroup>
999       </informaltable>
1000     </section>
1001     <section remap="h5">
1002       <title>Example</title>
1003       <para>To monitor /proc/fs/lustre/ost/OSS/ost/stats at 1 second intervals, run;</para>
1004       <screen>llstat -i 1 ost</screen>
1005     </section>
1006     <section remap="h5">
1007       <title>Files</title>
1008       <para>The llstat files are located at:</para>
1009       <screen>/proc/fs/lustre/mdt/MDS/*/stats
1010 /proc/fs/lustre/mdt/*/exports/*/stats
1011 /proc/fs/lustre/mdc/*/stats
1012 /proc/fs/lustre/ldlm/services/*/stats
1013 /proc/fs/lustre/ldlm/namespaces/*/pool/stats
1014 /proc/fs/lustre/mgs/MGS/exports/*/stats
1015 /proc/fs/lustre/ost/OSS/*/stats
1016 /proc/fs/lustre/osc/*/stats
1017 /proc/fs/lustre/obdfilter/*/exports/*/stats
1018 /proc/fs/lustre/obdfilter/*/stats
1019 /proc/fs/lustre/llite/*/stats
1020 </screen>
1021     </section>
1022   </section>
1023   <section xml:id="dbdoclet.50438219_23648">
1024     <title><indexterm><primary>llverdev</primary></indexterm>
1025 llverdev</title>
1026     <para>The llverdev verifies a block device is functioning properly over its full size.</para>
1027     <section remap="h5">
1028       <title>Synopsis</title>
1029       <screen>llverdev [-c <replaceable>chunksize</replaceable>] [-f] [-h] [-o <replaceable>offset</replaceable>] [-l] [-p] [-r] [-t <replaceable>timestamp</replaceable>] [-v] [-w] <replaceable>device</replaceable></screen>
1030     </section>
1031     <section remap="h5">
1032       <title>Description</title>
1033       <para>Sometimes kernel drivers or hardware devices have bugs that prevent them from accessing the full device size correctly, or possibly have bad sectors on disk or other problems which prevent proper data storage. There are often defects associated with major system boundaries such as 2^32 bytes, 2^31 sectors, 2^31 blocks, 2^32 blocks, etc.</para>
1034       <para>The llverdev utility writes and verifies a unique test pattern across the entire device to ensure that data is accessible after it was written, and that data written to one part of the disk is not overwriting data on another part of the disk.</para>
1035       <para>It is expected that llverdev will be run on large size devices (TB). It is always better to run llverdev in verbose mode, so that device testing can be easily restarted from the point where it was stopped.</para>
1036       <para>Running a full verification can be time-consuming for very large devices. We recommend starting with a partial verification to ensure that the device is minimally sane before investing in a full verification.</para>
1037     </section>
1038     <section remap="h5">
1039       <title>Options</title>
1040       <informaltable frame="all">
1041         <tgroup cols="3">
1042           <colspec colname="c1" colwidth="33*"/>
1043           <colspec colname="c2" colwidth="33*"/>
1044           <colspec colname="c3" colwidth="33*"/>
1045           <thead>
1046             <row>
1047               <entry>
1048                 <para><emphasis role="bold">Option</emphasis></para>
1049               </entry>
1050               <entry>
1051                 <para><emphasis role="bold">&#160;</emphasis></para>
1052               </entry>
1053               <entry>
1054                 <para><emphasis role="bold">Description</emphasis></para>
1055               </entry>
1056             </row>
1057           </thead>
1058           <tbody>
1059             <row>
1060               <entry nameend="c2" namest="c1">
1061                 <para> <literal>-c|--chunksize</literal></para>
1062               </entry>
1063               <entry>
1064                 <para> I/O chunk size in bytes (default value is 1048576).</para>
1065               </entry>
1066             </row>
1067             <row>
1068               <entry nameend="c2" namest="c1">
1069                 <para> <literal>-f|--force</literal></para>
1070               </entry>
1071               <entry>
1072                 <para> Forces the test to run without a confirmation that the device will be overwritten and all data will be permanently destroyed.</para>
1073               </entry>
1074             </row>
1075             <row>
1076               <entry nameend="c2" namest="c1">
1077                 <para> <literal>-h|--help</literal></para>
1078               </entry>
1079               <entry>
1080                 <para> Displays a brief help message.</para>
1081               </entry>
1082             </row>
1083             <row>
1084               <entry nameend="c2" namest="c1">
1085                 <para> <literal>-o <replaceable>offset</replaceable></literal></para>
1086               </entry>
1087               <entry>
1088                 <para> Offset (in kilobytes) of the start of the test (default value is 0).</para>
1089               </entry>
1090             </row>
1091             <row>
1092               <entry nameend="c2" namest="c1">
1093                 <para> <literal>-l|--long</literal></para>
1094               </entry>
1095               <entry>
1096                 <para> Runs a full check, writing and then reading and verifying every block on the disk.</para>
1097               </entry>
1098             </row>
1099             <row>
1100               <entry nameend="c2" namest="c1">
1101                 <para> <literal>-p|--partial</literal></para>
1102               </entry>
1103               <entry>
1104                 <para> Runs a partial check, only doing periodic checks across the device (1 GB steps).</para>
1105               </entry>
1106             </row>
1107             <row>
1108               <entry nameend="c2" namest="c1">
1109                 <para> <literal>-r|--read</literal></para>
1110               </entry>
1111               <entry>
1112                 <para> Runs the test in read (verify) mode only, after having previously run the test in <literal>-w</literal> mode.</para>
1113               </entry>
1114             </row>
1115             <row>
1116               <entry nameend="c2" namest="c1">
1117                 <para> <literal>-t <replaceable>timestamp</replaceable></literal></para>
1118               </entry>
1119               <entry>
1120                 <para> Sets the test start time as printed at the start of a previously-interrupted
1121                   test to ensure that validation data is the same across the entire file system
1122                   (default value is the current time()).</para>
1123               </entry>
1124             </row>
1125             <row>
1126               <entry nameend="c2" namest="c1">
1127                 <para> <literal>-v|--verbose</literal></para>
1128               </entry>
1129               <entry>
1130                 <para> Runs the test in verbose mode, listing each read and write operation.</para>
1131               </entry>
1132             </row>
1133             <row>
1134               <entry nameend="c2" namest="c1">
1135                 <para> <literal>-w|--write</literal></para>
1136               </entry>
1137               <entry>
1138                 <para> Runs the test in write (test-pattern) mode (default runs both read and write).</para>
1139               </entry>
1140             </row>
1141           </tbody>
1142         </tgroup>
1143       </informaltable>
1144     </section>
1145     <section remap="h5">
1146       <title>Examples</title>
1147       <para>Runs a partial device verification on /dev/sda:</para>
1148       <screen>llverdev -v -p /dev/sda 
1149 llverdev: permanently overwrite all data on /dev/sda (yes/no)? y 
1150 llverdev: /dev/sda is 4398046511104 bytes (4096.0 GB) in size 
1151 Timestamp: 1009839028 
1152 Current write offset: 4096 kB</screen>
1153       <para>Continues an interrupted verification at offset 4096kB from the start of the device, using the same timestamp as the previous run:</para>
1154       <screen>llverdev -f -v -p --offset=4096 --timestamp=1009839028 /dev/sda 
1155 llverdev: /dev/sda is 4398046511104 bytes (4096.0 GB) in size 
1156 Timestamp: 1009839028 
1157 write complete 
1158 read complete </screen>
1159     </section>
1160   </section>
1161   <section xml:id="dbdoclet.50438219_64286">
1162     <title><indexterm><primary>lshowmount</primary></indexterm>
1163 lshowmount</title>
1164     <para>The lshowmount utility shows Lustre exports.</para>
1165     <section remap="h5">
1166       <title>Synopsis</title>
1167       <screen>lshowmount [-ehlv]</screen>
1168     </section>
1169     <section remap="h5">
1170       <title>Description</title>
1171       <para>The lshowmount utility shows the hosts that have Lustre mounted to a server. This utility looks for exports from the MGS, MDS, and obdfilter.</para>
1172     </section>
1173     <section remap="h5">
1174       <title>Options</title>
1175       <informaltable frame="all">
1176         <tgroup cols="2">
1177           <colspec colname="c1" colwidth="50*"/>
1178           <colspec colname="c2" colwidth="50*"/>
1179           <thead>
1180             <row>
1181               <entry>
1182                 <para><emphasis role="bold">Option</emphasis></para>
1183               </entry>
1184               <entry>
1185                 <para><emphasis role="bold">Description</emphasis></para>
1186               </entry>
1187             </row>
1188           </thead>
1189           <tbody>
1190             <row>
1191               <entry>
1192                 <para> <literal>-e|--enumerate</literal></para>
1193               </entry>
1194               <entry>
1195                 <para> Causes lshowmount to list each client mounted on a separate line instead of trying to compress the list of clients into a hostrange string.</para>
1196               </entry>
1197             </row>
1198             <row>
1199               <entry>
1200                 <para> <literal>-h|--help</literal></para>
1201               </entry>
1202               <entry>
1203                 <para> Causes lshowmount to print out a usage message.</para>
1204               </entry>
1205             </row>
1206             <row>
1207               <entry>
1208                 <para> <literal>-l|--lookup</literal></para>
1209               </entry>
1210               <entry>
1211                 <para> Causes lshowmount to try to look up the hostname for NIDs that look like IP addresses.</para>
1212               </entry>
1213             </row>
1214             <row>
1215               <entry>
1216                 <para> <literal>-v|--verbose</literal></para>
1217               </entry>
1218               <entry>
1219                 <para> Causes lshowmount to output export information for each service instead of only displaying the aggregate information for all Lustre services on the server.</para>
1220               </entry>
1221             </row>
1222           </tbody>
1223         </tgroup>
1224       </informaltable>
1225     </section>
1226     <section remap="h5">
1227       <title>Files</title>
1228       <screen>/proc/fs/lustre/mgs/<replaceable>server</replaceable>/exports/<replaceable>uuid</replaceable>/nid
1229 /proc/fs/lustre/mds/<replaceable>server</replaceable>/exports/<replaceable>uuid</replaceable>/nid
1230 /proc/fs/lustre/obdfilter/<replaceable>server</replaceable>/exports/<replaceable>uuid</replaceable>/nid</screen>
1231     </section>
1232   </section>
1233   <section xml:id="dbdoclet.50438219_90218">
1234     <title><indexterm><primary>lst</primary></indexterm>
1235 lst</title>
1236     <para>The lst utility starts LNet self-test.</para>
1237     <section remap="h5">
1238       <title>Synopsis</title>
1239       <screen>lst</screen>
1240     </section>
1241     <section remap="h5">
1242       <title>Description</title>
1243       <para>LNet self-test helps site administrators confirm that Lustre Networking (LNet) has been properly installed and configured. The self-test also confirms that LNet and the network software and hardware underlying it are performing as expected.</para>
1244       <para>Each LNet self-test runs in the context of a session. A node can be associated with only one session at a time, to ensure that the session has exclusive use of the nodes on which it is running. A session is create, controlled and monitored from a single node; this is referred to as the self-test console.</para>
1245       <para>Any node may act as the self-test console. Nodes are named and allocated to a self-test session in groups. This allows all nodes in a group to be referenced by a single name.</para>
1246       <para>Test configurations are built by describing and running test batches. A test batch is a named collection of tests, with each test composed of a number of individual point-to-point tests running in parallel. These individual point-to-point tests are instantiated according to the test type, source group, target group and distribution specified when the test is added to the test batch.</para>
1247     </section>
1248     <section remap="h5">
1249       <title>Modules</title>
1250       <para>To run LNet self-test, load these modules: libcfs, lnet, lnet_selftest and any one of the klnds (ksocklnd, ko2iblnd...). To load all necessary modules, run modprobe lnet_selftest, which recursively loads the modules on which lnet_selftest depends.</para>
1251       <para>There are two types of nodes for LNet self-test: the console node and test nodes. Both node types require all previously-specified modules to be loaded. (The userspace test node does not require these modules).</para>
1252       <para>Test nodes can be in either kernel or in userspace. A console user can invite a kernel test node to join the test session by running lst add_group NID, but the user cannot actively add a userspace test node to the test session. However, the console user can passively accept a test node to the test session while the test node runs lst client to connect to the console.</para>
1253     </section>
1254     <section remap="h5">
1255       <title>Utilities</title>
1256       <para>LNet self-test includes two user utilities, lst and lstclient.</para>
1257       <para>lst is the user interface for the self-test console (run on the console node). It provides a list of commands to control the entire test system, such as create session, create test groups, etc.</para>
1258       <para>lstclient is the userspace self-test program which is linked with userspace LNDs and LNet. A user can invoke lstclient to join a self-test session:</para>
1259       <screen>lstclient -sesid CONSOLE_NID group NAME</screen>
1260     </section>
1261     <section remap="h5">
1262       <title>Example Script</title>
1263       <para>This is a sample LNet self-test script which simulates the traffic pattern of a set of Lustre servers on a TCP network, accessed by Lustre clients on an IB network (connected via LNet routers), with half the clients reading and half the clients writing.</para>
1264       <screen>#!/bin/bash
1265 export LST_SESSION=$$
1266 lst new_session read/write
1267 lst add_group servers 192.168.10.[8,10,12-16]@tcp
1268 lst add_group readers 192.168.1.[1-253/2]@o2ib
1269 lst add_group writers 192.168.1.[2-254/2]@o2ib
1270 lst add_batch bulk_rw
1271 lst add_test --batch bulk_rw --from readers --to servers     brw read check\
1272 =simple size=1M
1273 lst add_test --batch bulk_rw --from writers --to servers     brw write chec\
1274 k=full size=4K
1275 # start running
1276 lst run bulk_rw
1277 # display server stats for 30 seconds
1278 lst stat servers &amp; sleep 30; kill $!
1279 # tear down
1280 lst end_session </screen>
1281     </section>
1282   </section>
1283   <section xml:id="dbdoclet.50438219_54734">
1284     <title><indexterm><primary>lustre_rmmod.sh</primary></indexterm>
1285 lustre_rmmod.sh</title>
1286     <para>The lustre_rmmod.sh utility removes all Lustre and LNet modules (assuming no Lustre services are running). It is located in /usr/bin.</para>
1287     <note>
1288       <para>The lustre_rmmod.sh utility does not work if Lustre modules are being used or if you have manually run the lctl network up command.</para>
1289     </note>
1290   </section>
1291   <section xml:id="dbdoclet.50438219_63667">
1292     <title><indexterm><primary>lustre_rsync</primary></indexterm>
1293 lustre_rsync</title>
1294     <para>The lustre_rsync utility synchronizes (replicates) a Lustre file system to a target file system.</para>
1295     <section remap="h5">
1296       <title>Synopsis</title>
1297       <screen>lustre_rsync --source|-s <replaceable>src</replaceable> --target|-t <replaceable>tgt</replaceable> 
1298    --mdt|-m <replaceable>mdt</replaceable> [--user|-u <replaceable>userid</replaceable>]
1299    [--xattr|-x <replaceable>yes|no</replaceable>] [--verbose|-v]
1300    [--statuslog|-l <replaceable>log</replaceable>] [--dry-run] [--abort-on-err] 
1301  
1302 lustre_rsync --statuslog|-l <replaceable>log</replaceable>
1303  
1304 lustre_rsync --statuslog|-l <replaceable>log</replaceable> --source|-s <replaceable>source</replaceable>
1305    --target|-t <replaceable>tgt</replaceable> --mdt|-m <replaceable>mdt</replaceable></screen>
1306     </section>
1307     <section remap="h5">
1308       <title>Description</title>
1309       <para>The lustre_rsync utility is designed to synchronize (replicate) a Lustre file system (source) to another file system (target). The target can be a Lustre file system or any other type, and is a normal, usable file system. The synchronization operation is efficient and does not require directory walking, as lustre_rsync uses Lustre MDT changelogs to identify changes in the Lustre file system.</para>
1310       <para>Before using lustre_rsync:</para>
1311       <itemizedlist>
1312         <listitem>
1313           <para>A changelog user must be registered (see lctl (8) changelog_register)</para>
1314         </listitem>
1315       </itemizedlist>
1316       <para>- AND -</para>
1317       <itemizedlist>
1318         <listitem>
1319           <para>Verify that the Lustre file system (source) and the replica file system (target) are identical before the changelog user is registered. If the file systems are discrepant, use a utility, e.g. regular rsync (not lustre_rsync) to make them identical.</para>
1320         </listitem>
1321       </itemizedlist>
1322     </section>
1323     <section remap="h5">
1324       <title>Options</title>
1325       <informaltable frame="all">
1326         <tgroup cols="2">
1327           <colspec colname="c1" colwidth="50*"/>
1328           <colspec colname="c2" colwidth="50*"/>
1329           <thead>
1330             <row>
1331               <entry>
1332                 <para><emphasis role="bold">Option</emphasis></para>
1333               </entry>
1334               <entry>
1335                 <para><emphasis role="bold">Description</emphasis></para>
1336               </entry>
1337             </row>
1338           </thead>
1339           <tbody>
1340             <row>
1341               <entry>
1342                 <para> <literal>--source=<replaceable>src</replaceable></literal></para>
1343               </entry>
1344               <entry>
1345                 <para> The path to the root of the Lustre file system (source) which will be synchronized. This is a mandatory option if a valid status log created during a previous synchronization operation (--statuslog) is not specified.</para>
1346               </entry>
1347             </row>
1348             <row>
1349               <entry>
1350                 <para> <literal>--target=<replaceable>tgt</replaceable></literal></para>
1351               </entry>
1352               <entry>
1353                 <para> The path to the root where the source file system will be synchronized (target). This is a mandatory option if the status log created during a previous synchronization operation (--statuslog) is not specified. This option can be repeated if multiple synchronization targets are desired.</para>
1354               </entry>
1355             </row>
1356             <row>
1357               <entry>
1358                 <para> <literal>--mdt=<replaceable>mdt</replaceable></literal></para>
1359               </entry>
1360               <entry>
1361                 <para> The metadata device to be synchronized. A changelog user must be registered for this device. This is a mandatory option if a valid status log created during a previous synchronization operation (--statuslog) is not specified.</para>
1362               </entry>
1363             </row>
1364             <row>
1365               <entry>
1366                 <para> <literal>--user=<replaceable>userid</replaceable></literal></para>
1367               </entry>
1368               <entry>
1369                 <para> The changelog user ID for the specified MDT. To use lustre_rsync, the changelog user must be registered. For details, see the changelog_register parameter in the lctl man page. This is a mandatory option if a valid status log created during a previous synchronization operation (--statuslog) is not specified.</para>
1370               </entry>
1371             </row>
1372             <row>
1373               <entry>
1374                 <para> <literal>--statuslog=<replaceable>log</replaceable></literal></para>
1375               </entry>
1376               <entry>
1377                 <para> A log file to which synchronization status is saved. When lustre_rsync starts, the state of a previous replication is read from here. If the status log from a previous synchronization operation is specified, otherwise mandatory options like --source, --target and --mdt options may be skipped. By specifying options like --source, --target and/or --mdt in addition to the --statuslog option, parameters in the status log can be overridden. Command line options take precedence over options in the status log.</para>
1378               </entry>
1379             </row>
1380             <row>
1381               <entry>
1382                 <para> <literal>--xattr<replaceable>yes|no</replaceable></literal></para>
1383               </entry>
1384               <entry>
1385                 <para> Specifies whether extended attributes (xattrs) are synchronized or not. The default is to synchronize extended attributes.</para>
1386                 <para>NOTE: Disabling xattrs causes Lustre striping information not to be synchronized.</para>
1387               </entry>
1388             </row>
1389             <row>
1390               <entry>
1391                 <para> <literal>--verbose</literal></para>
1392               </entry>
1393               <entry>
1394                 <para> Produces a verbose output.</para>
1395               </entry>
1396             </row>
1397             <row>
1398               <entry>
1399                 <para> <literal>--dry-run</literal></para>
1400               </entry>
1401               <entry>
1402                 <para> Shows the output of lustre_rsync commands (copy, mkdir, etc.) on the target file system without actually executing them.</para>
1403               </entry>
1404             </row>
1405             <row>
1406               <entry>
1407                 <para> <literal>--abort-on-err</literal></para>
1408               </entry>
1409               <entry>
1410                 <para> Shows the output of lustre_rsync commands (copy, mkdir, etc.) on the target file system without actually executing them.</para>
1411               </entry>
1412             </row>
1413           </tbody>
1414         </tgroup>
1415       </informaltable>
1416     </section>
1417     <section remap="h5">
1418       <title>Examples</title>
1419       <para>Register a changelog user for an MDT (e.g., MDT lustre-MDT0000).</para>
1420       <screen>$ ssh 
1421 $ MDS lctl changelog_register \
1422            --device lustre-MDT0000 -n 
1423 cl1</screen>
1424       <para>Synchronize/replicate a Lustre file system (/mnt/lustre) to a target file system (/mnt/target).</para>
1425       <screen>$ lustre_rsync --source=/mnt/lustre --target=/mnt/target \ 
1426            --mdt=lustre-MDT0000 --user=cl1 \ 
1427            --statuslog replicate.log  --verbose 
1428 Lustre filesystem: lustre 
1429 MDT device: lustre-MDT0000 
1430 Source: /mnt/lustre 
1431 Target: /mnt/target 
1432 Statuslog: sync.log 
1433 Changelog registration: cl1 
1434 Starting changelog record: 0 
1435 Errors: 0 
1436 lustre_rsync took 1 seconds 
1437 Changelog records consumed: 22
1438 </screen>
1439       <para>After the file system undergoes changes, synchronize the changes with the target file system. Only the statuslog name needs to be specified, as it has all the parameters passed earlier.</para>
1440       <screen>$ lustre_rsync --statuslog replicate.log --verbose 
1441 Replicating Lustre filesystem: lustre 
1442 MDT device: lustre-MDT0000 
1443 Source: /mnt/lustre 
1444 Target: /mnt/target 
1445 Statuslog: replicate.log 
1446 Changelog registration: cl1 
1447 Starting changelog record: 22 
1448 Errors: 0 
1449 lustre_rsync took 2 seconds 
1450 Changelog records consumed: 42</screen>
1451       <para>Synchronize a Lustre file system (/mnt/lustre) to two target file systems (/mnt/target1 and /mnt/target2).</para>
1452       <screen>$ lustre_rsync --source=/mnt/lustre \ 
1453    --target=/mnt/target1 --target=/mnt/target2 \ 
1454    --mdt=lustre-MDT0000 --user=cl1 
1455    --statuslog replicate.log</screen>
1456     </section>
1457     <section remap="h5">
1458       <title>See Also</title>
1459       <para><xref linkend="dbdoclet.50438206_94597"/></para>
1460     </section>
1461   </section>
1462   <section xml:id="dbdoclet.50438219_75432">
1463     <title><indexterm><primary>mkfs.lustre</primary></indexterm>
1464 mkfs.lustre</title>
1465     <para>The <literal>mkfs.lustre</literal> utility formats a disk for a Lustre service.</para>
1466     <section remap="h5">
1467       <title>Synopsis</title>
1468       <screen>mkfs.lustre <replaceable>target_type</replaceable> [options] <replaceable>device</replaceable></screen>
1469       <para>where <replaceable>target_type</replaceable> is one of the following:</para>
1470       <informaltable frame="all">
1471         <tgroup cols="2">
1472           <colspec colname="c1" colwidth="50*"/>
1473           <colspec colname="c2" colwidth="50*"/>
1474           <thead>
1475             <row>
1476               <entry>
1477                 <para><emphasis role="bold">Option</emphasis></para>
1478               </entry>
1479               <entry>
1480                 <para><emphasis role="bold">Description</emphasis></para>
1481               </entry>
1482             </row>
1483           </thead>
1484           <tbody>
1485             <row>
1486               <entry>
1487                 <para> <literal>--ost</literal></para>
1488               </entry>
1489               <entry>
1490                 <para> Object storage target (OST)</para>
1491               </entry>
1492             </row>
1493             <row>
1494               <entry>
1495                 <para> <literal>--mdt</literal></para>
1496               </entry>
1497               <entry>
1498                 <para> Metadata storage target (MDT)</para>
1499               </entry>
1500             </row>
1501             <row>
1502               <entry>
1503                 <para> <literal>--network=<replaceable>net,...</replaceable></literal></para>
1504               </entry>
1505               <entry>
1506                 <para> Network(s) to which to restrict this OST/MDT. This option can be repeated as necessary.</para>
1507               </entry>
1508             </row>
1509             <row>
1510               <entry>
1511                 <para> <literal>--mgs</literal></para>
1512               </entry>
1513               <entry>
1514                 <para> Configuration management service (MGS), one per site. This service can be
1515                   combined with one <literal>--mdt</literal> service by specifying both
1516                   types.</para>
1517               </entry>
1518             </row>
1519           </tbody>
1520         </tgroup>
1521       </informaltable>
1522     </section>
1523     <section remap="h5">
1524       <title>Description</title>
1525       <para><literal>mkfs.lustre</literal> is used to format a disk device for use as part of a
1526         Lustre file system. After formatting, a disk can be mounted to start the Lustre service
1527         defined by this command.</para>
1528       <para>When the file system is created, parameters can simply be added as a
1529           <literal>--param</literal> option to the <literal>mkfs.lustre</literal> command. See <xref
1530           linkend="dbdoclet.50438194_17237"/>.</para>
1531       <informaltable frame="all">
1532         <tgroup cols="3">
1533           <colspec colname="c1" colwidth="1*"/>
1534           <colspec colname="c2" colwidth="1*"/>
1535           <colspec colname="c3" colwidth="3*"/>
1536           <thead>
1537             <row>
1538               <entry nameend="c2" namest="c1">
1539                 <para><emphasis role="bold">Option</emphasis></para>
1540               </entry>
1541               <entry>
1542                 <para><emphasis role="bold">Description</emphasis></para>
1543               </entry>
1544             </row>
1545           </thead>
1546           <tbody>
1547             <row>
1548               <entry nameend="c2" namest="c1">
1549                 <para> <literal>--backfstype=<replaceable>fstype</replaceable></literal></para>
1550               </entry>
1551               <entry>
1552                 <para> Forces a particular format for the backing file system such as ldiskfs (the default) or zfs.</para>
1553               </entry>
1554             </row>
1555             <row>
1556               <entry nameend="c2" namest="c1">
1557                 <para> <literal>--comment=<replaceable>comment</replaceable></literal></para>
1558               </entry>
1559               <entry>
1560                 <para> Sets a user comment about this disk, ignored by the Lustre software.</para>
1561               </entry>
1562             </row>
1563             <row>
1564               <entry nameend="c2" namest="c1">
1565                 <para> <literal>--device-size=<replaceable>#</replaceable>>KB</literal></para>
1566               </entry>
1567               <entry>
1568                 <para>Sets the device size for loop devices.</para>
1569               </entry>
1570             </row>
1571             <row>
1572               <entry nameend="c2" namest="c1">
1573                 <para> <literal>--dryrun</literal></para>
1574               </entry>
1575               <entry>
1576                 <para>Only prints what would be done; it does not affect the disk.</para>
1577               </entry>
1578             </row>
1579             <row>
1580               <entry nameend="c2" namest="c1"
1581                     ><literal>--servicenode=<replaceable>nid,...</replaceable></literal></entry>
1582               <entry>Sets the NID(s) of all service nodes, including primary and failover partner
1583                 service nodes. The <literal>--servicenode</literal> option cannot be used with
1584                   <literal>--failnode</literal> option. See <xref
1585                   xmlns:xlink="http://www.w3.org/1999/xlink" linkend="dbdoclet.50438188_92688"/> for
1586                 more details.</entry>
1587             </row>
1588             <row>
1589               <entry nameend="c2" namest="c1">
1590                 <para> <literal>--failnode=<replaceable>nid,...</replaceable></literal></para>
1591               </entry>
1592               <entry>
1593                 <para>Sets the NID(s) of a failover service node for a primary server for a target.
1594                   The <literal>--failnode</literal> option cannot be used with
1595                     <literal>--servicenode</literal> option. See <xref
1596                     xmlns:xlink="http://www.w3.org/1999/xlink" linkend="dbdoclet.50438188_92688"/>
1597                   for more details.<note>
1598                     <para>When the <literal>--failnode</literal> option is used, certain
1599                       restrictions apply (see <xref xmlns:xlink="http://www.w3.org/1999/xlink"
1600                         linkend="dbdoclet.50438188_92688"/>).</para>
1601                   </note></para>
1602               </entry>
1603             </row>
1604             <row>
1605               <entry nameend="c2" namest="c1">
1606                 <para> <literal>--fsname=<replaceable>filesystem_name</replaceable></literal></para>
1607               </entry>
1608               <entry>
1609                 <para> The Lustre file system of which this service/node will be a part. The default
1610                   file system name is <literal>lustre</literal>.</para>
1611                 <para>&#160;</para>
1612                 <note>
1613                   <para>The file system name is limited to 8 characters.</para>
1614                 </note>
1615               </entry>
1616             </row>
1617             <row>
1618               <entry nameend="c2" namest="c1">
1619                 <para>
1620                   <literal>--index=<replaceable>index_number</replaceable></literal></para>
1621               </entry>
1622               <entry>
1623                 <para>Specifies the OST or MDT number (0...N). This allows mapping between the OSS
1624                   and MDS node and the device on which the OST or MDT is located.</para>
1625               </entry>
1626             </row>
1627             <row>
1628               <entry nameend="c2" namest="c1">
1629                 <para> <literal>--mkfsoptions=<replaceable>opts</replaceable></literal></para>
1630               </entry>
1631               <entry>
1632                 <para>  Formats options for the backing file system. For example, ext3 options could be set here.</para>
1633               </entry>
1634             </row>
1635             <row>
1636               <entry nameend="c2" namest="c1">
1637                 <para> <literal>--mountfsoptions=<replaceable>opts</replaceable></literal></para>
1638               </entry>
1639               <entry>
1640                 <para>  Sets the mount options used when the backing file system is mounted.</para>
1641                 <warning><para>Unlike earlier versions of <literal>mkfs.lustre</literal>, this version completely replaces
1642                     the default mount options with those specified on the command line, and issues a
1643                     warning on stderr if any default mount options are omitted.</para></warning>
1644                 <para>The defaults for ldiskfs are:</para>
1645                 <para>MGS/MDT: <literal>errors=remount-ro,iopen_nopriv,user_xattr</literal></para>
1646                 <para>OST: <literal>errors=remount-ro,extents,mballoc</literal></para>
1647                 <para condition='l25'>OST: <literal>errors=remount-ro</literal></para>
1648                 <para>Use care when altering the default mount options.</para>
1649               </entry>
1650             </row>
1651             <row>
1652               <entry nameend="c2" namest="c1">
1653                 <para> <literal>--network=<replaceable>net,...</replaceable></literal></para>
1654                 <para>&#160;</para>
1655               </entry>
1656               <entry>
1657                 <para>  Network(s) to which to restrict this OST/MDT. This option can be repeated as necessary.</para>
1658               </entry>
1659             </row>
1660             <row>
1661               <entry nameend="c2" namest="c1">
1662                 <para> <literal>--mgsnode=<replaceable>nid,...</replaceable></literal></para>
1663               </entry>
1664               <entry>
1665                 <para> Sets the NIDs of the MGS node, required for all targets other than the MGS.</para>
1666               </entry>
1667             </row>
1668             <row>
1669               <entry nameend="c2" namest="c1">
1670                 <para> <literal>--param <replaceable>key</replaceable>=<replaceable>value</replaceable></literal></para>
1671               </entry>
1672               <entry>
1673                 <para> Sets the permanent parameter <replaceable>key</replaceable> to value <replaceable>value</replaceable>. This option can be repeated as necessary. Typical options might include:</para>
1674               </entry>
1675             </row>
1676             <row>
1677               <entry>
1678                 <para> &#160;</para>
1679               </entry>
1680               <entry>
1681                 <para> <literal>--param sys.timeout=40</literal>></para>
1682               </entry>
1683               <entry>
1684                 <para> System obd timeout.</para>
1685               </entry>
1686             </row>
1687             <row>
1688               <entry>
1689                 <para> &#160;</para>
1690               </entry>
1691               <entry>
1692                 <para> <literal>--param lov.stripesize=2M</literal></para>
1693               </entry>
1694               <entry>
1695                 <para> Default stripe size.</para>
1696               </entry>
1697             </row>
1698             <row>
1699               <entry>
1700                 <para> &#160;</para>
1701               </entry>
1702               <entry>
1703                 <para> <literal>param lov.stripecount=2</literal></para>
1704               </entry>
1705               <entry>
1706                 <para> Default stripe count.</para>
1707               </entry>
1708             </row>
1709             <row>
1710               <entry>
1711                 <para> &#160;</para>
1712               </entry>
1713               <entry>
1714                 <para> <literal>--param failover.mode=failout</literal></para>
1715               </entry>
1716               <entry>
1717                 <para> Returns errors instead of waiting for recovery.</para>
1718               </entry>
1719             </row>
1720             <row>
1721               <entry nameend="c2" namest="c1">
1722                 <para> <literal>--quiet</literal></para>
1723               </entry>
1724               <entry>
1725                 <para> Prints less information.</para>
1726               </entry>
1727             </row>
1728             <row>
1729               <entry nameend="c2" namest="c1">
1730                 <para> <literal>--reformat</literal></para>
1731               </entry>
1732               <entry>
1733                 <para> Reformats an existing Lustre disk.</para>
1734               </entry>
1735             </row>
1736             <row>
1737               <entry nameend="c2" namest="c1">
1738                 <para> <literal>--stripe-count-hint=stripes</literal></para>
1739               </entry>
1740               <entry>
1741                 <para> Used to optimize the MDT&apos;s inode size.</para>
1742               </entry>
1743             </row>
1744             <row>
1745               <entry nameend="c2" namest="c1">
1746                 <para> <literal>--verbose</literal></para>
1747               </entry>
1748               <entry>
1749                 <para> Prints more information.</para>
1750               </entry>
1751             </row>
1752           </tbody>
1753         </tgroup>
1754       </informaltable>
1755     </section>
1756     <section remap="h5">
1757       <title>Examples</title>
1758       <para>Creates a combined MGS and MDT for file system <literal>testfs</literal> on, e.g., node <literal>cfs21</literal>:</para>
1759       <screen>mkfs.lustre --fsname=testfs --mdt --mgs /dev/sda1</screen>
1760       <para>Creates an OST for file system <literal>testfs</literal> on any node (using the above
1761         MGS):</para>
1762       <screen>mkfs.lustre --fsname=testfs --mgsnode=cfs21@tcp0 --ost --index=0 /dev/sdb</screen>
1763       <para>Creates a standalone MGS on, e.g., node <literal>cfs22</literal>:</para>
1764       <screen>mkfs.lustre --mgs /dev/sda1</screen>
1765       <para>Creates an MDT for file system <literal>myfs1</literal> on any node (using the above MGS):</para>
1766       <screen>mkfs.lustre --fsname=myfs1 --mdt --mgsnode=cfs22@tcp0 /dev/sda2</screen>
1767     </section>
1768     <section remap="h5">
1769       <title>See Also</title>
1770       <itemizedlist>
1771         <listitem>
1772           <para><xref linkend="dbdoclet.50438219_75432"/>mkfs.lustre, </para>
1773         </listitem>
1774         <listitem>
1775           <para><xref linkend="dbdoclet.50438219_12635"/>mount.lustre, </para>
1776         </listitem>
1777         <listitem>
1778           <para><xref linkend="dbdoclet.50438206_94597"/>lfs</para>
1779         </listitem>
1780       </itemizedlist>
1781     </section>
1782   </section>
1783   <section xml:id="dbdoclet.50438219_12635">
1784     <title><indexterm><primary>mount.lustre</primary></indexterm>
1785 mount.lustre</title>
1786     <para>The mount.lustre utility starts a Lustre client or target service.</para>
1787     <section remap="h5">
1788       <title>Synopsis</title>
1789       <screen>mount -t lustre [-o options] device mountpoint
1790 </screen>
1791     </section>
1792     <section remap="h5">
1793       <title>Description</title>
1794       <para>The mount.lustre utility starts a Lustre client or target service. This program should not be called directly; rather, it is a helper program invoked through mount(8), as shown above. Use the umount command to stop Lustre clients and targets.</para>
1795       <para>There are two forms for the device option, depending on whether a client or a target service is started:</para>
1796       <informaltable frame="all">
1797         <tgroup cols="2">
1798           <colspec colname="c1" colwidth="50*"/>
1799           <colspec colname="c2" colwidth="50*"/>
1800           <thead>
1801             <row>
1802               <entry>
1803                 <para><emphasis role="bold">Option</emphasis></para>
1804               </entry>
1805               <entry>
1806                 <para><emphasis role="bold">Description</emphasis></para>
1807               </entry>
1808             </row>
1809           </thead>
1810           <tbody>
1811             <row>
1812               <entry>
1813                 <para> <literal><replaceable>mgsname</replaceable>:/<replaceable>fsname</replaceable><replaceable>[/subdir]</replaceable></literal></para>
1814               </entry>
1815               <entry>
1816               <para> Mounts the Lustre file system named
1817               <replaceable>fsname</replaceable> (optionally starting at
1818               subdirectory <replaceable>subdir</replaceable> within the
1819               filesystem, if specified) on the client at the directory
1820               <replaceable>mountpoint</replaceable>, by contacting the Lustre
1821               Management Service at <replaceable>mgsname</replaceable>.  The
1822               format for <replaceable>mgsname</replaceable> is defined below. A
1823               client file system can be listed in <literal>fstab(5)</literal>
1824               for automatic mount at boot time, is usable like any local file
1825               system, and provides a full POSIX standard-compliant interface.
1826               </para>
1827               </entry>
1828             </row>
1829             <row>
1830               <entry>
1831                 <para> <replaceable>block_device</replaceable></para>
1832               </entry>
1833               <entry>
1834                 <para> Starts the target service defined by the
1835                 <literal>mkfs.lustre(8)</literal> command on the physical disk
1836                 <replaceable>block_device</replaceable>.  The
1837                 <replaceable>block_device</replaceable> may be specified using
1838                 <literal>-L <replaceable>label</replaceable></literal> to find
1839                 the first block device with that label (e.g.
1840                 <literal>testfs-MDT0000</literal>), or by UUID using the
1841                 <literal>-U <replaceable>uuid</replaceable></literal> option.
1842                 Care should be taken if there is a device-level backup of the
1843                 target filesystem on the same node, which would have a
1844                 duplicate label and UUID if it has not been changed with
1845                 <literal>tune2fs(8)</literal> or similar.  The mounted target
1846                 service filesystem mounted at
1847                 <replaceable>mountpoint</replaceable> is only useful for
1848                 <literal>df(1)</literal> operations and appears in
1849                 <literal>/proc/mounts</literal> to show the device is in use.
1850                 </para>
1851               </entry>
1852             </row>
1853           </tbody>
1854         </tgroup>
1855       </informaltable>
1856     </section>
1857     <section remap="h5">
1858       <title>Options</title>
1859       <informaltable frame="all">
1860         <tgroup cols="2">
1861           <colspec colname="c1" colwidth="50*"/>
1862           <colspec colname="c2" colwidth="50*"/>
1863           <thead>
1864             <row>
1865               <entry>
1866                 <para><emphasis role="bold">Option</emphasis></para>
1867               </entry>
1868               <entry>
1869                 <para><emphasis role="bold">Description</emphasis></para>
1870               </entry>
1871             </row>
1872           </thead>
1873           <tbody>
1874             <row>
1875               <entry>
1876                 <para> <literal>mgsname=<replaceable>mgsnode</replaceable>[:<replaceable>mgsnode</replaceable>]</literal></para>
1877               </entry>
1878               <entry>
1879                 <para><replaceable>mgsname</replaceable> is a colon-separated
1880                 list of <replaceable>mgsnode</replaceable> names where the MGS
1881                 service may run.  Multiple <replaceable>mgsnode</replaceable>
1882                 values can be specified if the MGS service is configured for
1883                 HA failover and may be running on any one of the nodes.
1884                 </para>
1885               </entry>
1886             </row>
1887             <row>
1888               <entry>
1889                 <para> <literal>mgsnode=<replaceable>mgsnid</replaceable>[,<replaceable>mgsnid</replaceable>]</literal></para>
1890               </entry>
1891               <entry>
1892                 <para> Each <replaceable>mgsnode</replaceable> may specify a
1893                 comma-separated list of NIDs, if there are different LNet
1894                 interfaces for that <literal>mgsnode</literal>.
1895                 </para>
1896               </entry>
1897             </row>
1898             <row>
1899               <entry>
1900                 <para> <literal>mgssec=<replaceable>flavor</replaceable></literal></para>
1901               </entry>
1902               <entry>
1903                 <para>Specifies the encryption flavor for the initial network
1904                 RPC connection to the MGS.  Non-security flavors are:
1905                 <literal>null</literal>, <literal>plain</literal>, and
1906                 <literal>gssnull</literal>, which respectively disable, or
1907                 have no encryption or integrity features for testing purposes.
1908                 Kerberos flavors are: <literal>krb5n</literal>,
1909                 <literal>krb5a</literal>, <literal>krb5i</literal>, and
1910                 <literal>krb5p</literal>.  Shared-secret key flavors are:
1911                 <literal>skn</literal>, <literal>ska</literal>,
1912                 <literal>ski</literal>, and <literal>skpi</literal>, see the
1913                 <xref linkend="lustressk"/> for more details.  The security
1914                 flavor for client-to-server connections is specified in the
1915                 filesystem configuration that the client fetches from the MGS.
1916                 </para>
1917               </entry>
1918             </row>
1919             <row>
1920               <entry>
1921                 <para> <literal>skpath=<replaceable>file|directory</replaceable></literal></para>
1922               </entry>
1923               <entry>
1924                 <para condition='l29'>
1925                 Path to a file or directory with the keyfile(s) to load for
1926                 this mount command.  Keys are inserted into the
1927                 <literal>KEY_SPEC_SESSION_KEYRING</literal> keyring in the
1928                 kernel with a description containing
1929                 <literal>lustre:</literal> and a suffix which depends on
1930                 whether the context of the mount command is for an MGS,
1931                 MDT/OST, or client.
1932                 </para>
1933               </entry>
1934             </row>
1935             <row>
1936               <entry>
1937                 <para> <literal>exclude=<replaceable>ostlist</replaceable></literal></para>
1938               </entry>
1939               <entry>
1940                 <para>Starts a client or MDT with a colon-separated list of
1941                 known inactive OSTs that it will not try to connect to.</para>
1942               </entry>
1943             </row>
1944           </tbody>
1945         </tgroup>
1946       </informaltable>
1947       <para>In addition to the standard mount(8) options, Lustre understands
1948       the following client-specific options:</para>
1949       <informaltable frame="all">
1950         <tgroup cols="2">
1951           <colspec colname="c1" colwidth="50*"/>
1952           <colspec colname="c2" colwidth="50*"/>
1953           <thead>
1954             <row>
1955               <entry>
1956                 <para><emphasis role="bold">Option</emphasis></para>
1957               </entry>
1958               <entry>
1959                 <para><emphasis role="bold">Description</emphasis></para>
1960               </entry>
1961             </row>
1962           </thead>
1963           <tbody>
1964             <row>
1965               <entry>
1966                 <para><literal>always_ping</literal></para>
1967               </entry>
1968               <entry>
1969                 <para condition='l29'>The client will periodically ping the server when it is
1970                 idle, even if the server <literal>ptlrpc</literal> module
1971                 is configured with the <literal>suppress_pings</literal>
1972                 option.  This allows clients to reliably use the filesystem
1973                 even if they are not part of an external client health
1974                 monitoring mechanism.
1975                 </para>
1976               </entry>
1977             </row>
1978             <row>
1979               <entry>
1980                 <para> <literal>flock</literal></para>
1981               </entry>
1982               <entry>
1983                 <para>Enables advisory file locking support between
1984                 participating applications using the <literal>flock(2)</literal>
1985                 system call.  This causes file locking to be coherent across all
1986                 client nodes also using this mount option.  This is useful if
1987                 applications need coherent userspace file locking across
1988                 multiple client nodes, but also imposes communications overhead
1989                 in order to maintain locking consistency between client nodes.
1990                 </para>
1991               </entry>
1992             </row>
1993             <row>
1994               <entry>
1995                 <para> <literal>localflock</literal></para>
1996               </entry>
1997               <entry>
1998                 <para>Enables client-local <literal>flock(2)</literal> support,
1999                 using only client-local advisory file locking.  This is faster
2000                 than using the global <literal>flock</literal> option, and can
2001                 be used for applications that depend on functioning
2002                 <literal>flock(2)</literal> but run only on a single node.
2003                 It has minimal overhead using only the Linux kernel's locks.
2004                 </para>
2005               </entry>
2006             </row>
2007             <row>
2008               <entry>
2009                 <para> <literal>noflock</literal></para>
2010               </entry>
2011               <entry>
2012                 <para>Disables <literal>flock(2)</literal> support entirely,
2013                 and is the default option. Applications calling
2014                 <literal>flock(2)</literal> get an
2015                 <literal>ENOSYS</literal> error. It is up to the administrator
2016                 to choose either the <literal>localflock</literal> or
2017                 <literal>flock</literal> mount option based on their
2018                 requirements.  It is possible to mount clients with different
2019                 options, and only those mounted with <literal>flock</literal>
2020                 will be coherent amongst each other.
2021                 </para>
2022               </entry>
2023             </row>
2024             <row>
2025               <entry>
2026                 <para> <literal>lazystatfs</literal></para>
2027               </entry>
2028               <entry>
2029                 <para>Allows <literal>statfs(2)</literal> (as used by
2030                 <literal>df(1)</literal> and <literal>lfs-df(1)</literal>) to
2031                 return even if some OST or MDT is unresponsive or has been
2032                 temporarily or permanently disabled in the configuration.
2033                 This avoids blocking until all of the targets are available.
2034                 This is the default behavior since Lustre 2.9.0.
2035                 </para>
2036               </entry>
2037             </row>
2038             <row>
2039               <entry>
2040                 <para> <literal>nolazystatfs</literal></para>
2041               </entry>
2042               <entry>
2043                 <para>Requires that <literal>statfs(2)</literal> block until all
2044                 OSTs and MDTs are available and have returned space usage.
2045                 </para>
2046               </entry>
2047             </row>
2048             <row>
2049               <entry>
2050                 <para> <literal>user_xattr</literal></para>
2051               </entry>
2052               <entry>
2053                 <para>Enables get/set of extended attributes by regular users
2054                 in the <literal>user.*</literal> namespace. See the
2055                 <literal>attr(5)</literal> manual page for more details.
2056                 </para>
2057               </entry>
2058             </row>
2059             <row>
2060               <entry>
2061                 <para> <literal>nouser_xattr</literal></para>
2062               </entry>
2063               <entry>
2064                 <para>Disables use of extended attributes in the
2065                 <literal>user.*</literal> namespace by regular users. Root
2066                 and system processes can still use extended attributes.</para>
2067               </entry>
2068             </row>
2069             <row>
2070               <entry>
2071                 <para> <literal>verbose</literal></para>
2072               </entry>
2073               <entry>
2074                 <para> Enable extra mount/umount console messages.</para>
2075               </entry>
2076             </row>
2077             <row>
2078               <entry>
2079                 <para> <literal>noverbose</literal></para>
2080               </entry>
2081               <entry>
2082                 <para> Disable mount/umount console messages.</para>
2083               </entry>
2084             </row>
2085             <row>
2086               <entry>
2087                 <para> <literal>user_fid2path</literal></para>
2088               </entry>
2089               <entry>
2090                 <para>Enable FID-to-path translation by regular users.
2091                 </para>
2092                 <note><para>This option allows a potential security hole because
2093                   it allows regular users direct access to a file by its Lustre
2094                   File ID.  This bypasses POSIX path-based permission checks,
2095                   and could allow the user to access a file in a directory that
2096                   they do not have access to. Regular POSIX file mode and ACL
2097                   permission checks are still performed on the file itself, so
2098                   users cannot access a file to which they have no permission.
2099                 </para></note>
2100               </entry>
2101             </row>
2102             <row>
2103               <entry>
2104                 <para> <literal>nouser_fid2path</literal></para>
2105               </entry>
2106               <entry>
2107                 <para> Disable FID to path translation by
2108                 regular users. Root and processes with
2109                 <literal>CAP_DAC_READ_SEARCH</literal> can still perform FID
2110                 to path translation.
2111                 </para>
2112               </entry>
2113             </row>
2114           </tbody>
2115         </tgroup>
2116       </informaltable>
2117       <para>In addition to the standard mount options and backing disk type
2118       (e.g. ldiskfs) options, Lustre understands the following server-specific
2119       mount options:</para>
2120       <informaltable frame="all">
2121         <tgroup cols="2">
2122           <colspec colname="c1" colwidth="50*"/>
2123           <colspec colname="c2" colwidth="50*"/>
2124           <thead>
2125             <row>
2126               <entry>
2127                 <para><emphasis role="bold">Option</emphasis></para>
2128               </entry>
2129               <entry>
2130                 <para><emphasis role="bold">Description</emphasis></para>
2131               </entry>
2132             </row>
2133           </thead>
2134           <tbody>
2135             <row>
2136               <entry>
2137                 <para> <literal>nosvc</literal></para>
2138               </entry>
2139               <entry>
2140                 <para>  Starts the MGC (and MGS, if co-located) for a target service, not the actual service.</para>
2141               </entry>
2142             </row>
2143             <row>
2144               <entry>
2145                 <para> <literal>nomgs</literal></para>
2146               </entry>
2147               <entry>
2148                 <para>  Starts only the MDT (with a co-located MGS), without starting the MGS.</para>
2149               </entry>
2150             </row>
2151             <row>
2152               <entry>
2153                 <para> <literal>abort_recov</literal></para>
2154               </entry>
2155               <entry>
2156                 <para>  Aborts client recovery on that server and starts the target service immediately.</para>
2157               </entry>
2158             </row>
2159             <row>
2160               <entry>
2161                 <para> <literal>max_sectors_kb=<replaceable>KB</replaceable></literal></para>
2162               </entry>
2163               <entry>
2164                 <para condition='l2A'>Sets the block device parameter
2165                 <literal>max_sectors_kb</literal> limit for the MDT or OST
2166                 target being mounted to specified maximum number of kilobytes.
2167                 When <literal>max_sectors_kb</literal> isn't specified as a
2168                 mount option, it will automatically be set to the
2169                 <literal>max_hw_sectors_kb</literal> (up to a maximum of 16MiB)
2170                 for that block device. This default behavior is suited for
2171                 most users. When <literal>max_sectors_kb=0</literal> is used,
2172                 the current value for this tunable will be kept.
2173                 </para>
2174               </entry>
2175             </row>
2176             <row>
2177               <entry>
2178                 <para> <literal>md_stripe_cache_size</literal></para>
2179               </entry>
2180               <entry>
2181                 <para>  Sets the stripe cache size for server-side disk with a striped RAID configuration.</para>
2182               </entry>
2183             </row>
2184             <row>
2185               <entry>
2186                 <para> <literal>recovery_time_soft=<replaceable>timeout</replaceable></literal></para>
2187               </entry>
2188               <entry>
2189                 <para>Allows <literal>timeout</literal> seconds for clients to
2190                 reconnect for recovery after a server crash. This timeout is
2191                 incrementally extended if it is about to expire and the server
2192                 is still handling new connections from recoverable clients.
2193                 </para>
2194                 <para>The default soft recovery timeout is 3 times the value
2195                 of the Lustre timeout parameter (see
2196                 <xref linkend="section_c24_nt5_dl"/>). The default Lustre
2197                 timeout is 100 seconds, which would make the soft recovery
2198                 timeout default to 300 seconds (5 minutes). The soft recovery
2199                 timeout is set at mount time and will not change if the Lustre
2200                 timeout is changed after mount time.
2201                 </para>
2202               </entry>
2203             </row>
2204             <row>
2205               <entry>
2206                 <para> <literal>recovery_time_hard=<replaceable>timeout</replaceable></literal></para>
2207               </entry>
2208               <entry>
2209                 <para>The server is allowed to incrementally extend its timeout
2210                 up to a hard maximum of <replaceable>timeout</replaceable>
2211                 seconds.
2212                 </para>
2213                 <para>The default hard recovery timeout is 9 times the value
2214                 of the Lustre timeout parameter (see
2215                 <xref linkend="section_c24_nt5_dl"/>). The default Lustre
2216                 timeout is 100 seconds, which would make the hard recovery
2217                 timeout default to 900 seconds (15 minutes). The hard recovery
2218                 timeout is set at mount time and will not change if the Lustre
2219                 timeout is changed after mount time.
2220                 </para>
2221               </entry>
2222             </row>
2223             <row>
2224               <entry>
2225                 <para> <literal>noscrub</literal></para>
2226               </entry>
2227               <entry>
2228                 <para>Typically the MDT will detect restoration from a
2229                 file-level backup during mount. This mount option prevents
2230                 the OI Scrub from starting automatically when the MDT is
2231                 mounted. Manually starting LFSCK after mounting provides finer
2232                 control over the starting conditions. This mount option also
2233                 prevents OI scrub from occurring automatically when OI
2234                 inconsistency is detected (see
2235                 <xref linkend="dbdoclet.lfsck_auto_scrub"/>).
2236                 </para>
2237               </entry>
2238             </row>
2239           </tbody>
2240         </tgroup>
2241       </informaltable>
2242     </section>
2243     <section remap="h5">
2244       <title>Examples</title>
2245       <para>Starts a client for the Lustre file system
2246       <replaceable>chipfs</replaceable> at mount point
2247       <replaceable>/mnt/chip</replaceable>. The Management Service is running on
2248       a node reachable from this client via the cfs21@tcp0 NID.</para>
2249       <screen>mount -t lustre cfs21@tcp0:/chipfs /mnt/chip</screen>
2250       <para condition='l29'>Similar to the above example, but mounting a
2251       subdirectory under <replaceable>chipfs</replaceable> as a fileset.
2252       <screen>mount -t lustre cfs21@tcp0:/chipfs/v1_0 /mnt/chipv1_0</screen>
2253       </para>
2254       <para>Starts the Lustre metadata target service from /dev/sda1 on mount point /mnt/test/mdt.</para>
2255       <screen>mount -t lustre /dev/sda1 /mnt/test/mdt</screen>
2256       <para>Starts the testfs-MDT0000 service (using the disk label), but aborts the recovery process.</para>
2257       <screen>mount -t lustre -L testfs-MDT0000 -o abort_recov /mnt/test/mdt</screen>
2258     </section>
2259     <section remap="h5">
2260       <title>See Also</title>
2261       <itemizedlist>
2262         <listitem>
2263           <para>  <xref linkend="dbdoclet.50438219_75432"/></para>
2264         </listitem>
2265         <listitem>
2266           <para>  <xref linkend="dbdoclet.50438219_39574"/></para>
2267         </listitem>
2268         <listitem>
2269           <para>  <xref linkend="dbdoclet.50438219_38274"/></para>
2270         </listitem>
2271         <listitem>
2272           <para>  <xref linkend="dbdoclet.50438206_94597"/></para>
2273         </listitem>
2274       </itemizedlist>
2275     </section>
2276   </section>
2277   <section xml:id="dbdoclet.50438219_82679">
2278     <title><indexterm><primary>plot-llstat</primary></indexterm>
2279 plot-llstat</title>
2280     <para>The plot-llstat utility plots Lustre statistics.</para>
2281     <section remap="h5">
2282       <title>Synopsis</title>
2283       <screen>plot-llstat results_filename [parameter_index]
2284 </screen>
2285     </section>
2286     <section remap="h5">
2287       <title>Description</title>
2288       <para>The plot-llstat utility generates a CSV file and instruction files for gnuplot from the output of llstat. Since llstat is generic in nature, plot-llstat is also a generic script. The value of parameter_index can be 1 for count per interval, 2 for count per second (default setting) or 3 for total count.</para>
2289       <para>The plot-llstat utility creates a .dat (CSV) file using the number of operations specified by the user. The number of operations equals the number of columns in the CSV file. The values in those columns are equal to the corresponding value of parameter_index in the output file.</para>
2290       <para>The plot-llstat utility also creates a .scr file that contains instructions for gnuplot to plot the graph. After generating the .dat and .scr files, the plot-llstat tool invokes gnuplot to display the graph.</para>
2291     </section>
2292     <section remap="h5">
2293       <title>Options</title>
2294       <informaltable frame="all">
2295         <tgroup cols="2">
2296           <colspec colname="c1" colwidth="50*"/>
2297           <colspec colname="c2" colwidth="50*"/>
2298           <thead>
2299             <row>
2300               <entry>
2301                 <para><emphasis role="bold">Option</emphasis></para>
2302               </entry>
2303               <entry>
2304                 <para><emphasis role="bold">Description</emphasis></para>
2305               </entry>
2306             </row>
2307           </thead>
2308           <tbody>
2309             <row>
2310               <entry>
2311                 <para> <literal>results_filename</literal></para>
2312               </entry>
2313               <entry>
2314                 <para> Output generated by plot-llstat</para>
2315               </entry>
2316             </row>
2317             <row>
2318               <entry>
2319                 <para> <literal>parameter_index</literal></para>
2320                 <para>&#160;</para>
2321               </entry>
2322               <entry>
2323                 <para> Value of parameter_index can be:</para>
2324                 <para> 1 - count per interval</para>
2325                 <para> 2 - count per second (default setting)</para>
2326                 <para> 3 - total count</para>
2327               </entry>
2328             </row>
2329           </tbody>
2330         </tgroup>
2331       </informaltable>
2332     </section>
2333     <section remap="h5">
2334       <title>Example</title>
2335       <screen>llstat -i2 -g -c lustre-OST0000 &gt; log
2336 plot-llstat log 3</screen>
2337     </section>
2338   </section>
2339   <section xml:id="dbdoclet.50438219_51496">
2340     <title><indexterm><primary>routerstat</primary></indexterm>
2341 routerstat</title>
2342     <para>The routerstat utility prints Lustre router statistics.</para>
2343     <section remap="h5">
2344       <title>Synopsis</title>
2345       <screen>routerstat [<replaceable>interval</replaceable>]</screen>
2346     </section>
2347     <section remap="h5">
2348       <title>Description</title>
2349       <para>The routerstat utility displays LNet router statistics. If no <literal><replaceable>interval</replaceable></literal> is specified, then statistics are sampled and printed only one time. Otherwise, statistics are sampled and printed at the specified <literal><replaceable>interval</replaceable></literal> (in seconds).</para>
2350     </section>
2351     <section remap="h5">
2352       <title>Output</title>
2353       <para>The routerstat output includes the following fields:</para>
2354       <informaltable frame="all">
2355         <tgroup cols="2">
2356           <colspec colname="c1" colwidth="50*"/>
2357           <colspec colname="c2" colwidth="50*"/>
2358           <thead>
2359             <row>
2360               <entry>
2361                 <para><emphasis role="bold">Output</emphasis></para>
2362               </entry>
2363               <entry>
2364                 <para><emphasis role="bold">Description</emphasis></para>
2365               </entry>
2366             </row>
2367           </thead>
2368           <tbody>
2369             <row>
2370               <entry>
2371                 <para> <literal>M</literal></para>
2372               </entry>
2373               <entry>
2374                 <para> Number of messages currently being processed by LNet (The maximum number of messages ever processed by LNet concurrently)</para>
2375               </entry>
2376             </row>
2377             <row>
2378               <entry>
2379                 <para> <literal>E</literal></para>
2380               </entry>
2381               <entry>
2382                 <para> Number of LNet errors</para>
2383               </entry>
2384             </row>
2385             <row>
2386               <entry>
2387                 <para> <literal>S</literal></para>
2388               </entry>
2389               <entry>
2390                 <para> Total size (length) of messages sent in bytes/ Number of messages sent</para>
2391               </entry>
2392             </row>
2393             <row>
2394               <entry>
2395                 <para> <literal>R</literal></para>
2396               </entry>
2397               <entry>
2398                 <para> Total size (length) of messages received in bytes/ Number of messages received</para>
2399               </entry>
2400             </row>
2401             <row>
2402               <entry>
2403                 <para> <literal>F</literal></para>
2404               </entry>
2405               <entry>
2406                 <para> Total size (length) of messages routed in bytes/ Number of messages routed</para>
2407               </entry>
2408             </row>
2409             <row>
2410               <entry>
2411                 <para> <literal>D</literal></para>
2412               </entry>
2413               <entry>
2414                 <para> Total size (length) of messages dropped in bytes/ Number of messages dropped</para>
2415               </entry>
2416             </row>
2417           </tbody>
2418         </tgroup>
2419       </informaltable>
2420       <para>When an <literal><replaceable>interval</replaceable></literal> is specified, additional lines of statistics are printed including the following fields:</para>
2421       <informaltable frame="all">
2422         <tgroup cols="2">
2423           <colspec colname="c1" colwidth="50*"/>
2424           <colspec colname="c2" colwidth="50*"/>
2425           <thead>
2426             <row>
2427               <entry>
2428                 <para><emphasis role="bold">Output</emphasis></para>
2429               </entry>
2430               <entry>
2431                 <para><emphasis role="bold">Description</emphasis></para>
2432               </entry>
2433             </row>
2434           </thead>
2435           <tbody>
2436             <row>
2437               <entry>
2438                 <para> <literal>M</literal></para>
2439               </entry>
2440               <entry>
2441                 <para> Number of messages currently being processed by LNet (The maximum number of messages ever processed by LNet concurrently)</para>
2442               </entry>
2443             </row>
2444             <row>
2445               <entry>
2446                 <para> <literal>E</literal></para>
2447               </entry>
2448               <entry>
2449                 <para> Number of LNet errors per second</para>
2450               </entry>
2451             </row>
2452             <row>
2453               <entry>
2454                 <para> <literal>S</literal></para>
2455               </entry>
2456               <entry>
2457                 <para> Rate of data sent in Mbytes per second/ Count of messages sent per second</para>
2458               </entry>
2459             </row>
2460             <row>
2461               <entry>
2462                 <para> <literal>R</literal></para>
2463               </entry>
2464               <entry>
2465                 <para> Rate of data received in Mbytes per second/ Count of messages received per second</para>
2466               </entry>
2467             </row>
2468             <row>
2469               <entry>
2470                 <para> <literal>F</literal></para>
2471               </entry>
2472               <entry>
2473                 <para> Rate of data routed in Mbytes per second/ Count of messages routed per second</para>
2474               </entry>
2475             </row>
2476             <row>
2477               <entry>
2478                 <para> <literal>D</literal></para>
2479               </entry>
2480               <entry>
2481                 <para> Rate of data dropped in Mbytes per second/ Count of messages dropped per second</para>
2482               </entry>
2483             </row>
2484           </tbody>
2485         </tgroup>
2486       </informaltable>
2487     </section>
2488     <section remap="h5">
2489       <title>Example</title>
2490       <screen># routerstat 1
2491 M 0(13) E 0 S 117379184/4250 R 878480/4356 F 0/0 D 0/0
2492 M   0( 13) E 0 S    7.00/     7 R    0.00/    14 F    0.00/     0 D 0.00/0
2493 M   0( 13) E 0 S    7.00/     7 R    0.00/    14 F    0.00/     0 D 0.00/0
2494 M   0( 13) E 0 S    8.00/     8 R    0.00/    16 F    0.00/     0 D 0.00/0
2495 M   0( 13) E 0 S    7.00/     7 R    0.00/    14 F    0.00/     0 D 0.00/0
2496 M   0( 13) E 0 S    7.00/     7 R    0.00/    14 F    0.00/     0 D 0.00/0
2497 M   0( 13) E 0 S    7.00/     7 R    0.00/    14 F    0.00/     0 D 0.00/0
2498 M   0( 13) E 0 S    7.00/     7 R    0.00/    14 F    0.00/     0 D 0.00/0
2499 M   0( 13) E 0 S    8.00/     8 R    0.00/    16 F    0.00/     0 D 0.00/0
2500 M   0( 13) E 0 S    7.00/     7 R    0.00/    14 F    0.00/     0 D 0.00/0
2501 ...</screen>
2502     </section>
2503     <section remap="h5">
2504       <title>Files</title>
2505       <para>The routerstat utility extracts statistics data from:</para>
2506       <screen>/proc/sys/lnet/stats</screen>
2507     </section>
2508   </section>
2509   <section xml:id="dbdoclet.50438219_39574">
2510     <title><indexterm><primary>tunefs.lustre</primary></indexterm>
2511 tunefs.lustre</title>
2512     <para>The tunefs.lustre utility modifies configuration information on a Lustre target disk.</para>
2513     <section remap="h5">
2514       <title>Synopsis</title>
2515       <screen>tunefs.lustre [options] <replaceable>/dev/device</replaceable></screen>
2516     </section>
2517     <section remap="h5">
2518       <title>Description</title>
2519       <para>tunefs.lustre is used to modify configuration information on a Lustre target disk. This does not reformat the disk or erase the target information, but modifying the configuration information can result in an unusable file system.</para>
2520       <caution>
2521         <para>Changes made here affect a file system only when the target is mounted the next time.</para>
2522       </caution>
2523       <para>With tunefs.lustre, parameters are &quot;additive&quot; -- new parameters are specified in addition to old parameters, they do not replace them. To erase all old tunefs.lustre parameters and just use newly-specified parameters, run:</para>
2524       <screen>$ tunefs.lustre --erase-params --param=<replaceable>new_parameters</replaceable> </screen>
2525       <para>The tunefs.lustre command can be used to set any parameter settable in a /proc/fs/lustre file and that has its own OBD device, so it can be specified as <replaceable>{obd|fsname}.obdtype.proc_file_name=value</replaceable>. For example:</para>
2526       <screen>$ tunefs.lustre --param mdt.identity_upcall=NONE /dev/sda1</screen>
2527     </section>
2528     <section remap="h5">
2529       <title>Options</title>
2530       <para>The tunefs.lustre options are listed and explained below.</para>
2531       <informaltable frame="all">
2532         <tgroup cols="2">
2533           <colspec colname="c1" colwidth="50*"/>
2534           <colspec colname="c2" colwidth="50*"/>
2535           <thead>
2536             <row>
2537               <entry>
2538                 <para><emphasis role="bold">Option</emphasis></para>
2539               </entry>
2540               <entry>
2541                 <para><emphasis role="bold">Description</emphasis></para>
2542               </entry>
2543             </row>
2544           </thead>
2545           <tbody>
2546             <row>
2547               <entry>
2548                 <para> <literal>--comment=<replaceable>comment</replaceable></literal></para>
2549               </entry>
2550               <entry>
2551                 <para> Sets a user comment about this disk, ignored by Lustre.</para>
2552               </entry>
2553             </row>
2554             <row>
2555               <entry>
2556                 <para> <literal>--dryrun</literal></para>
2557               </entry>
2558               <entry>
2559                 <para> Only prints what would be done; does not affect the disk.</para>
2560               </entry>
2561             </row>
2562             <row>
2563               <entry>
2564                 <para> <literal>--erase-params</literal></para>
2565               </entry>
2566               <entry>
2567                 <para> Removes all previous parameter information.</para>
2568               </entry>
2569             </row>
2570             <row>
2571               <entry>
2572                 <literal>--servicenode=<replaceable>nid,...</replaceable></literal></entry>
2573               <entry>Sets the NID(s) of all service nodes, including primary and failover partner
2574                 service nodes. The <literal>--servicenode</literal> option cannot be used with
2575                   <literal>--failnode</literal> option. See <xref
2576                   xmlns:xlink="http://www.w3.org/1999/xlink" linkend="dbdoclet.50438188_92688"/> for
2577                 more details.</entry>
2578             </row>
2579             <row>
2580               <entry>
2581                 <para> <literal>--failnode=<replaceable>nid,...</replaceable></literal></para>
2582               </entry>
2583               <entry>
2584                 <para>Sets the NID(s) of a failover service node for a primary server for a target.
2585                   The <literal>--failnode</literal> option cannot be used with
2586                     <literal>--servicenode</literal> option. See <xref
2587                     xmlns:xlink="http://www.w3.org/1999/xlink" linkend="dbdoclet.50438188_92688"/>
2588                   for more details.<note>
2589                     <para>When the <literal>--failnode</literal> option is used, certain
2590                       restrictions apply (see <xref xmlns:xlink="http://www.w3.org/1999/xlink"
2591                         linkend="dbdoclet.50438188_92688"/>).</para>
2592                   </note></para>
2593               </entry>
2594             </row>
2595             <row>
2596               <entry>
2597                 <para> <literal>--fsname=<replaceable>filesystem_name</replaceable></literal></para>
2598               </entry>
2599               <entry>
2600                 <para> The Lustre file system of which this service will be a part. The default file
2601                   system name is <literal>lustre</literal>.</para>
2602               </entry>
2603             </row>
2604             <row>
2605               <entry>
2606                 <para> <literal>--index=<replaceable>index</replaceable></literal></para>
2607               </entry>
2608               <entry>
2609                 <para> Forces a particular OST or MDT index.</para>
2610               </entry>
2611             </row>
2612             <row>
2613               <entry>
2614                 <para> <literal>--mountfsoptions=<replaceable>opts</replaceable></literal></para>
2615               </entry>
2616               <entry>
2617                 <para> Sets the mount options used when the backing file system is mounted.</para>
2618                 <warning><para> Unlike earlier versions of tunefs.lustre, this version completely replaces the existing mount options with those specified on the command line, and issues a warning on stderr if any default mount options are omitted.</para></warning>
2619                 <para>The defaults for ldiskfs are:</para>
2620                 <para>MGS/MDT: <literal>errors=remount-ro,iopen_nopriv,user_xattr</literal></para>
2621                 <para>OST: <literal>errors=remount-ro,extents,mballoc</literal></para>
2622                 <para condition='l25'>OST: <literal>errors=remount-ro</literal></para>
2623                 <para>Do not alter the default mount options unless you know what you are doing.</para>
2624               </entry>
2625             </row>
2626             <row>
2627               <entry>
2628                 <para> <literal>--network=<replaceable>net,...</replaceable></literal></para>
2629               </entry>
2630               <entry>
2631                 <para> Network(s) to which to restrict this OST/MDT. This option can be repeated as necessary.</para>
2632               </entry>
2633             </row>
2634             <row>
2635               <entry>
2636                 <para> <literal>--mgs</literal></para>
2637               </entry>
2638               <entry>
2639                 <para> Adds a configuration management service to this target.</para>
2640               </entry>
2641             </row>
2642             <row>
2643               <entry>
2644                 <para> <literal>--msgnode=<replaceable>nid,...</replaceable></literal></para>
2645               </entry>
2646               <entry>
2647                 <para> Sets the NID(s) of the MGS node; required for all targets other than the MGS.</para>
2648               </entry>
2649             </row>
2650             <row>
2651               <entry>
2652                 <para> <literal>--nomgs</literal></para>
2653               </entry>
2654               <entry>
2655                 <para> Removes a configuration management service to this target.</para>
2656               </entry>
2657             </row>
2658             <row>
2659               <entry>
2660                 <para> <literal>--quiet</literal></para>
2661               </entry>
2662               <entry>
2663                 <para> Prints less information.</para>
2664               </entry>
2665             </row>
2666             <row>
2667               <entry>
2668                 <para> <literal>--verbose</literal></para>
2669               </entry>
2670               <entry>
2671                 <para> Prints more information.</para>
2672               </entry>
2673             </row>
2674             <row>
2675               <entry>
2676                 <para> <literal>--writeconf</literal></para>
2677               </entry>
2678               <entry>
2679                 <para> Erases all configuration logs for the file system to which this MDT belongs,
2680                   and regenerates them. This is dangerous operation. All clients must be unmounted
2681                   and servers for this file system should be stopped. All targets (OSTs/MDTs) must
2682                   then be restarted to regenerate the logs. No clients should be started until all
2683                   targets have restarted.</para>
2684                 <para>The correct order of operations is:</para>
2685                 <orderedlist>
2686                   <listitem>
2687                     <para>Unmount all clients on the file system</para>
2688                   </listitem>
2689                   <listitem>
2690                     <para>Unmount the MDT and all OSTs on the file system</para>
2691                   </listitem>
2692                   <listitem>
2693                     <para>Run <literal>tunefs.lustre --writeconf
2694                         <replaceable>device</replaceable></literal> on every server</para>
2695                   </listitem>
2696                   <listitem>
2697                     <para>Mount the MDT and OSTs</para>
2698                   </listitem>
2699                   <listitem>
2700                     <para>Mount the clients</para>
2701                   </listitem>
2702                 </orderedlist>
2703               </entry>
2704             </row>
2705           </tbody>
2706         </tgroup>
2707       </informaltable>
2708     </section>
2709     <section remap="h5">
2710       <title>Examples</title>
2711       <para>Change the MGS&apos;s NID address. (This should be done on each target disk, since they should all contact the same MGS.)</para>
2712       <screen>tunefs.lustre --erase-param --mgsnode=<replaceable>new_nid</replaceable> --writeconf /dev/sda</screen>
2713       <para>Add a failover NID location for this target.</para>
2714       <screen>tunefs.lustre --param=&quot;failover.node=192.168.0.13@tcp0&quot; /dev/sda </screen>
2715     </section>
2716     <section remap="h5">
2717       <title>See Also</title>
2718       <itemizedlist>
2719         <listitem>
2720           <para><xref linkend="dbdoclet.50438219_75432"/></para>
2721         </listitem>
2722         <listitem>
2723           <para><xref linkend="dbdoclet.50438219_12635"/></para>
2724         </listitem>
2725         <listitem>
2726           <para><xref linkend="dbdoclet.50438219_38274"/></para>
2727         </listitem>
2728         <listitem>
2729           <para><xref linkend="dbdoclet.50438206_94597"/></para>
2730         </listitem>
2731       </itemizedlist>
2732     </section>
2733   </section>
2734   <section xml:id="dbdoclet.50438219_99928">
2735       <title><indexterm><primary>utilities</primary><secondary>system config</secondary></indexterm>
2736 Additional System Configuration Utilities</title>
2737     <para>This section describes additional system configuration utilities for Lustre.</para>
2738     <section remap="h3">
2739       <title><indexterm><primary>utilities</primary><secondary>application profiling</secondary></indexterm>
2740 Application Profiling Utilities</title>
2741       <para>The following utilities are located in /usr/bin.</para>
2742       <para><literal>lustre_req_history.sh</literal></para>
2743       <para>The lustre_req_history.sh utility (run from a client), assembles as much Lustre RPC request history as possible from the local node and from the servers that were contacted, providing a better picture of the coordinated network activity.</para>
2744     </section>
2745     <section remap="h3">
2746       <title>More Statistics for Application Profiling</title>
2747       <para>The following utilities provide additional statistics.</para>
2748       <para><literal>vfs_ops_stats</literal></para>
2749       <para>The client vfs_ops_stats utility tracks Linux VFS operation calls
2750       into Lustre for a single PID, PPID, GID or everything.</para>
2751       <screen>llite.*.vfs_ops_stats llite.*.vfs_track_[pid|ppid|gid]</screen>
2752       <para><literal>extents_stats</literal></para>
2753       <para>The client extents_stats utility shows the size distribution of
2754       I/O calls from the client (cumulative and by process).</para>
2755       <screen>llite.*.{extents_stats,extents_stats_per_process}</screen>
2756       <para><literal>offset_stats</literal></para>
2757       <para>The client offset_stats utility shows the read/write seek activity
2758       of a client by offsets and ranges.</para>
2759       <screen>llite.*.offset_stats</screen>
2760       <para>Lustre includes per-client and improved MDT statistics:</para>
2761       <itemizedlist>
2762         <listitem>
2763           <para> Per-client statistics tracked on the servers</para>
2764         </listitem>
2765       </itemizedlist>
2766       <para>Each MDS and OSS now tracks LDLM and operations statistics for
2767       every connected client, for comparisons and simpler collection of
2768       distributed job statistics.</para>
2769       <screen>{mds,obdfilter}.*.exports
2770 </screen>
2771       <itemizedlist>
2772         <listitem>
2773           <para> Improved MDT statistics</para>
2774         </listitem>
2775       </itemizedlist>
2776       <para>More detailed MDT operations statistics are collected for better
2777       profiling.</para>
2778       <screen>mdt.*.md_stats
2779 </screen>
2780     </section>
2781     <section remap="h3">
2782       <title><indexterm><primary>utilities</primary><secondary>debugging</secondary></indexterm><indexterm><primary>debug</primary><secondary>utilities</secondary></indexterm>
2783
2784 Testing / Debugging Utilities</title>
2785       <para>Lustre offers the following test and debugging utilities.</para>
2786       <section remap="h5">
2787         <title><indexterm><primary>lr_reader</primary></indexterm>
2788 lr_reader</title>
2789         <para>The lr_reader utility translates the content of the <literal>last_rcvd</literal> and <literal>reply_data</literal> files into human-readable form.</para>
2790         <para>The following utilities are part of the Lustre I/O kit. For more information, see <xref linkend="benchmarkingtests"/>.</para>
2791       </section>
2792       <section remap="h5">
2793         <title><indexterm>
2794             <primary>sgpdd-survey</primary>
2795           </indexterm> sgpdd-survey</title>
2796         <para>The <literal>sgpdd-survey</literal> utility tests &apos;bare metal&apos; performance,
2797           bypassing as much of the kernel as possible. The <literal>sgpdd-survey</literal> tool does
2798           not require Lustre, but it does require the sgp_dd package.</para>
2799         <caution>
2800           <para>The <literal>sgpdd-survey</literal> utility erases all data on the device.</para>
2801         </caution>
2802       </section>
2803       <section remap="h5">
2804         <title><indexterm>
2805             <primary>obdfilter-survey</primary>
2806           </indexterm>obdfilter-survey</title>
2807         <para>The <literal>obdfilter-survey</literal> utility is a shell script that tests
2808           performance of isolated OSTS, the network via echo clients, and an end-to-end test.</para>
2809       </section>
2810       <section remap="h5">
2811         <title><indexterm><primary>ior-survey</primary></indexterm>ior-survey</title>
2812         <para>The ior-survey utility is a script used to run the IOR benchmark. Lustre includes IOR version 2.8.6.</para>
2813       </section>
2814       <section remap="h5">
2815         <title><indexterm>
2816             <primary>ost-survey</primary>
2817           </indexterm>ost-survey</title>
2818         <para>The <literal>ost-survey</literal> utility is an OST performance survey that tests
2819           client-to-disk performance of the individual OSTs in a Lustre file system.</para>
2820       </section>
2821       <section remap="h5">
2822         <title><indexterm><primary>stats-collect</primary></indexterm>stats-collect</title>
2823         <para>The stats-collect utility contains scripts used to collect application profiling information from Lustre clients and servers.</para>
2824       </section>
2825     </section>
2826     <section remap="h3" condition='l29' xml:id="SystemConfigurationUtilities.fileset">
2827       <title><indexterm><primary>fileset</primary></indexterm>Fileset Feature</title>
2828       <para> With the fileset feature, Lustre now provides subdirectory mount
2829       support.  Subdirectory mounts, also referred to as filesets, allow a
2830       client to mount a child directory of a parent filesystem, thereby limiting
2831       the filesystem namespace visibility on a specific client.  A common use
2832       case is for a client to use a subdirectory mount when there is a desire to
2833       limit the visibility of the entire filesystem namesapce to aid in the
2834       prevention of accidental file deletions outside of the subdirectory
2835       mount.</para>
2836       <para>It is important to note that invocation of the subdirectory mount is
2837       voluntary by the client and not does prevent access to files that are
2838       visible in multiple subdirectory mounts via hard links.  Furthermore, it
2839       does not prevent the client from subsequently mounting the whole file
2840       system without a subdirectory being specified.</para>
2841       <figure xml:id="understandinglustre.fig.fileset">
2842         <title>
2843         <indexterm>
2844           <primary>Lustre</primary>
2845           <secondary>fileset</secondary>
2846         </indexterm>Lustre fileset</title>
2847         <mediaobject>
2848           <imageobject>
2849             <imagedata scalefit="1" width="100%"
2850             fileref="./figures/fileset.png" />
2851           </imageobject>
2852           <textobject>
2853             <phrase>Lustre file system fileset feature</phrase>
2854           </textobject>
2855         </mediaobject>
2856       </figure>
2857       <section remap="h4">
2858         <title>Examples</title>
2859         <para>The following example will mount the
2860         <literal>chipfs</literal> filesystem on client1 and create a
2861         subdirectory <literal>v1_1</literal> within that filesystem.  Client2
2862         will then mount only the <literal>v1_1</literal> subdirectory as a
2863         fileset, thereby limiting access to anything else in the
2864         <literal>chipfs</literal> filesystem from client2.</para>
2865         <screen>client1# mount -t lustre mgs@tcp:/chipfs /mnt/chip
2866 client1# mkdir /mnt/chip/v1_1</screen>
2867         <screen>client2# mount -t lustre mgs@tcp:/chipfs/v1_1 /mnt/chipv1_1</screen>
2868     <para>You can check the created mounts in /etc/mtab. It should look like
2869     the following:</para>
2870     <screen><replaceable>client1</replaceable>
2871 mds@tcp0:/chipfs/ /mnt/chip lustre rw         0       0
2872 </screen><screen>
2873 <replaceable>client2</replaceable>
2874 mds@tcp0:/chipfs/v1_1 /mnt/chipv1_1 lustre rw         0       0</screen>
2875         <para>Create a directory under the /mnt/chip mount, and get its FID</para>
2876     <screen>client1# mkdir /mnt/chip/v1_2
2877 client1# lfs path2fid /mnt/chip/v1_2
2878 [0x200000400:0x2:0x0]
2879 </screen>
2880         <para>If you try resolve the FID of the <literal>/mnt/chip/v1_2</literal>
2881     path (as created in the example above) on client2, an error will be returned
2882     as the FID can not be resolved on client2 since it is not part of the
2883     mounted fileset on that client.  Recall that the fileset on client2 mounted
2884     the <literal>v1_1</literal> subdirectory beneath the top level
2885     <literal>chipfs</literal> filesystem.
2886     </para>
2887     <screen>client2# lfs fid2path /mnt/chip/v1_2 [0x200000400:0x2:0x0]
2888 fid2path: error on FID [0x200000400:0x2:0x0]: No such file or directory</screen>
2889     <para>Subdirectory mounts do not have the <literal>.lustre</literal>
2890     pseudo directory, which prevents clients from opening or accessing files
2891     only by FID.</para>
2892     <screen>client1# ls /mnt/chipfs/.lustre
2893         fid  lost+found</screen>
2894     <screen>client2# ls /mnt/chipv1_1/.lustre
2895         ls: cannot access /mnt/chipv1_1/.lustre: No such file or directory
2896     </screen>
2897       </section>
2898     </section>
2899   </section>
2900 </chapter>
2901 <!--
2902   vim:expandtab:shiftwidth=2:tabstop=8:
2903   -->