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.

If you determine the LAST_ID file on the OST is incorrect (that is, it does not match<br />

what objects exist, does not match the MDS lov_objid value), then you have decided<br />

on a proper value for LAST_ID.<br />

Once you have decided on a proper value for LAST_ID, use this repair procedure.<br />

1. Access:<br />

mount -t ldiskfs /dev/{ostdev} /mnt/ost<br />

2. Check the current:<br />

od -Ax -td8 /mnt/ost/O/0/LAST_ID<br />

3. Be very safe, only work on backups:<br />

cp /mnt/ost/O/0/LAST_ID /tmp/LAST_ID<br />

4. Convert binary to text:<br />

xxd /tmp/LAST_ID /tmp/LAST_ID.asc<br />

5. Fix:<br />

vi /tmp/LAST_ID.asc<br />

6. Convert to binary:<br />

xxd -r /tmp/LAST_ID.asc /tmp/LAST_ID.new<br />

7. Verify:<br />

od -Ax -td8 /tmp/LAST_ID.new<br />

8. Replace:<br />

cp /tmp/LAST_ID.new /mnt/ost/O/0/LAST_ID<br />

9. Clean up:<br />

umount /mnt/ost<br />

D-26 <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!