[LU-13619] migrate does not update lmm_fid Created: 01/Jun/20  Updated: 01/Jun/20

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Alexander Zarochentsev Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-13535 Files truncated/corruption due to lfsck Resolved
is related to LU-13426 "lfs migrate" on DoM component clobbe... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

MDT->MDT migrate does not update lmm_fid and it still contains old fid:

[root@devvm1 tests]# ../utils/lfs mkdir -i 1  /mnt/lustre/testdir
[root@devvm1 tests]# ../utils/lfs setstripe -E 1M -c1 -S 1M -E eof -c2 -S 4M /mnt/lustre/testdir/
[root@devvm1 tests]# touch /mnt/lustre/testdir/foo 
[root@devvm1 tests]# ../utils/lfs migrate -m 0  /mnt/lustre/testdir/
[root@devvm1 tests]# ../utils/lfs getstripe -v  /mnt/lustre/testdir/foo 
/mnt/lustre/testdir/foo
composite_header:
  lcm_magic:         0x0BD60BD0
  lcm_size:          240
  lcm_flags:         0
  lcm_layout_gen:    2
  lcm_mirror_count:  1
  lcm_entry_count:   2
components:
  - lcme_id:             1
    lcme_mirror_id:      0
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   1048576
    lcme_offset:         128
    lcme_size:           56
    sub_layout:
      lmm_magic:         0x0BD10BD0
      lmm_seq:           0x240000403
      lmm_object_id:     0x2
      lmm_fid:           [0x240000403:0x2:0x0]
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 0
      lmm_objects:
      - 0: { l_ost_idx: 0, l_fid: [0x2c0000401:0x2:0x0] }

  - lcme_id:             2
    lcme_mirror_id:      0
    lcme_flags:          0
    lcme_extent.e_start: 1048576
    lcme_extent.e_end:   EOF
    lcme_offset:         184
    lcme_size:           56
    sub_layout:
      lmm_magic:         0x0BD10BD0
      lmm_seq:           0x240000403
      lmm_object_id:     0x2
      lmm_fid:           [0x240000403:0x2:0x0]
      lmm_stripe_count:  2
      lmm_stripe_size:   4194304
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: -1

[root@devvm1 tests]# ../utils/lfs path2fid  /mnt/lustre/testdir/foo 
[0x200000403:0x2:0x0]
[root@devvm1 tests]#

new FID is [0x200000403:0x2:0x0] while lmm_fid still contains old FID [0x240000403:0x2:0x0] from MDT1 .

the issue is similar to LU-13426 but still exists after applying LU-13426 fix.
Also it may be responsible for triggering LU-13535 in Lustre-2.12 .



 Comments   
Comment by Mikhail Pershin [ 01/Jun/20 ]

Yes, it is directly connected with LU-13535 issue, because latter happened exactly after directory migration. Meanwhile it is not the reason of LU-13535 bug itself which is lfsck bug but worked as trigger for that bug. Anyway, it is still worth to investigate why lmm_oi is not updated during directory migration even if lfsck is able to fix that properly.

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