Details
-
Type:
New Feature
-
Status: Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Lustre 2.7.0
-
Labels:
-
Epic:
-
Project:OpenSFS SFS-DEV-001
-
Rank (Obsolete):13167
Description
In LFSCK 3, we will not only extend the FID-in-dirent and linkEA verification from single MDT to cross-MDTs cases, but also some additional inconsistent check/repair for remote object and striped directory, includes:
1) Dangling referenced name entry: The name entry exists, but related MDT-object does not exist.
2) Orphan MDT-object: The MDT-object exists, but there is no name entry to reference it.
3) Multiple-referenced name entry: More than one MDT-objects point back to the same name entry, but the name entry only references one of them.
4) Unmatched name entry and MDT-object pairs: The name entry references the MDT-object which has no linkEA for back-reference or it points back to another name entry that does not exists or does not reference the MDT-object.
5) Redundant or invalid linkEA entries: Repeated linkEA entries, or bad parent FID, or the parent FID is not for MDT-object, or not allocated yet.
6) Invalid nlink count: The MDT-object's nlink count does not matches the name entries (which reference such MDT-object) count.
1. |
LFSCK 3 Test Plan | |
Resolved | nasf | |
2. |
LFSCK 3: Skip orphan objects handling for failed servers | |
Resolved | nasf | |
3. |
LFSCK 3: RPC adjustment for remote transaction | |
Resolved | nasf | |
4. |
LFSCK 3: get PFID from linkEA for remote directory on ldiskfs | |
Resolved | nasf | |
5. |
LFSCK 3: repair unmatched distributed parent-child pairs | |
Resolved | nasf | |
6. |
LFSCK 3: repair dangling name entry | |
Resolved | nasf | |
7. |
LFSCK 3: repair multiple referenced name entry | |
Resolved | nasf | |
8. |
LFSCK 3: repair bad file type in name entry | |
Resolved | nasf | |
9. |
LFSCK 3: repair the lost name entry | |
Resolved | nasf | |
10. |
LFSCK 3: repair invalid nlink count | |
Resolved | nasf | |
11. |
LFSCK 3: recover client visible objects from the backend /lost+found directory | |
Resolved | nasf | |
12. |
LFSCK 3: verify striped directory | |
Resolved | nasf |


The patches have been landed to master for LFSCK 3:
1) http://review.whamcloud.com/#/c/10030/
2) http://review.whamcloud.com/#/c/10143/
3) http://review.whamcloud.com/#/c/10447/
4) http://review.whamcloud.com/#/c/10733/
5) http://review.whamcloud.com/#/c/10751/
6) http://review.whamcloud.com/#/c/10765/