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 quota [-o obd_uuid] [-u|-g] <name> <filesystem>
150 \begin_layout Standard
157 \begin_layout Standard
164 \begin_layout Subsection
168 \begin_layout Standard
169 This utility can be used to create a new file with a specific striping pattern,
170 determine the default striping pattern, gather the extended attributes
171 (object numbers and location) for a specific file, and manipulate disk
173 It can be invoked interactively without any arguments or in a non-interactive
174 mode with one of the arguements listed and explained below:
178 \labelwidthstring 00.00.0000
183 To create a new file with a specific striping pattern
187 \labelwidthstring 00.00.0000
192 To search the directory tree rooted at the given dir/file name for the
193 files that match the given parameters: --atime (file was last accessed
194 N*24 hours ago), --ctime (file's status was last changed N*24 hours ago),
195 --mtime (file's data was last modified N*24 hours ago), --obd (file has
196 an object on a specific OST).
197 The option --maxdepth allows find to decend at most N levels of directory
199 The options --print and --print0 print full file name, followed by a newline
200 and null character correspondingly.
204 \labelwidthstring 00.00.0000
209 To list the striping info for a given filename or files in a directory
210 or recursively for all files in a directory tree use one of the following
211 options: [--quiet|-q] [--verbose|-v] [--recursive|-r].
212 If one of these options is given find works in old (obsolete, please use
213 getstripe instead) mode.
218 \labelwidthstring 00.00.0000
223 To list the striping info for given filename or files in a directory or
224 recursively for all files in a directory tree.
225 It can also be used to list the files that have objects on a specific OST.
229 \labelwidthstring 00.00.0000
234 Display the status of MDS or OSTs (as specified in the command) or all the
235 servers (MDS and OSTs)
239 \labelwidthstring 00.00.0000
244 List all the OSTs for the filesystem
248 \labelwidthstring 00.00.0000
253 Change files' owner and group on OSTs of the specified filesystem
257 \labelwidthstring 00.00.0000
262 Scan the specified filesystem for disk usage, and create or update quota
267 \labelwidthstring 00.00.0000
272 Turn filesystem quotas on
276 \labelwidthstring 00.00.0000
281 Turn filesystem quotas off
285 \labelwidthstring 00.00.0000
290 Set filesystem quotas
294 \labelwidthstring 00.00.0000
299 Display disk usage and limits
303 \labelwidthstring 00.00.0000
308 Report filesystem disk space usage or inodes usage of each MDS/OSD.
312 \labelwidthstring 00.00.0000
317 Provides brief help on the various arguments
321 \labelwidthstring 00.00.0000
326 Quit the interactive lfs session
329 \begin_layout Subsection
333 \begin_layout Description
334 This creates a file striped on one OST
337 \begin_layout LyX-Code
338 $ lfs setstripe /mnt/lustre/file1 131072 0 1
341 \begin_layout Description
342 This creates a default stripe pattern on and existing dir for all new files
346 \begin_layout LyX-Code
347 $ lfs setstripe /mnt/lustre/dir 131072 0 1
350 \begin_layout Description
351 This deletes a default stripe pattern on dir.
352 New files will use the default striping pattern.
356 \begin_layout LyX-Code
357 $ lfs setstripe -d /mnt/lustre/dir
360 \begin_layout Description
361 Listing the extended attributes of a given file
364 \begin_layout LyX-Code
365 $ lfs find /mnt/lustre/foo1
368 \begin_layout LyX-Code
372 \begin_layout LyX-Code
373 0: OST_localhost_UUID
376 \begin_layout LyX-Code
380 \begin_layout LyX-Code
381 obdidx objid objid group
384 \begin_layout LyX-Code
388 \begin_layout Description
389 Listing the extended attributes of all files in a given directory
392 \begin_layout LyX-Code
393 $ lfs find /mnt/lustre/
396 \begin_layout Description
397 Recursively list the extended attributes of all files in a given directory
401 \begin_layout LyX-Code
402 $ lfs find -r /mnt/lustre/
405 \begin_layout Description
406 List all the files that have objects on a specific OST
409 \begin_layout LyX-Code
410 $ lfs find -r --obd OST2_UUID /mnt/lustre/
413 \begin_layout Description
414 Check the status of all servers(mds, osts)
417 \begin_layout LyX-Code
421 \begin_layout LyX-Code
422 OSC_localhost.localdomain_OST_localhost_mds1 active.
426 \begin_layout LyX-Code
427 OSC_localhost.localdomain_OST_localhost_MNT_localhost active.
431 \begin_layout LyX-Code
432 MDC_localhost.localdomain_mds1_MNT_localhost active.
435 \begin_layout LyX-Code
439 \begin_layout Description
443 \begin_layout LyX-Code
447 \begin_layout LyX-Code
451 \begin_layout LyX-Code
452 0: OST_localhost_UUID
455 \begin_layout LyX-Code
459 \begin_layout Description
467 \begin_layout LyX-Code
468 $lfs quotachog -i /mnt/lustre
471 \begin_layout Description
472 Quotacheck\InsetSpace ~
479 \begin_layout LyX-Code
480 $lfs quotacheck -ug /mnt/lustre
483 \begin_layout Description
493 \begin_layout LyX-Code
494 $lfs quotaon -ug /mnt/lustre
497 \begin_layout Description
507 \begin_layout LyX-Code
508 $lfs quotaoff -ug /mnt/lustre
511 \begin_layout Description
526 \begin_layout LyX-Code
527 $lfs setquota -u bob 0 1000000 0 10000 /mnt/lustre
530 \begin_layout Description
538 \begin_layout LyX-Code
539 $lfs quota -u bob /mnt/lustre
542 \begin_layout Subsection
546 \begin_layout Standard