[LU-15868] LFSCK fix inconsistencies in directory migration failure Created: 18/May/22  Updated: 26/Jul/22  Resolved: 18/Jul/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Bug Priority: Minor
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-16036 sanity-lfsck test_15d: rm d15d.sanity... Open
is related to LU-14719 "lfs migrate -m" creates broken agent... Resolved
is related to LU-15886 remove unreasonable assertions in LFS... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

If directory migration fails in the middle, the system may become inconsistent, and some files may get missing. LFSCK should use the informations in directory layout to restore system to consistent mode.

This will be done in two phases, in the first phase, LFSCK against such directories won't resolve all the inconsistencies, but it shouldn't cause additional issues, and after LFSCK the directories should be accessed, though some file may get lost, while in the second phase, LFSCK should use the informations in directory layout to restore system to consistent mode, and should avoid file missing.



 Comments   
Comment by Gerrit Updater [ 18/May/22 ]

"Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47381
Subject: LU-15868 lfsck: don't crash upon dir migration failure
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ae867573d4c590f1eb8574b410fd4e6735236b10

Comment by Gerrit Updater [ 18/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47381/
Subject: LU-15868 lfsck: don't crash upon dir migration failure
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 54a2d4662b58e2ba4224b0e6b487a0a7cd2f28bb

Comment by Peter Jones [ 18/Jul/22 ]

Landed for 2.16

Generated at Sat Feb 10 03:21:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.