1 #LyX 1.4.4 created this file. For more info see http://www.lyx.org/
10 \paperfontsize default
12 \papersize letterpaper
17 \paperorientation portrait
20 \paragraph_separation skip
22 \quotes_language english
25 \paperpagestyle default
26 \tracking_changes false
36 \begin_layout Subsection
40 \begin_layout Description
41 lfs Lustre utility to create a file with specific striping pattern and manipulat
45 \begin_layout Subsection
49 \begin_layout Standard
55 \begin_layout Standard
59 find [--atime|-A N] [--mtime|-M N] [--ctime|-C N] [--maxdepth|-D N] [--print0
60 |-P] [--print|-p] [--obd|-O <uuid>] <dir/file>
63 \begin_layout Standard
67 find [--quiet|-q] [--verbose|-v] [--recursive|-r] <dir/file>
70 \begin_layout Standard
74 getstripe [--obd|-O <uuid>] [--quiet|-q] [--verbose|-v] [--recursive|-r]
78 \begin_layout Standard
82 setstripe <filename|dirname> <stripe_size> <start_ost> <stripe_cnt>
85 \begin_layout Standard
88 lfs\InsetSpace \space{}
89 setstripe <filename|dirname> [--size|-s stripe_size] [--index|-i start_ost]
90 [--count|-c stripe_cnt]
93 \begin_layout Standard
97 setstripe -d <dirname>
100 \begin_layout Standard
104 check <mds| osts| servers>
107 \begin_layout Standard
111 quotachog [-i] <filesystem>
114 \begin_layout Standard
118 quotacheck [-ug] <filesystem>
121 \begin_layout Standard
125 quotaon [-ugf] <filesystem>
128 \begin_layout Standard
132 quotaoff [-ug] <filesystem>
135 \begin_layout Standard
139 setquota [-u|-g] <name> <block-softlimit> <block-hardlimit> <inode-softlimit>
140 <inode-hardlimit> <filesystem>
143 \begin_layout Standard
147 setquota -t [-u|-g] <block-grace> <inode-grace> <filesystem>
150 \begin_layout Standard
154 quota [-o obd_uuid] [-u|-g] <name> <filesystem>
157 \begin_layout Standard
164 \begin_layout Standard
171 \begin_layout Subsection
175 \begin_layout Standard
176 This utility can be used to create a new file with a specific striping pattern,
177 determine the default striping pattern, gather the extended attributes
178 (object numbers and location) for a specific file, and manipulate disk
180 It can be invoked interactively without any arguments or in a non-interactive
181 mode with one of the arguements listed and explained below:
185 \labelwidthstring 00.00.0000
190 To create a new file with a specific striping pattern
194 \labelwidthstring 00.00.0000
199 To search the directory tree rooted at the given dir/file name for the
200 files that match the given parameters: --atime (file was last accessed
201 N*24 hours ago), --ctime (file's status was last changed N*24 hours ago),
202 --mtime (file's data was last modified N*24 hours ago), --obd (file has
203 an object on a specific OST).
204 The option --maxdepth allows find to decend at most N levels of directory
206 The options --print and --print0 print full file name, followed by a newline
207 and null character correspondingly.
211 \labelwidthstring 00.00.0000
216 To list the striping info for a given filename or files in a directory
217 or recursively for all files in a directory tree use one of the following
218 options: [--quiet|-q] [--verbose|-v] [--recursive|-r].
219 If one of these options is given find works in old (obsolete, please use
220 getstripe instead) mode.
225 \labelwidthstring 00.00.0000
230 To list the striping info for given filename or files in a directory or
231 recursively for all files in a directory tree.
232 It can also be used to list the files that have objects on a specific OST.
236 \labelwidthstring 00.00.0000
241 Display the status of MDS or OSTs (as specified in the command) or all the
242 servers (MDS and OSTs)
246 \labelwidthstring 00.00.0000
251 List all the OSTs for the filesystem
255 \labelwidthstring 00.00.0000
260 Change files' owner and group on OSTs of the specified filesystem
264 \labelwidthstring 00.00.0000
269 Scan the specified filesystem for disk usage, and create or update quota
274 \labelwidthstring 00.00.0000
279 Turn filesystem quotas on
283 \labelwidthstring 00.00.0000
288 Turn filesystem quotas off
292 \labelwidthstring 00.00.0000
297 Set filesystem quotas
301 \labelwidthstring 00.00.0000
306 Display disk usage and limits
310 \labelwidthstring 00.00.0000
315 Report filesystem disk space usage or inodes usage of each MDS/OSD.
319 \labelwidthstring 00.00.0000
324 Provides brief help on the various arguments
328 \labelwidthstring 00.00.0000
333 Quit the interactive lfs session
336 \begin_layout Subsection
340 \begin_layout Description
341 This creates a file striped on one OST
344 \begin_layout LyX-Code
345 $ lfs setstripe /mnt/lustre/file1 131072 0 1
348 \begin_layout Description
349 This creates a default stripe pattern on and existing dir for all new files
353 \begin_layout LyX-Code
354 $ lfs setstripe /mnt/lustre/dir 131072 0 1
357 \begin_layout Description
358 This deletes a default stripe pattern on dir.
359 New files will use the default striping pattern.
363 \begin_layout LyX-Code
364 $ lfs setstripe -d /mnt/lustre/dir
367 \begin_layout Description
368 Listing the extended attributes of a given file
371 \begin_layout LyX-Code
372 $ lfs find /mnt/lustre/foo1
375 \begin_layout LyX-Code
379 \begin_layout LyX-Code
380 0: OST_localhost_UUID
383 \begin_layout LyX-Code
387 \begin_layout LyX-Code
388 obdidx objid objid group
391 \begin_layout LyX-Code
395 \begin_layout Description
396 Listing the extended attributes of all files in a given directory
399 \begin_layout LyX-Code
400 $ lfs find /mnt/lustre/
403 \begin_layout Description
404 Recursively list the extended attributes of all files in a given directory
408 \begin_layout LyX-Code
409 $ lfs find -r /mnt/lustre/
412 \begin_layout Description
413 List all the files that have objects on a specific OST
416 \begin_layout LyX-Code
417 $ lfs find -r --obd OST2_UUID /mnt/lustre/
420 \begin_layout Description
421 Check the status of all servers(mds, osts)
424 \begin_layout LyX-Code
428 \begin_layout LyX-Code
429 OSC_localhost.localdomain_OST_localhost_mds1 active.
433 \begin_layout LyX-Code
434 OSC_localhost.localdomain_OST_localhost_MNT_localhost active.
438 \begin_layout LyX-Code
439 MDC_localhost.localdomain_mds1_MNT_localhost active.
442 \begin_layout LyX-Code
446 \begin_layout Description
450 \begin_layout LyX-Code
454 \begin_layout LyX-Code
458 \begin_layout LyX-Code
459 0: OST_localhost_UUID
462 \begin_layout LyX-Code
466 \begin_layout Description
474 \begin_layout LyX-Code
475 $lfs quotachog -i /mnt/lustre
478 \begin_layout Description
479 Quotacheck\InsetSpace ~
486 \begin_layout LyX-Code
487 $lfs quotacheck -ug /mnt/lustre
490 \begin_layout Description
500 \begin_layout LyX-Code
501 $lfs quotaon -ug /mnt/lustre
504 \begin_layout Description
514 \begin_layout LyX-Code
515 $lfs quotaoff -ug /mnt/lustre
518 \begin_layout Description
533 \begin_layout LyX-Code
534 $lfs setquota -u bob 0 1000000 0 10000 /mnt/lustre
537 \begin_layout Description
559 \begin_layout LyX-Code
560 $lfs setquota -t -u 1000 1w4d /mnt/lustre
563 \begin_layout Description
571 \begin_layout LyX-Code
572 $lfs quota -u bob /mnt/lustre
575 \begin_layout Subsection
579 \begin_layout Standard