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.

Generally, a good stripe size for sequential I/O using high-speed networks is<br />

between 1 MB and 4 MB. Stripe sizes larger than 4 MB do not parallelize as<br />

effectively because <strong>Lustre</strong> tries to keep the amount of dirty cached data below 32 MB<br />

per server (with the default configuration).<br />

Writes which cross an object boundary are slightly less efficient than writes which go<br />

entirely to one server. Depending on your application's write patterns, you can assist<br />

it by choosing a stripe size with that in mind. If the file is written in a very consistent<br />

and aligned way, make the stripe size a multiple of the write() size.<br />

The choice of stripe size has no effect on a single-stripe file.<br />

25.2 Displaying Files and Directories with lfs<br />

getstripe<br />

Use lfs to print the index and UUID for each OST in the filesystem, along with the<br />

OST index and object ID for each stripe in the file. For directories, the default<br />

settings for files created in that directory are printed.<br />

lfs getstripe <br />

Use lfs find to inspect an entire tree of files.<br />

lfs find [--recursive | -r] ...<br />

If a process creates a file, use the lfs getstripe command to determine which<br />

OST(s) the file resides on.<br />

Using ‘cat’ as an example, run:<br />

$ cat > foo<br />

In another terminal, run:<br />

$ lfs getstripe /barn/users/jacob/tmp/foo<br />

OBDS<br />

25-4 <strong>Lustre</strong> <strong>1.6</strong> <strong>Operations</strong> <strong>Manual</strong> • September 2008

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

Saved successfully!

Ooh no, something went wrong!