Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
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 .