Whamcloud - gitweb
LUDOC-222 mount: Fix some issue with mount documentation
[doc/manual.git] / UserUtilities.xml
1 <?xml version='1.0' encoding='UTF-8'?><chapter xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" version="5.0" xml:lang="en-US" xml:id="userutilities">
2   <title xml:id="userutilities.title">User Utilities</title>
3   <para>This chapter describes user utilities and includes the following sections:</para>
4   <itemizedlist>
5     <listitem>
6       <para><xref linkend="dbdoclet.50438206_94597"/></para>
7     </listitem>
8     <listitem>
9       <para><xref linkend="dbdoclet.50438206_42260"/></para>
10     </listitem>
11     <listitem>
12       <para><xref linkend="dbdoclet.50438206_91700"/></para>
13     </listitem>
14     <listitem>
15       <para><xref linkend="dbdoclet.50438206_75125"/></para>
16     </listitem>
17     <listitem>
18       <para><xref linkend="dbdoclet.50438206_86244"/></para>
19     </listitem>
20     <listitem>
21       <para><xref linkend="dbdoclet.50438206_56217"/></para>
22     </listitem>
23   </itemizedlist>
24   <section xml:id="dbdoclet.50438206_94597">
25     <title><indexterm><primary>lfs</primary></indexterm>
26       <literal>lfs</literal>
27     </title>
28     <para>The <literal>lfs</literal> utility can be used for user configuration routines and monitoring.</para>
29     <section remap="h5">
30       <title>Synopsis</title>
31       <screen>lfs
32 lfs changelog [--follow] <replaceable>mdt_name</replaceable> [startrec [endrec]]
33 lfs changelog_clear <replaceable>mdt_name id endrec</replaceable>
34 lfs check <replaceable>mds|osts|servers</replaceable>
35 lfs df [-i] [-h] [--pool]-p <replaceable>fsname</replaceable>[.<replaceable>pool</replaceable>] [<replaceable>path</replaceable>] [--lazy]
36 lfs find [[!] --atime|-A [-+]N] [[!] --mtime|-M [-+]N]
37          [[!] --ctime|-C [-+]N] [--maxdepth|-D N] [--name|-n <replaceable>pattern</replaceable>]
38          [--print|-p] [--print0|-P] [[!] --obd|-O <replaceable>ost_name</replaceable>[,<replaceable>ost_name...</replaceable>]]
39          [[!] --size|-S [+-]N[kMGTPE]] --type |-t {bcdflpsD}]
40          [[!] --gid|-g|--group|-G <replaceable>gname|gid</replaceable>]
41          [[!] --uid|-u|--user|-U <replaceable>uname|uid</replaceable>]
42          <replaceable>dirname|filename</replaceable>
43 lfs getname [-h]|[path...]
44 lfs getstripe [--obd|-O <replaceable>ost_name</replaceable>] [--quiet|-q] [--verbose|-v]
45               [--count|-c] [--index|-i | --offset|-o]
46               [--size|-s] [--pool|-p] [--directory|-d]
47               [--recursive|-r] [--raw|-R] [-M] <replaceable>dirname|filename</replaceable> ...
48 lfs setstripe [--size|-s stripe_size] [--count|-c <replaceable>stripe_count</replaceable>]
49               [--index|-i|--offset|-o <replaceable>start_ost_index</replaceable>]
50               [--pool|-p <replaceable>pool</replaceable>]
51               <replaceable>dirname|filename</replaceable>
52 lfs setstripe -d <replaceable>dir</replaceable>
53 lfs osts [path]
54 lfs poollist <replaceable>filesystem</replaceable>[.<replaceable>pool</replaceable>]|<replaceable>pathname</replaceable>
55 lfs quota [-q] [-v] [-h] [-o <replaceable>obd_uuid</replaceable>|-I <replaceable>ost_idx</replaceable>|-i <replaceable>mdt_idx</replaceable>]
56           [-u <replaceable>username|uid|-g</replaceable> <replaceable>group|gid</replaceable>]
57           <replaceable>/mount_point</replaceable>
58 lfs quota -t -u|-g <replaceable>/mount_point</replaceable>
59 lfs quotacheck [-ug] <replaceable>/mount_point</replaceable>
60 lfs quotachown [-i] <replaceable>/mount_point</replaceable>
61 lfs quotainv [-ug] [-f] <replaceable>/mount_point</replaceable>
62 lfs quotaon [-ugf] <replaceable>/mount_point</replaceable>
63 lfs quotaoff [-ug] <replaceable>/mount_point</replaceable>
64 lfs setquota {-u|--user|-g|--group} <replaceable>uname|uid|gname|gid</replaceable>
65              [--block-softlimit <replaceable>block_softlimit</replaceable>]
66              [--block-hardlimit <replaceable>block_hardlimit</replaceable>]
67              [--inode-softlimit <replaceable>inode_softlimit</replaceable>]
68              [--inode-hardlimit <replaceable>inode_hardlimit</replaceable>]
69              <replaceable>/mount_point</replaceable>
70 lfs setquota -u|--user|-g|--group <replaceable>uname|uid|gname|gid</replaceable>
71              [-b <replaceable>block_softlimit</replaceable>] [-B <replaceable>block_hardlimit</replaceable>]
72              [-i <replaceable>inode-softlimit</replaceable>] [-I <replaceable>inode_hardlimit</replaceable>]
73              <replaceable>/mount_point</replaceable>
74 lfs setquota -t -u|-g
75              [--block-grace <replaceable>block_grace</replaceable>]
76              [--inode-grace <replaceable>inode_grace</replaceable>]
77              <replaceable>/mount_point</replaceable>
78 lfs setquota -t -u|-g
79              [-b <replaceable>block_grace</replaceable>] [-i <replaceable>inode_grace</replaceable>]
80              <replaceable>/mount_point</replaceable>
81 lfs help
82 </screen>
83       <note>
84         <para>In the above example, the <literal><replaceable>/mount_point</replaceable></literal> parameter refers to the mount point of the Lustre file system.</para>
85       </note>
86       <note>
87         <para>The old lfs quota output was very detailed and contained cluster-wide quota statistics (including cluster-wide limits for a user/group and cluster-wide usage for a user/group), as well as statistics for each MDS/OST. Now, <literal>lfs quota</literal> has been updated to provide only cluster-wide statistics, by default. To obtain the full report of cluster-wide limits, usage and statistics, use the <literal>-v</literal> option with <literal>lfs quota</literal>.</para>
88       </note>
89     </section>
90     <section remap="h5">
91       <title>Description</title>
92       <para>The <literal>lfs</literal> utility is used to create a new file with a specific striping pattern, determine the default striping pattern, gather the extended attributes (object numbers and location) for a specific file, find files with specific attributes, list OST information or set quota limits. It can be invoked interactively without any arguments or in a non-interactive mode with one of the supported arguments.</para>
93     </section>
94     <section remap="h5">
95       <title>Options</title>
96       <para>The various <literal>lfs</literal> options are listed and described below. For a complete list of available options, type help at the <literal>lf</literal>s prompt.</para>
97       <informaltable frame="all">
98         <tgroup cols="3">
99           <colspec colname="c1" colwidth="20*"/>
100           <colspec colname="c2" colwidth="30*"/>
101           <colspec colname="c3" colwidth="50*"/>
102           <thead>
103             <row>
104               <entry nameend="c2" namest="c1">
105                 <para><emphasis role="bold">Option</emphasis></para>
106               </entry>
107               <entry>
108                 <para><emphasis role="bold">Description</emphasis></para>
109               </entry>
110             </row>
111           </thead>
112           <tbody>
113             <row>
114               <entry nameend="c2" namest="c1">
115                 <para><literal>changelog</literal> </para>
116               </entry>
117               <entry>
118                 <para>Shows the metadata changes on an MDT. Start and end points are optional. The <literal>--follow </literal>option blocks on new changes; this option is only valid when run directly on the MDT node.</para>
119               </entry>
120             </row>
121             <row>
122               <entry nameend="c2" namest="c1">
123                 <para> <literal>changelog_clear</literal></para>
124               </entry>
125               <entry>
126                 <para>Indicates that changelog records previous to <literal><replaceable>endrec</replaceable></literal> are no longer of interest to a particular consumer <literal><replaceable>id</replaceable></literal>, potentially allowing the MDT to free up disk space. An <literal><replaceable>endrec</replaceable></literal> of 0 indicates the current last record. Changelog consumers must be registered on the MDT node using <literal>lctl</literal>.</para>
127               </entry>
128             </row>
129             <row>
130               <entry nameend="c2" namest="c1">
131                 <literal> check </literal>
132               </entry>
133               <entry>
134                 <para>Displays the status of MDS or OSTs (as specified in the command) or all servers (MDS and OSTs).</para>
135               </entry>
136             </row>
137             <row>
138               <entry nameend="c2" namest="c1">
139                 <literal> df [-i] [-h] [--pool|-p
140                     <replaceable>fsname</replaceable>[.<replaceable>pool</replaceable>]
141                     [<replaceable>path</replaceable>] [--lazy]</literal>
142               </entry>
143               <entry>
144                 <para>Use <literal>-i</literal> to report file system disk space usage or inode
145                   usage of each MDT or OST or, if a pool is specified with the <literal>-p</literal>
146                   option, a subset of OSTs.</para>
147                 <para>By default, the usage of all mounted Lustre file systems is reported. If the
148                     <literal>path</literal> option is included, only the usage for the specified
149                   file system is reported. If the <literal>-h</literal> option is included, the
150                   output is printed in human-readable format, using SI base-2 suffixes for <emphasis
151                     role="bold">M</emphasis>ega-, <emphasis role="bold">G</emphasis>iga-, <emphasis
152                     role="bold">T</emphasis>era-, <emphasis role="bold">P</emphasis>eta-, or
153                     <emphasis role="bold">E</emphasis>xabytes.</para>
154                 <para>If the <literal>--lazy</literal> option is specified, any OST that is
155                   currently disconnected from the client will be skipped. Using the
156                     <literal>--lazy</literal> option prevents the <literal>df</literal> output from
157                   being blocked when  an OST is offline. Only the space on the OSTs that can
158                   currently be accessed are returned. The <literal>llite.*.lazystatfs</literal>
159                   tunable can be enabled to make this the default behaviour for all
160                     <literal>statfs()</literal> operations.</para>
161               </entry>
162             </row>
163             <row>
164               <entry nameend="c2" namest="c1">
165                 <para><literal> find</literal></para>
166               </entry>
167               <entry>
168                 <para>Searches the directory tree rooted at the given directory/filename for files that match the given parameters.</para>
169                 <para>Using <literal>!</literal> before an option negates its meaning (files NOT matching the parameter). Using <literal>+</literal> before a numeric value means files with the parameter OR MORE. Using <literal>-</literal> before a numeric value means files with the parameter OR LESS.</para>
170               </entry>
171             </row>
172             <row>
173               <entry/>
174               <entry>
175                 <literal> --atime </literal>
176               </entry>
177               <entry>
178                 <para>File was last accessed N*24 hours ago. (There is no guarantee that <literal>atime</literal> is kept coherent across the cluster.)</para>
179                 <para>OSTs store a transient <literal>atime</literal> that is updated when clients
180                   do read requests. Permanent <literal>atime</literal> is written to the MDS when
181                   the file is closed. However, on-disk atime is only updated if it is more than 60
182                   seconds old (<literal>/proc/fs/lustre/mds/*/max_atime_diff</literal>). The Lustre
183                   software considers the latest <literal>atime</literal> from all OSTs. If a
184                     <literal>setattr</literal> is set by user, then it is updated on both the MDS
185                   and OST, allowing the <literal>atime</literal> to go backward.</para>
186               </entry>
187             </row>
188             <row>
189               <entry>
190                 <para> &#160;</para>
191               </entry>
192               <entry>
193                 <para> <literal>--ctime</literal></para>
194               </entry>
195               <entry>
196                 <para>File status was last changed N*24 hours ago.</para>
197               </entry>
198             </row>
199             <row>
200               <entry>
201                 <para> &#160;</para>
202               </entry>
203               <entry>
204                 <para> <literal>--mtime</literal></para>
205               </entry>
206               <entry>
207                 <para>File data was last modified N*24 hours ago.</para>
208               </entry>
209             </row>
210             <row>
211               <entry>
212                 <para> &#160;</para>
213               </entry>
214               <entry>
215                 <para> <literal>--obd</literal></para>
216               </entry>
217               <entry>
218                 <para>File has an object on a specific OST(s).</para>
219               </entry>
220             </row>
221             <row>
222               <entry>
223                 <para> &#160;</para>
224               </entry>
225               <entry>
226                 <para> <literal>--size</literal></para>
227               </entry>
228               <entry>
229                 <para>File has a size in bytes, or kilo-, Mega-, Giga-, Tera-, Peta- or Exabytes if a suffix is given.</para>
230               </entry>
231             </row>
232             <row>
233               <entry>
234                 <para> &#160;</para>
235               </entry>
236               <entry>
237                 <para> <literal>--type</literal></para>
238               </entry>
239               <entry>
240                 <para>File has the type  - block, character, directory, pipe, file, symlink, socket
241                   or door (used in Solaris operating system).</para>
242               </entry>
243             </row>
244             <row>
245               <entry>
246                 <para> &#160;</para>
247               </entry>
248               <entry>
249                 <para> <literal>--uid</literal></para>
250               </entry>
251               <entry>
252                 <para>File has a specific numeric user ID.</para>
253               </entry>
254             </row>
255             <row>
256               <entry>
257                 <para> &#160;</para>
258               </entry>
259               <entry>
260                 <para> <literal>--user</literal></para>
261               </entry>
262               <entry>
263                 <para>File owned by a specific user (numeric user ID allowed).</para>
264               </entry>
265             </row>
266             <row>
267               <entry>
268                 <para> &#160;</para>
269               </entry>
270               <entry>
271                 <para> <literal>--gid</literal></para>
272               </entry>
273               <entry>
274                 <para>File has a specific group ID.</para>
275               </entry>
276             </row>
277             <row>
278               <entry>
279                 <para> &#160;</para>
280               </entry>
281               <entry>
282                 <para> <literal>--group</literal></para>
283               </entry>
284               <entry>
285                 <para>File belongs to a specific group (numeric group ID allowed).</para>
286               </entry>
287             </row>
288             <row>
289               <entry>
290                 <para> &#160;</para>
291               </entry>
292               <entry>
293                 <para> -<literal>-maxdepth</literal></para>
294               </entry>
295               <entry>
296                 <para>Limits find to descend at most N levels of the directory tree.</para>
297               </entry>
298             </row>
299             <row>
300               <entry>
301                 <para> &#160;</para>
302               </entry>
303               <entry>
304                 <para> <literal>--print</literal> / <literal>--print0</literal></para>
305               </entry>
306               <entry>
307                 <para>Prints the full filename, followed by a new line or NULL character correspondingly.</para>
308               </entry>
309             </row>
310             <row>
311               <entry nameend="c2" namest="c1">
312                 <para> <literal>osts [path]</literal></para>
313               </entry>
314               <entry>
315                 <para>Lists all OSTs for the file system. If a path located on a mounted Lustre file
316                   system is specified, then only OSTs belonging to this file system are
317                   displayed.</para>
318               </entry>
319             </row>
320             <row>
321               <entry nameend="c2" namest="c1">
322                 <para> <literal>getname [path...]</literal></para>
323               </entry>
324               <entry>
325                   <para>List each Lustre file system instance associated with each Lustre mount
326                   point. If no path is specified, all Lustre mount points are interrogated. If a
327                   list of paths is provided, the instance of each path is provided. If the path is
328                   not a Lustre instance 'No such device' is returned.</para>
329               </entry>
330             </row>
331             <row>
332               <entry nameend="c2" namest="c1">
333                 <para> <literal>getstripe</literal></para>
334               </entry>
335               <entry>
336                 <para>Lists striping information for a given filename or directory. By default, the stripe count, stripe size and offset are returned.</para>
337                 <para>If you only want specific striping information, then the options of <literal>--count</literal>,<literal>--size</literal>,<literal>--index</literal> or <literal>--offset</literal> plus various combinations of these options can be used to retrieve specific information.</para>
338                 <para>If the <literal>--raw</literal> option is specified, the stripe information is
339                   printed without substituting the file system default values for unspecified
340                   fields. If the striping EA is not set, 0, 0, and -1 will be printed for the stripe
341                   count, size, and offset respectively.</para>
342                                 <para condition='l24'>The <literal>-M</literal> prints the index of the MDT for a given directory. See <xref linkend='dbdoclet.rmremotedir'/>.</para>
343               </entry>
344             </row>
345             <row>
346               <entry>
347                 <para> &#160;</para>
348               </entry>
349               <entry>
350                 <para> <literal>--obd <replaceable>ost_name</replaceable></literal></para>
351               </entry>
352               <entry>
353                 <para>Lists files that have an object on a specific OST.</para>
354               </entry>
355             </row>
356             <row>
357               <entry>
358                 <para> &#160;</para>
359               </entry>
360               <entry>
361                 <para> <literal>--quiet</literal></para>
362               </entry>
363               <entry>
364                 <para>Lists details about the file&apos;s object ID information.</para>
365               </entry>
366             </row>
367             <row>
368               <entry>
369                 <para> &#160;</para>
370               </entry>
371               <entry>
372                 <para> <literal>--verbose</literal></para>
373               </entry>
374               <entry>
375                 <para>Prints additional striping information.</para>
376               </entry>
377             </row>
378             <row>
379               <entry>
380                 <para> &#160;</para>
381               </entry>
382               <entry>
383                 <para> <literal>--count</literal></para>
384               </entry>
385               <entry>
386                 <para>Lists the stripe count (how many OSTs to use).</para>
387               </entry>
388             </row>
389             <row>
390               <entry>
391                 <para> &#160;</para>
392               </entry>
393               <entry>
394                 <para> <literal>--index</literal></para>
395               </entry>
396               <entry>
397                 <para>Lists the index for each OST in the file system.</para>
398               </entry>
399             </row>
400             <row>
401               <entry>
402                 <para> &#160;</para>
403               </entry>
404               <entry>
405                 <para> <literal>--offset</literal></para>
406               </entry>
407               <entry>
408                 <para>Lists the OST index on which file striping starts.</para>
409               </entry>
410             </row>
411             <row>
412               <entry>
413                 <para> &#160;</para>
414               </entry>
415               <entry>
416                 <para> <literal>--pool</literal></para>
417               </entry>
418               <entry>
419                 <para>Lists the pools to which a file belongs.</para>
420               </entry>
421             </row>
422             <row>
423               <entry>
424                 <para> &#160;</para>
425               </entry>
426               <entry>
427                 <para> <literal>--size</literal></para>
428               </entry>
429               <entry>
430                 <para>Lists the stripe size (how much data to write to one OST before moving to the next OST).</para>
431               </entry>
432             </row>
433             <row>
434               <entry>
435                 <para> &#160;</para>
436               </entry>
437               <entry>
438                 <para> <literal>--directory</literal></para>
439               </entry>
440               <entry>
441                 <para>Lists entries about a specified directory instead of its contents (in the same manner as <literal>ls -d</literal>).</para>
442               </entry>
443             </row>
444             <row>
445               <entry>
446                 <para> &#160;</para>
447               </entry>
448               <entry>
449                 <para> <literal>--recursive</literal></para>
450               </entry>
451               <entry>
452                 <para>Recurses into all sub-directories.</para>
453               </entry>
454             </row>
455             <row>
456               <entry nameend="c2" namest="c1">
457                 <para> <literal>setstripe</literal></para>
458               </entry>
459               <entry>
460                 <para>Create new files with a specific file layout (stripe pattern) configuration.<footnote>
461                     <para>The file cannot exist prior to using <literal>setstripe</literal>. A directory must exist prior to using <literal>setstripe</literal>.</para>
462                   </footnote></para>
463               </entry>
464             </row>
465             <row>
466               <entry>
467                 <para> &#160;</para>
468               </entry>
469               <entry>
470                 <para> <literal>--count stripe_cnt</literal></para>
471               </entry>
472               <entry>
473                 <para>Number of OSTs over which to stripe a file. A <literal>stripe_cnt</literal> of 0 uses the file system-wide default stripe count (default is 1). A <literal>stripe_cnt</literal> of -1 stripes over all available OSTs.</para>
474               </entry>
475             </row>
476             <row>
477               <entry>
478                 <para> &#160;</para>
479               </entry>
480               <entry>
481                 <para> <literal>--size stripe_size</literal><footnote>
482                     <para>The default stripe-size is 0. The default start-ost is -1. Do NOT confuse them! If you set start-ost to 0, all new file creations occur on OST 0 (seldom a good idea).</para>
483                   </footnote>&#160;</para>
484               </entry>
485               <entry>
486                 <para>Number of bytes to store on an OST before moving to the next OST. A stripe_size of 0 uses the file system&apos;s default stripe size, (default is 1 MB). Can be specified with <emphasis role="bold">k</emphasis> (KB), <emphasis role="bold">m</emphasis> (MB), or <emphasis role="bold">g</emphasis> (GB), respectively.</para>
487               </entry>
488             </row>
489             <row>
490               <entry>
491                 <para> &#160;</para>
492               </entry>
493               <entry>
494                 <para> <literal>--index --offset start_ost_index</literal></para>
495               </entry>
496               <entry>
497                 <para>The OST index (base 10, starting at 0) on which to start striping for this file. A start_ost_index value of -1 allows the MDS to choose the starting index. This is the default value, and it means that the MDS selects the starting OST as it wants. We strongly recommend selecting this default, as it allows space and load balancing to be done by the MDS as needed. The <literal>start_ost_index</literal> value has no relevance on whether the MDS will use round-robin or QoS weighted allocation for the remaining stripes in the file.</para>
498               </entry>
499             </row>
500             <row>
501               <entry>
502                 <para> &#160;</para>
503               </entry>
504               <entry>
505                 <para> <literal>--pool <replaceable>pool</replaceable></literal></para>
506               </entry>
507               <entry>
508                 <para>Name of the pre-defined pool of OSTs (see <xref linkend="dbdoclet.50438219_38274"/>) that will be used for striping. The <literal>stripe_cnt</literal>, <literal>stripe_size</literal> and <literal>start_ost</literal> values are used as well. The start-ost value must be part of the pool or an error is returned.</para>
509               </entry>
510             </row>
511             <row>
512               <entry nameend="c2" namest="c1">
513                 <para> <literal>setstripe -d</literal></para>
514               </entry>
515               <entry>
516                 <para>Deletes default striping on the specified directory.</para>
517               </entry>
518             </row>
519             <row>
520               <entry nameend="c2" namest="c1">
521                 <para> <literal>poollist {filesystem} [.poolname]|{pathname}</literal></para>
522               </entry>
523               <entry>
524                 <para>Lists pools in the file system or pathname, or OSTs in the file system&apos;s pool.</para>
525               </entry>
526             </row>
527             <row>
528               <entry nameend="c2" namest="c1">
529                 <para> <literal>quota [-q] [-v] [-o <replaceable>obd_uuid</replaceable>|-i <replaceable>mdt_idx</replaceable>|-I <replaceable>ost_idx</replaceable>] [-u|-g <replaceable>uname|uid|gname|gid]</replaceable> <replaceable>/mount_point</replaceable></literal></para>
530                 <para>&#160;</para>
531               </entry>
532               <entry>
533                 <para>Displays disk usage and limits, either for the full file system or for objects on a specific OBD. A user or group name or an ID can be specified. If both user and group are omitted, quotas for the current UID/GID are shown. The <literal>-q</literal> option disables printing of additional descriptions (including column titles). It fills in blank spaces in the &apos;&apos;grace&apos;&apos; column with zeros (when there is no grace period set), to ensure that the number of columns is consistent. The <literal>-v</literal> option provides more verbose (per-OBD statistics) output.</para>
534               </entry>
535             </row>
536             <row>
537               <entry nameend="c2" namest="c1">
538                 <para> <literal>quota -t <replaceable>-u|-g</replaceable> <replaceable>/mount_point</replaceable></literal></para>
539               </entry>
540               <entry>
541                 <para>Displays block and inode grace times for user (<literal>-u</literal>) or group (<literal>-g</literal>) quotas.</para>
542               </entry>
543             </row>
544             <row>
545               <entry nameend="c2" namest="c1">
546                 <para> <literal>quotachown</literal></para>
547               </entry>
548               <entry>
549                 <para>Changes the file&apos;s owner and group on OSTs of the specified file system.</para>
550               </entry>
551             </row>
552             <row>
553               <entry nameend="c2" namest="c1">
554                 <para> <literal>quotacheck [-ugf] <replaceable>/mount_point</replaceable></literal></para>
555               </entry>
556               <entry>
557                 <para>Scans the specified file system for disk usage, and creates or updates quota files. Options specify quota for users (<literal>-u</literal>), groups (<literal>-g</literal>), and force (<literal>-f</literal>).</para>
558               </entry>
559             </row>
560             <row>
561               <entry nameend="c2" namest="c1">
562                 <para> <literal>quotaon [-ugf] <replaceable>/mount_point</replaceable></literal></para>
563               </entry>
564               <entry>
565                 <para>Turns on file system quotas. Options specify quota for users (<literal>-u</literal>), groups (<literal>-g</literal>), and force (<literal>-f</literal>).</para>
566               </entry>
567             </row>
568             <row>
569               <entry nameend="c2" namest="c1">
570                 <para> <literal>quotaoff [-ugf] <replaceable>/mount_point</replaceable></literal></para>
571               </entry>
572               <entry>
573                 <para>Turns off file system quotas. Options specify quota for users (<literal>-u</literal>), groups (<literal>-g</literal>), and force (<literal>-f</literal>).</para>
574               </entry>
575             </row>
576             <row>
577               <entry nameend="c2" namest="c1">
578                 <para> <literal>quotainv [-ug] [-f] <replaceable>/mount_point</replaceable></literal></para>
579               </entry>
580               <entry>
581                 <para> Clears quota files (administrative quota files if used without <literal>-f</literal>, operational quota files otherwise), all of their quota entries for users (<literal>-u</literal>) or groups (<literal>-g</literal>). After running <literal>quotainv</literal>, you must run <literal>quotacheck</literal> before using quotas.</para>
582                 <caution>
583                   <para>Use extreme caution when using this command; its results cannot be undone.</para>
584                 </caution>
585               </entry>
586             </row>
587             <row>
588               <entry nameend="c2" namest="c1">
589                 <para> <literal>setquota -u|-g <replaceable>uname|uid|gname|gid}</replaceable> [--block-softlimit <replaceable>block_softlimit</replaceable>] [--block-hardlimit <replaceable>block_hardlimit</replaceable>] [--inode-softlimit <replaceable>inode_softlimit</replaceable>] [--inode-hardlimit <replaceable>inode_hardlimit</replaceable>] <replaceable>/mount_point</replaceable></literal></para>
590               </entry>
591               <entry>
592                 <para>Sets file system quotas for users or groups. Limits can be specified with <literal>--{block|inode}-{softlimit|hardlimit}</literal> or their short equivalents <literal>-b</literal>, <literal>-B</literal>, <literal>-i</literal>, <literal>-I</literal>. Users can set 1, 2, 3 or 4 limits.<footnote>
593                     <para>The old <literal>setquota</literal> interface is supported, but it may be
594                       removed in a future Lustre software release.</para>
595                   </footnote>Also, limits can be specified with special suffixes, -b, -k, -m, -g, -t, and -p to indicate units of 1, 2^10, 2^20, 2^30, 2^40 and 2^50, respectively. By default, the block limits unit is 1 kilobyte (1,024), and block limits are always kilobyte-grained (even if specified in bytes). See <xref linkend="dbdoclet.50438206_11903"/>.</para>
596               </entry>
597             </row>
598             <row>
599               <entry nameend="c2" namest="c1">
600                 <para><literal> setquota -t -u|-g [--block-grace <replaceable>block_grace</replaceable>] [--inode-grace <replaceable>inode_grace</replaceable>] <replaceable>/mount_point</replaceable></literal></para>
601               </entry>
602               <entry>
603                 <para>Sets the file system quota grace times for users or groups. Grace time is specified in &apos;<literal>XXwXXdXXhXXmXXs</literal>&apos; format or as an integer seconds value. See <xref linkend="dbdoclet.50438206_11903"/>.</para>
604               </entry>
605             </row>
606             <row>
607               <entry nameend="c2" namest="c1">
608                 <para> <literal>help</literal></para>
609               </entry>
610               <entry>
611                 <para>Provides brief help on various <literal>lfs</literal> arguments.</para>
612               </entry>
613             </row>
614             <row>
615               <entry nameend="c2" namest="c1">
616                 <para> <literal>exit/quit</literal></para>
617               </entry>
618               <entry>
619                 <para>Quits the interactive <literal>lfs</literal> session.</para>
620               </entry>
621             </row>
622           </tbody>
623         </tgroup>
624       </informaltable>
625     </section>
626     <section remap="h5">
627       <title xml:id="dbdoclet.50438206_11903">Examples</title>
628       <para>Creates a file striped on two OSTs with 128 KB on each stripe.</para>
629       <screen>$ lfs setstripe -s 128k -c 2 /mnt/lustre/file1</screen>
630       <para>Deletes a default stripe pattern on a given directory. New files use the default striping pattern.</para>
631       <screen>$ lfs setstripe -d /mnt/lustre/dir</screen>
632       <para>Lists the detailed object allocation of a given file.</para>
633       <screen>$ lfs getstripe -v /mnt/lustre/file1</screen>
634       <para>List all the mounted Lustre file systems and corresponding Lustre instances.</para>
635       <screen>$ lfs getname</screen>
636       <para>Efficiently lists all files in a given directory and its subdirectories.</para>
637       <screen>$ lfs find /mnt/lustre</screen>
638       <para>Recursively lists all regular files in a given directory more than 30 days old.</para>
639       <screen>$ lfs find /mnt/lustre -mtime +30 -type f -print</screen>
640       <para>Recursively lists all files in a given directory that have objects on OST2-UUID. The lfs check servers command checks the status of all servers (MDT and OSTs).</para>
641       <screen>$ lfs find --obd OST2-UUID /mnt/lustre/</screen>
642       <para>Lists all OSTs in the file system.</para>
643       <screen>$ lfs osts</screen>
644       <para>Lists space usage per OST and MDT in human-readable format.</para>
645       <screen>$ lfs df -h</screen>
646       <para>Lists inode usage per OST and MDT.</para>
647       <screen>$ lfs df -i</screen>
648       <para>List space or inode usage for a specific OST pool.</para>
649       <screen>$ lfs df --pool <replaceable>filesystem</replaceable>[.<replaceable>pool</replaceable>] | <replaceable>pathname</replaceable></screen>
650       <para>List quotas of user &apos;bob&apos;.</para>
651       <screen>$ lfs quota -u bob /mnt/lustre</screen>
652       <para>Show grace times for user quotas on <literal>/mnt/lustre</literal>.</para>
653       <screen>$ lfs quota -t -u /mnt/lustre</screen>
654       <para>Changes file owner and group.</para>
655       <screen>$ lfs quotachown -i /mnt/lustre</screen>
656       <para>Checks quotas for user and group. Turns on quotas after making the check.</para>
657       <screen>$ lfs quotacheck -ug /mnt/lustre</screen>
658       <para>Turns on quotas of user and group.</para>
659       <screen>$ lfs quotaon -ug /mnt/lustre</screen>
660       <para>Turns off quotas of user and group.</para>
661       <screen>$ lfs quotaoff -ug /mnt/lustre</screen>
662       <para>Sets quotas of user &apos;bob&apos;, with a 1 GB block quota hardlimit and a 2 GB block quota softlimit.</para>
663       <screen>$ lfs setquota -u bob --block-softlimit 2000000 --block-hardlimit 1000000 /mnt/lustre</screen>
664       <para>Sets grace times for user quotas: 1000 seconds for block quotas, 1 week and 4 days for inode quotas.</para>
665       <screen>$ lfs setquota -t -u --block-grace 1000 --inode-grace 1w4d /mnt/lustre</screen>
666       <para>Checks the status of all servers (MDT, OST)</para>
667       <screen>$ lfs check servers</screen>
668       <para>Creates a file striped on two OSTs from the pool <literal>my_pool</literal></para>
669       <screen>$ lfs setstripe --pool my_pool -c 2 /mnt/lustre/file</screen>
670       <para>Lists the pools defined for the mounted Lustre file system <literal>/mnt/lustre</literal></para>
671       <screen>$ lfs poollist /mnt/lustre/</screen>
672       <para>Lists the OSTs which are members of the pool <literal>my_pool</literal> in file system <literal>my_fs</literal></para>
673       <screen>$ lfs poollist my_fs.my_pool</screen>
674       <para>Finds all directories/files associated with <literal>poolA</literal>.</para>
675       <screen>$ lfs find /mnt/lustre --pool poolA</screen>
676       <para>Finds all directories/files not associated with a pool.</para>
677       <screen>$ lfs find /mnt//lustre --pool &quot;&quot;</screen>
678       <para>Finds all directories/files associated with pool.</para>
679       <screen>$ lfs find /mnt/lustre ! --pool &quot;&quot;</screen>
680       <para>Associates a directory with the pool <literal>my_pool</literal>, so all new files and directories are created in the pool.</para>
681       <screen>$ lfs setstripe --pool my_pool /mnt/lustre/dir</screen>
682     </section>
683     <section remap="h5">
684       <title>See Also</title>
685       <para><xref linkend="dbdoclet.50438219_38274"/></para>
686     </section>
687   </section>
688   <section xml:id="dbdoclet.50438206_42260">
689     <title><indexterm><primary>lfs_migrate</primary></indexterm>
690       <literal>lfs_migrate</literal>
691     </title>
692     <para>The <literal>lfs_migrate</literal> utility is a simple tool to migrate files between Lustre OSTs.</para>
693     <section remap="h5">
694       <title>Synopsis</title>
695       <screen>lfs_migrate [-c <replaceable>stripecount</replaceable>] [-h] [-l] [-n] [-q] [-R] [-s] [-y] [file|directory ...]</screen>
696     </section>
697     <section remap="h5">
698       <title>Description</title>
699       <para>The <literal>lfs_migrate</literal> utility is a simple tool to assist migration of files between Lustre OSTs. The utility copies each specified file to a new file, verifies the file contents have not changed, and then renames the new file to the original filename. This allows balanced space usage between OSTs, moving files of OSTs that are starting to show hardware problems (though are still functional) or OSTs that will be discontinued.</para>
700       <para>Because <literal>lfs_migrate</literal> is not closely integrated with the MDS, it cannot determine whether a file is currently open and/or in-use by other applications or nodes. This makes it UNSAFE for use on files that might be modified by other applications, since the migrated file is only a copy of the current file. This results in the old file becoming an open-unlinked file and any modifications to that file are lost.</para>
701       <para>Files to be migrated can be specified as command-line arguments. If a directory is specified on the command-line then all files within the directory are migrated. If no files are specified on the command-line, then a list of files is read from the standard input, making <literal>lfs_migrate</literal> suitable for use with <literal>lfs</literal> find to locate files on specific OSTs and/or matching other file attributes.</para>
702       <para>The current file allocation policies on the MDS dictate where the new files are placed, taking into account whether specific OSTs have been disabled on the MDS via <literal>lctl</literal> (preventing new files from being allocated there), whether some OSTs are overly full (reducing the number of files placed on those OSTs), or if there is a specific default file striping for the target directory (potentially changing the stripe count, stripe size, OST pool, or OST index of a new file).</para>
703     </section>
704     <section remap="h5">
705       <title>Options</title>
706       <para>Options supporting <literal>lfs_migrate</literal> are described below.</para>
707       <informaltable frame="all">
708         <tgroup cols="2">
709           <colspec colname="c1" colwidth="50*"/>
710           <colspec colname="c2" colwidth="50*"/>
711           <thead>
712             <row>
713               <entry>
714                 <para><emphasis role="bold">Option</emphasis></para>
715               </entry>
716               <entry>
717                 <para><emphasis role="bold">Description</emphasis></para>
718               </entry>
719             </row>
720           </thead>
721           <tbody>
722             <row>
723               <entry>
724                 <para>
725                   <literal>-c <replaceable>stripecount</replaceable></literal></para>
726               </entry>
727               <entry>
728                 <para>Restripe file using the specified stripe count. This option may not be
729                   specified at the same time as the <literal>-R</literal> option.</para>
730               </entry>
731             </row>
732             <row>
733               <entry>
734                 <para>
735                   <literal>-h</literal></para>
736               </entry>
737               <entry>
738                 <para>Display help information.</para>
739               </entry>
740             </row>
741             <row>
742               <entry>
743                 <literal>-l</literal>
744               </entry>
745               <entry>
746                 <para>Migrate files with hard links (skips, by default). Files with multiple hard
747                   links are split into multiple separate files by <literal>lfs_migrate</literal>, so
748                   they are skipped, by default, to avoid breaking the hard links.</para>
749               </entry>
750             </row>
751             <row>
752               <entry>
753                 <literal>-n</literal>
754               </entry>
755               <entry>
756                 <para>Only print the names of files to be migrated.</para>
757               </entry>
758             </row>
759             <row>
760               <entry>
761                 <para> <literal>-q</literal></para>
762               </entry>
763               <entry>
764                 <para>Run quietly (does not print filenames or status).</para>
765               </entry>
766             </row>
767             <row>
768               <entry><literal>-R</literal></entry>
769               <entry>Restripe file using default directory striping instead of keeping striping.
770                 This option may not be specified at the same time as the <literal>-c</literal>
771                 option.</entry>
772             </row>
773             <row>
774               <entry>
775                 <literal>-s</literal></entry>
776               <entry>Skip file data comparison after migrate. Default is to compare migrated file
777                 against original to verify correctness.</entry>
778             </row>
779             <row>
780               <entry>
781                 <para>
782                   <literal>-y</literal></para>
783               </entry>
784               <entry>
785                 <para>Answer &apos;<literal>y</literal>&apos; to usage warning without prompting
786                   (for scripts, use with caution).</para>
787               </entry>
788             </row>
789           </tbody>
790         </tgroup>
791       </informaltable>
792     </section>
793     <section remap="h5">
794       <title>Examples</title>
795       <para>Rebalances all files in <literal>/mnt/lustre/dir</literal>.</para>
796       <screen>$ lfs_migrate /mnt/lustre/file</screen>
797       <para>Migrates files in /test filesystem on OST004 larger than 4 GB in size.</para>
798       <screen>$ lfs find /test -obd test-OST004 -size +4G | lfs_migrate -y</screen>
799     </section>
800     <section remap="h5">
801       <title>See Also</title>
802       <para><xref linkend="dbdoclet.50438206_94597"/></para>
803     </section>
804   </section>
805   <section xml:id="dbdoclet.50438206_91700">
806     <title><indexterm><primary>lfsck</primary></indexterm>
807        <literal>lfsck</literal>
808     </title>
809     <para><literal>lfsck</literal> ensures that objects are not referenced by multiple MDS files,
810       that there are no orphan objects on the OSTs (objects that do not have any file on the MDS
811       which references them), and that all of the objects referenced by the MDS exist. Under normal
812       circumstances, the Lustre software maintains such coherency by distributed logging mechanisms,
813       but under exceptional circumstances that may fail (e.g. disk failure, file system corruption
814       leading to e2fsck repair). To avoid lengthy downtime, you can also run
815         <literal>lfsck</literal> once the Lustre file system is already started.</para>
816     <para>The <literal>e2fsck</literal> utility is run on each of the local MDS and OST device file systems and verifies that the underlying <literal>ldiskfs</literal> is consistent. After <literal>e2fsck</literal> is run, <literal>lfsck</literal> does distributed coherency checking for the Lustre file system. In most cases, <literal>e2fsck</literal> is sufficient to repair any file system issues and <literal>lfsck</literal> is not required.</para>
817     <section remap="h5">
818       <title>Synopsis</title>
819       <screen>lfsck [-c|--create] [-d|--delete] [-f|--force] [-h|--help] [-l|--lostfound] [-n|--nofix] [-v|--verbose] --mdsdb <replaceable>mds_database_file</replaceable> --ostdb <replaceable>ost1_database_file</replaceable>[<replaceable>ost2_database_file</replaceable>...] <replaceable>/mount_point</replaceable>
820 </screen>
821       <note>
822         <para>As shown, the <literal><replaceable>/mount_point</replaceable></literal> parameter refers to the Lustre file system mount point. The default mount point is <literal>/mnt/lustre</literal>.</para>
823       </note>
824       <note>
825         <para>For <literal>lfsck</literal>, database filenames must be provided as absolute pathnames. Relative paths do not work, the databases cannot be properly opened.</para>
826       </note>
827     </section>
828     <section remap="h5">
829       <title>Options</title>
830       <para>The options and descriptions for the <literal>lfsck</literal> command are listed below.</para>
831       <informaltable frame="all">
832         <tgroup cols="2">
833           <colspec colname="c1" colwidth="50*"/>
834           <colspec colname="c2" colwidth="50*"/>
835           <thead>
836             <row>
837               <entry>
838                 <para><emphasis role="bold">Option</emphasis></para>
839               </entry>
840               <entry>
841                 <para><emphasis role="bold">Description</emphasis></para>
842               </entry>
843             </row>
844           </thead>
845           <tbody>
846             <row>
847               <entry>
848                 <para> <literal>-c</literal></para>
849               </entry>
850               <entry>
851                 <para>Creates (empty) missing OST objects referenced by MDS inodes.</para>
852               </entry>
853             </row>
854             <row>
855               <entry>
856                 <para> <literal>-d</literal></para>
857               </entry>
858               <entry>
859                 <para>Deletes orphaned objects from the file system. Since objects on the OST are often only one of several stripes of a file, it can be difficult to compile multiple objects together in a single, usable file.</para>
860               </entry>
861             </row>
862             <row>
863               <entry>
864                 <para> <literal>-h</literal></para>
865               </entry>
866               <entry>
867                 <para>Prints a brief help message.</para>
868               </entry>
869             </row>
870             <row>
871               <entry>
872                 <para> <literal>-l</literal></para>
873               </entry>
874               <entry>
875                 <para>Puts orphaned objects into a <literal>lost+found</literal> directory in the root of the file system.</para>
876               </entry>
877             </row>
878             <row>
879               <entry>
880                 <para> <literal>-n</literal></para>
881               </entry>
882               <entry>
883                 <para>Does not repair the file system, just performs a read-only check (default).</para>
884               </entry>
885             </row>
886             <row>
887               <entry>
888                 <para> <literal>-v</literal></para>
889               </entry>
890               <entry>
891                 <para>Verbose operation - more verbosity by specifying the option multiple times.</para>
892               </entry>
893             </row>
894             <row>
895               <entry>
896                 <para> <literal>--mdsdb</literal></para>
897                 <para><literal>mds_database_file</literal></para>
898               </entry>
899               <entry>
900                 <para>MDT database file created by running <literal>e2fsck --mdsdb <replaceable>mds_database_file</replaceable> <replaceable>/dev/mdt_device</replaceable></literal> on the MDT backing device. This is required.</para>
901               </entry>
902             </row>
903             <row>
904               <entry>
905                 <para> <literal>--ostdb <replaceable>ost1_database_file</replaceable></literal></para>
906                 <para><literal>[<replaceable>ost2_database_file</replaceable>...]</literal></para>
907               </entry>
908               <entry>
909                 <para>OST database files created by running <literal>e2fsck --ostdb <replaceable>ost_database_file</replaceable> <replaceable>/dev/ost_device</replaceable></literal> on each of the OST backing devices. These are required unless an OST is unavailable, in which case all objects thereon are considered missing.</para>
910               </entry>
911             </row>
912           </tbody>
913         </tgroup>
914       </informaltable>
915     </section>
916     <section remap="h5">
917       <title>Description</title>
918       <para>The <literal>lfsck</literal> utility is used to check and repair the distributed coherency of a Lustre file system. If an MDS or an OST becomes corrupt, run a distributed check on the file system to determine what sort of problems exist. Use lfsck to correct any defects found.</para>
919       <para>For more information on using <literal>e2fsck</literal> and <literal>lfsck</literal>, including examples, see <xref linkend="commitonshare"/> (Commit on Share). For information on resolving orphaned objects, see <xref linkend="dbdoclet.50438225_13916"/> (Working with Orphaned Objects).</para>
920     </section>
921   </section>
922   <section xml:id="dbdoclet.50438206_75125">
923     <title><indexterm><primary>filefrag</primary></indexterm>
924       <literal>filefrag</literal>
925     </title>
926     <para>The <literal>e2fsprogs</literal> package contains the <literal>filefrag</literal> tool which reports the extent of file fragmentation.</para>
927     <section remap="h5">
928       <title>Synopsis</title>
929       <screen>filefrag [ -belsv ] [ files...  ]</screen>
930     </section>
931     <section remap="h5">
932       <title>Description</title>
933       <para>The <literal>filefrag</literal> utility reports the extent of fragmentation in a given file. Initially, <literal>filefrag</literal> attempts to obtain extent information using <literal>FIEMAP ioctl</literal>, which is efficient and fast. If <literal>FIEMAP</literal> is not supported, then <literal>filefrag</literal> uses <literal>FIBMAP</literal>.</para>
934       <note>
935         <para>The Lustre software only supports <literal>FIEMAP ioctl</literal>. <literal>FIBMAP
936             ioctl</literal> is not supported.</para>
937       </note>
938       <para>In default mode <footnote>
939           <para>The default mode is faster than the verbose/extent mode.</para>
940         </footnote>, <literal>filefrag</literal> returns the number of physically discontiguous
941         extents in the file. In extent or verbose mode, each extent is printed with details. For a
942         Lustre file system, the extents are printed in device offset order, not logical offset
943         order.</para>
944     </section>
945     <section remap="h5">
946       <title>Options</title>
947       <para>The options and descriptions for the <literal>filefrag</literal> utility are listed below.</para>
948       <informaltable frame="all">
949         <tgroup cols="2">
950           <colspec colname="c1" colwidth="50*"/>
951           <colspec colname="c2" colwidth="50*"/>
952           <thead>
953             <row>
954               <entry>
955                 <para><emphasis role="bold">Option</emphasis></para>
956               </entry>
957               <entry>
958                 <para><emphasis role="bold">Description</emphasis></para>
959               </entry>
960             </row>
961           </thead>
962           <tbody>
963             <row>
964               <entry>
965                 <para> <literal>-b</literal></para>
966               </entry>
967               <entry>
968                 <para>Uses the 1024-byte blocksize for the output. By default, this blocksize is
969                   used by the Lustre file system, since OSTs may use different block sizes.</para>
970               </entry>
971             </row>
972             <row>
973               <entry>
974                 <para> <literal>-e</literal></para>
975               </entry>
976               <entry>
977                 <para>Uses the extent mode when printing the output.</para>
978               </entry>
979             </row>
980             <row>
981               <entry>
982                 <para> <literal>-l</literal></para>
983               </entry>
984               <entry>
985                 <para>Displays extents in LUN offset order.</para>
986               </entry>
987             </row>
988             <row>
989               <entry>
990                 <para> <literal>-s</literal></para>
991               </entry>
992               <entry>
993                 <para>Synchronizes the file before requesting the mapping.</para>
994               </entry>
995             </row>
996             <row>
997               <entry>
998                 <para> <literal>-v</literal></para>
999               </entry>
1000               <entry>
1001                 <para>Uses the verbose mode when checking file fragmentation.</para>
1002               </entry>
1003             </row>
1004           </tbody>
1005         </tgroup>
1006       </informaltable>
1007     </section>
1008     <section remap="h5">
1009       <title>Examples</title>
1010       <para>Lists default output.</para>
1011       <screen>$ filefrag /mnt/lustre/foo
1012 /mnt/lustre/foo: 6 extents found</screen>
1013       <para>Lists verbose output in extent format.</para>
1014       <screen>$ filefrag  -ve /mnt/lustre/foo 
1015 Checking /mnt/lustre/foo
1016 Filesystem type is: bd00bd0
1017 Filesystem cylinder groups is approximately 5
1018 File size of /mnt/lustre/foo is 157286400 (153600 blocks)
1019 ext:       device_logical:         start..end              physical:               start..end:             length:         device:         flags:
1020 0: 0..                     49151:                  212992..                262144:                 49152:          0:              remote
1021 1: 49152..                 73727:                  270336..                294912:                 24576:          0:              remote
1022 2: 73728..                 76799:                  24576..                 27648:                  3072:           0:              remote
1023 3: 0..                     57343:                  196608..                253952:                 57344:          1:              remote
1024 4: 57344..                 65535:                  139264..                147456:                 8192:           1:              remote
1025 5: 65536..                 76799:                  163840..                175104:                 11264:          1:              remote
1026 /mnt/lustre/foo: 6 extents found</screen>
1027     </section>
1028   </section>
1029   <section xml:id="dbdoclet.50438206_86244">
1030     <title><indexterm><primary>mount</primary></indexterm>
1031       <literal>mount</literal>
1032     </title>
1033     <para>The standard <literal>mount(8)</literal> Linux command is used to mount a Lustre file
1034       system. When mounting a Lustre file system, mount(8) executes the
1035         <literal>/sbin/mount.lustre</literal> command to complete the mount. The mount command
1036       supports these options specific to a Lustre file system:</para>
1037     <informaltable frame="all">
1038       <tgroup cols="2">
1039         <colspec colname="c1" colwidth="50*"/>
1040         <colspec colname="c2" colwidth="50*"/>
1041         <thead>
1042           <row>
1043             <entry>
1044               <para><emphasis role="bold">Server options</emphasis></para>
1045             </entry>
1046             <entry>
1047               <para><emphasis role="bold">Description</emphasis></para>
1048             </entry>
1049           </row>
1050         </thead>
1051         <tbody>
1052           <row>
1053             <entry>
1054               <para> <literal>abort_recov</literal></para>
1055             </entry>
1056             <entry>
1057               <para>Aborts recovery when starting a target</para>
1058             </entry>
1059           </row>
1060           <row>
1061             <entry>
1062               <para> <literal>nosvc</literal></para>
1063             </entry>
1064             <entry>
1065               <para>Starts only MGS/MGC servers</para>
1066             </entry>
1067           </row>
1068           <row>
1069             <entry>
1070               <para> <literal>nomgs</literal></para>
1071             </entry>
1072             <entry>
1073               <para>Start a MDT with a co-located MGS without starting the MGS</para>
1074             </entry>
1075           </row>
1076           <row>
1077             <entry>
1078               <para> <literal>exclude</literal></para>
1079             </entry>
1080             <entry>
1081               <para>Starts with a dead OST</para>
1082             </entry>
1083           </row>
1084           <row>
1085             <entry>
1086               <para> <literal>md_stripe_cache_size</literal></para>
1087             </entry>
1088             <entry>
1089               <para>Sets the stripe cache size for server side disk with a striped raid configuration</para>
1090             </entry>
1091           </row>
1092         </tbody>
1093       </tgroup>
1094     </informaltable>
1095     <informaltable frame="all">
1096       <tgroup cols="2">
1097         <colspec colname="c1" colwidth="50*"/>
1098         <colspec colname="c2" colwidth="50*"/>
1099         <thead>
1100           <row>
1101             <entry>
1102               <para><emphasis role="bold">Client options</emphasis></para>
1103             </entry>
1104             <entry>
1105               <para><emphasis role="bold">Description</emphasis></para>
1106             </entry>
1107           </row>
1108         </thead>
1109         <tbody>
1110           <row>
1111             <entry>
1112               <para> <literal>flock/noflock/localflock</literal></para>
1113             </entry>
1114             <entry>
1115               <para>Enables/disables global flock or local flock support</para>
1116             </entry>
1117           </row>
1118           <row>
1119             <entry>
1120               <para> <literal>user_xattr/nouser_xattr</literal></para>
1121             </entry>
1122             <entry>
1123               <para>Enables/disables user-extended attributes</para>
1124             </entry>
1125           </row>
1126           <row>
1127             <entry>
1128               <para> <literal>user_fid2path/nouser_fid2path</literal></para>
1129             </entry>
1130             <entry>
1131               <para condition='l23'>Enables/disables FID to path translation by regular users</para>
1132             </entry>
1133           </row>
1134           <row>
1135             <entry>
1136               <para> <literal>retry=</literal></para>
1137             </entry>
1138             <entry>
1139               <para>Number of times a client will retry to mount the file system</para>
1140             </entry>
1141           </row>
1142         </tbody>
1143       </tgroup>
1144     </informaltable>
1145   </section>
1146   <section xml:id="dbdoclet.50438206_56217">
1147     <title>Handling Timeouts</title>
1148     <para>Timeouts are the most common cause of hung applications. After a timeout involving an MDS or failover OST, applications attempting to access the disconnected resource wait until the connection gets established.</para>
1149     <para>When a client performs any remote operation, it gives the server a reasonable amount of time to respond. If a server does not reply either due to a down network, hung server, or any other reason, a timeout occurs which requires a recovery.</para>
1150     <para>If a timeout occurs, a message (similar to this one), appears on the console of the client, and in <literal>/var/log/messages</literal>:</para>
1151     <screen>LustreError: 26597:(client.c:810:ptlrpc_expire_one_request()) @@@ timeout
1152  
1153 req@a2d45200 x5886/t0 o38-&gt;mds_svc_UUID@NID_mds_UUID:12 lens 168/64 ref 1 fl
1154  
1155 RPC:/0/0 rc 0</screen>
1156   </section>
1157 </chapter>