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.

25.3.1 Changing Striping for a Subdirectory<br />

In a directory, the lfs setstripe command sets a default striping configuration<br />

for files created in the directory. The usage is the same as lfs setstripe for a<br />

regular file, except that the directory must exist prior to setting the default striping<br />

configuration. If a file is created in a directory with a default stripe configuration<br />

(without otherwise specifying striping), <strong>Lustre</strong> uses those striping parameters<br />

instead of the filesystem default for the new file.<br />

To change the striping pattern (file layout) for a sub-directory, create a directory with<br />

desired file layout as described above. Sub-directories inherit the file layout of the<br />

root/parent directory.<br />

Note – Striping of new files and sub-directories is done per the striping parameter<br />

settings of the root directory. Once you set striping on the root directory, then, by<br />

default, it applies to any new child directories created in that root directory (unless<br />

they have their own striping settings).<br />

25.3.2 Using a Specific Striping Pattern/File Layout for a<br />

Single File<br />

To use a specific striping pattern (file layout) for a specific file:<br />

lfs setstripe creates a file with a given stripe pattern (file layout)<br />

lfs setstripe fails if the file already exists<br />

Chapter 25 Striping and I/O Options 25-7

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

Saved successfully!

Ooh no, something went wrong!