[LU-1267] LFSCK II: MDT-OST consistency check/repair Created: 29/Mar/12 Updated: 17/Mar/14 Due: 31/Jul/13 Resolved: 17/Mar/14 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.6.0 |
| Fix Version/s: | Lustre 2.6.0 |
| Type: | New Feature | Priority: | Critical |
| Reporter: | nasf (Inactive) | Assignee: | nasf (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | LFSCK | ||
| Issue Links: |
|
|||||||||||||||||||||||||||||||||||||||||||||
| Sub-Tasks: |
|
|||||||||||||||||||||||||||||||||||||||||||||
| Story Points: | 89 | |||||||||||||||||||||||||||||||||||||||||||||
| Severity: | 3 | |||||||||||||||||||||||||||||||||||||||||||||
| Epic: | layout | |||||||||||||||||||||||||||||||||||||||||||||
| Rank (Obsolete): | 4024 | |||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
In Lustre, for striped (non-zero striped) file, the layout information for each OST-object is recorded as extended attributes (XATTR_NAME_LOV) in its MDT-object on MDT. Such EA contains the OST index, OID or FID of the OST-object, and so on. On OST-side, each OST-object records the information (MDT-object FID) that indicates which file the OST object belongs to. Over the lifetime of an active filesystem, the layout information in MDT-object's EA may be inconsistent with the information on OST. There are several inconsistent cases as following: 1. OST-object1 is marked as part of file1 on MDT, but OST-object1 is unassigned or uninitialized on OST. These inconsistent cases will misguide client/MDS when access related OST-objects, waste space, lose data, even destroy all the system. In LFSCK phase II, we will implement an online tool to check and repair the file layout inconsistency. Such tool will use the inode iterator implemented in LFSCK phase I to scan the whole system, and can be driven together with other LFSCK components. On the other hand, the owner information, UID and GID of OST-objects will also be verified to match that of the MDT-object, the inconsistent ones will be fixed, to ensure correct quota allocation. |
| Comments |
| Comment by nasf (Inactive) [ 29/Dec/12 ] |
|
This task will be postponed until DNE I and LFSCK 1.5 completed. |
| Comment by nasf (Inactive) [ 27/Apr/13 ] |
|
The task is restarted. |
| Comment by nasf (Inactive) [ 02/Sep/13 ] |
|
All the LFSCK phase II patches have been landed to master as following: 1) http://review.whamcloud.com/#/c/7145/ |
| Comment by Lai Siyao [ 30/Dec/13 ] |
|
I have several concerns in the design for LWP and LFCK repair threads: |
| Comment by Jodi Levi (Inactive) [ 17/Mar/14 ] |
|
All patches landed to Master. |