Details
-
New Feature
-
Resolution: Fixed
-
Critical
-
Lustre 2.6.0
-
89
-
8252
Description
This ticket relates to handling of OST orphan cleanup. This includes:
- create an in-memory bitmap for OST FIDs that have been referenced during MDS Pass 1 checking
- after the OST Pass 2 scanning is complete, any OST objects that have not been referenced need to be verified with the MDT, and added to lost+found or unlinked (depending on administrator preference)
Attachments
Issue Links
Activity
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Fix Version/s | New: Lustre 2.6.0 [ 10595 ] |
Affects Version/s | New: Lustre 2.6.0 [ 10595 ] | |
Affects Version/s | Original: Lustre 2.5.0 [ 10295 ] |
Description |
Original:
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. 2. OST-object1 is marked as part of file1 on OST, but there is no record for OST-object1 on MDT. 3. OST-object1 is marked as part of file1 on OST, but MDT records that it belongs to file2. 4. OST-object1 is marked as part of file1 on OST, but both file1 and file2 on MDT claim that it owns OST-object1. 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. |
New:
This ticket relates to handling of OST orphan cleanup. This includes: - create an in-memory bitmap for OST FIDs that have been referenced during MDS Pass 1 checking - after the OST Pass 2 scanning is complete, any OST objects that have not been referenced need to be verified with the MDT, and added to {{lost+found}} or unlinked (depending on administrator preference) |