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.

5. You can delete these files with the unlink or munlink command.<br />

# unlink|munlink filename {filename ...}<br />

Note – There is no functional difference between the unlink and munlink<br />

commands. The unlink command is for newer Linux distributions. You can run the<br />

munlink command if unlink is not available.<br />

When you run the unlink or munlink command, the file on the MDS is<br />

permanently removed.<br />

6. If you need to know, specifically, which parts of the file are missing data, then<br />

you first need to determine the file layout (striping pattern), which includes<br />

the index of the missing OST). Run:<br />

# lfs getstripe -v {filename}<br />

7. Use this computation is to determine which offsets in the file are affected:<br />

[(C*N + X)*S, (C*N + X)*S + S - 1], N = { 0, 1, 2, ...}<br />

where:<br />

C = stripe count<br />

S = stripe size<br />

X = index of bad OST for this file<br />

For example, for a file with 2 stripes, stripe size = 1M, bad OST is at index 0, then<br />

you would have holes in your file at: [(2*N + 0)*1M, (2*N + 0)*1M + 1M - 1], N = { 0,<br />

1, 2, ...}<br />

If the filesystem cannot be mounted, currently there is no way that parses metadata<br />

directly from an MDS. If the bad OST does not start, options to mount the filesystem<br />

are to provide a loop device OST in its place or replace it with a newly-formatted<br />

OST. In that case, the missing objects are created and are read as zero-filled.<br />

In <strong>Lustre</strong> <strong>1.6</strong> you can mount a filesystem with a missing OST.<br />

Chapter 22 <strong>Lustre</strong> Troubleshooting Tips 22-7

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

Saved successfully!

Ooh no, something went wrong!