[LU-10829] lfs getstripe not printing layout generation properly Created: 20/Mar/18  Updated: 26/Mar/18  Resolved: 26/Mar/18

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

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: Andreas Dilger
Resolution: Fixed Votes: 0
Labels: DoM

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

I was just doing a quick test on DoM striping on a directory, and found something strange with the output of lfs getstripe. I created a PFL default layout on the directory and then copied files there. They all seem to show the lmm_layout_gen: 0 and a non-zero lmm_stripe_offset: field for the DoM components:

  lcm_layout_gen:    4
  lcm_mirror_count:  1
  lcm_entry_count:   3
    lcme_id:             1
    lcme_mirror_id:      0
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   1048576
      lmm_stripe_count:  0
      lmm_stripe_size:   1048576
      lmm_pattern:       mdt
      lmm_layout_gen:    0
      lmm_stripe_offset: 2
      lmm_objects:

    lcme_id:             2
    lcme_mirror_id:      0
    lcme_flags:          init
    lcme_extent.e_start: 1048576
    lcme_extent.e_end:   67108864
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 1
      lmm_objects:
      - 0: { l_ost_idx: 1, l_fid: [0x100000000:0x3:0x0] }

It seems like lmm_layout_gen: should always be non-zero for PFL components, and lmm_stripe_offset: should be zero, or not even printed for DoM components?



 Comments   
Comment by Gerrit Updater [ 20/Mar/18 ]

Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/31702
Subject: LU-10829 utils: don't print lmm_stripe_offset for DoM layout
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 66bad1bec4f87159e53eb8274dedcca78ec14047

Comment by Gerrit Updater [ 26/Mar/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/31702/
Subject: LU-10829 utils: don't print lmm_stripe_offset for DoM layout
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 1184db3ee1420acd8ee3c29f6d74c2fcaffd6b32

Comment by Peter Jones [ 26/Mar/18 ]

Landed for 2.11

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