23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How do I set striping for a large number of files at one time?<br />

You can set a default striping on a directory, and then any regular files created<br />

within that directory inherit the default striping configuration. To do this, first create<br />

a directory if necessary and then set the default striping in the same manner as you<br />

do for a regular file:<br />

lfs setstripe -1 <br />

If the stripe_size value is zero (0), it uses the system-wide stripe size. If the<br />

stripe_count value is zero (0), it uses the default stripe count. If the stripe_count<br />

value is -1, it stripes across all available OSTs. The best performance for many clients<br />

writing to individual files is at 1 or 2 stripes per file, and maximum stripes for large<br />

shared-I/O files (i.e. many clients reading or writing the same file at one time).<br />

If I set the striping of N and B for a directory, do files in that directory<br />

inherit the striping or revert to the default?<br />

All new files get the new striping parameters, and existing files will keep their<br />

current striping (even if overwritten). To "undo" the default striping on a directory<br />

(to use system-wide defaults again) set the striping to "0 -1 0".<br />

Appendix D <strong>Lustre</strong> Knowledge Base D-9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!