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.

22.3.4 OSTs Become Read-Only<br />

If the SCSI devices are inaccessible to <strong>Lustre</strong> at the block device level, then ext3<br />

remounts the device<br />

read-only to prevent filesystem corruption. This is a normal behavior. The status in<br />

/proc/fs/lustre/healthcheck also shows "not healthy" on the affected nodes.<br />

To recover from this problem, you must restart <strong>Lustre</strong> services using these<br />

filesystems. There is no other way to know that the I/O made to disk, and the state<br />

of the cache may be inconsistent with what is on disk.<br />

22.3.5 Identifying a Missing OST<br />

If an OST is missing for any reason, you may need to know what files are affected.<br />

Although an OST is missing, the files system should be operational. From any<br />

mounted client node, generate a list of files that reside on the affected OST. It is<br />

advisable to mark the missing OST as ’unavailable’ so clients and the MDS do not<br />

time out trying to contact it.<br />

1. On MDS and client nodes, run:<br />

# lctl dl<br />

2. Deactivate the OST, run:<br />

# lctl --device deactivate<br />

Note that the device number will be different for the MDS and clients.<br />

Note – If the OST later becomes available it needs to be reactivated, run:<br />

# lctl --device activate<br />

3. Determine all the files that are striped over the missing OST, run:<br />

# lfs find -R -o {OST_UUID} /mountpoint<br />

This returns a simple list of filenames from the affected filesystem.<br />

4. If necessary, you can read the valid parts of a striped file, run:<br />

# dd if=filename of=new_filename bs=4k conv=sync,noerror<br />

22-6 <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!