Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Lustre 2.10.0, Lustre 2.11.0, Lustre 2.12.0, Lustre 2.13.0
-
None
-
3
-
9223372036854775807
Description
The following code in mdd_swap_layouts is not valid for PFL layout:
/* set the file specific informations in lmm */ if (fst_lmm != NULL) { saved_oi = &info->mti_oa.o_oi; mdd_get_lmm_oi(fst_lmm, saved_oi); mdd_set_lmm_gen(fst_lmm, &snd_gen); ----> mdd_set_lmm_oi(fst_lmm, &snd_lmm->lmm_oi); mdd_set_lmm_oi(snd_lmm, saved_oi); } else {
For PFL layout, snd_lmm does not point directly to a lov_mds_md structure but on a lov_comp_md_v1 structure.
We have to access to the different component entries defined inside lov_comp_md_v1 and then apply offsets to access to the lov_mds_md structures.
LFSK can correct this inconsistencies. this will increment the "inconsistencies_other/repaired_other" counter.
WARNING:
Do not try to run LFSCK on a 2.12.4 for this. This will corrupted every migrated layouts because of the LU-13535 "Files truncated/corruption due to lfsck"