23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example:<br />

lfsck -n -v --mdsdb /home/mdsdb --ostdb /home/ostdb \<br />

/mnt/lustre/client/<br />

MDSDB: /home/mdsdb<br />

OSTDB[0]: /home/ostdb<br />

MOUNTPOINT: /mnt/lustre/client/<br />

MDS: max_id 288 OST: max_id 321<br />

lfsck: ost_idx 0: pass1: check for duplicate objects<br />

lfsck: ost_idx 0: pass1 OK (287 files total)<br />

lfsck: ost_idx 0: pass2: check for missing inode objects<br />

lfsck: ost_idx 0: pass2 OK (287 objects)<br />

lfsck: ost_idx 0: pass3: check for orphan objects<br />

[0] uuid lustre-OST0000_UUID<br />

[0] last_id 288<br />

[0] zero-length orphan objid 1<br />

lfsck: ost_idx 0: pass3 OK (321 files total)<br />

lfsck: pass4: check for duplicate object references<br />

lfsck: pass4 OK (no duplicates)<br />

lfsck: fixed 0 errors<br />

By default, lfsck does not repair any inconsistencies it finds, it only reports errors.<br />

It checks for three kinds of inconsistencies:<br />

■ Inode exists but has missing objects = dangling inode. Normally, this happens if<br />

there was a problem with an OST.<br />

■ Inode is missing but the OST has unreferenced objects = orphan object. Normally,<br />

this happens if there was a problem with the MDS.<br />

■ Multiple inodes reference the same objects. This happens if there was corruption<br />

on the MDS or if the MDS storage is cached and loses some, but not all, writes.<br />

If the filesystem is busy, lfsck may report inconsistencies where none exist because<br />

of files and objects being created/removed after the database files were collected.<br />

Examined the results closely; you probably want to contact <strong>Lustre</strong> Support for<br />

guidance.<br />

The easiest problem to resolve is orphaned objects. Use the -l option to lfsck so it<br />

links these objects to new files and puts them into lost+found in the <strong>Lustre</strong><br />

filesystem, where they can be examined and saved or deleted as necessary. If you are<br />

certain that the objects are not necessary, lfsck can run with the -d option to delete<br />

orphaned objects and free up any space they are using.<br />

Chapter 28 User Utilities (man1) 28-17

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

Saved successfully!

Ooh no, something went wrong!