[LU-11608] DoM2: inherited DoM component size is not limited Created: 02/Nov/18  Updated: 16/Jan/22  Resolved: 16/Jan/22

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

Type: Bug Priority: Minor
Reporter: Andreas Dilger Assignee: Mikhail Pershin
Resolution: Fixed Votes: 0
Labels: DoM2

Issue Links:
Duplicate
duplicates LU-13611 DoM component inherited from parent/R... Resolved
Related
is related to LU-10808 DoM: component end should align with ... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

The DoM component size inherited from a parent or root directory is not limited by the current value of lod.*.dom_stripesize. That means any files created in a directory with a larger DoM layout created before the dom_stripesize is reduced will still be created with the larger DoM component size instead of being limited to dom_stripesize on that MDT:

client# lfs setstripe -E 1M -L mdt -E -1 -c 2 /mnt/testfs
mdt# lctl set_param lod.*.lod_stripesize=64K
lod.testfs-MDT0000-mdtlov.dom_stripesize=64K
lod.testfs-MDT0001-mdtlov.dom_stripesize=64K
client# dd if=/dev/zero of=/mnt/testfs/dd.2M bs=1M count=2
client# lfs getstripe /mnt/testfs/dd.2M
/mnt/testfs/dd.2M
  lcm_layout_gen:    3
  lcm_mirror_count:  1
  lcm_entry_count:   2
    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: 0

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

Inherited layouts should also be subject to dom_stripesize limiting on the MDS like lfs setstripe-specified layouts.



 Comments   
Comment by Andreas Dilger [ 02/Nov/18 ]

PS - should we set lod->lod_dom_max_stripesize = MD_MAX_BRW_SIZE by default instead of hard-coding (1 << 20)?

Comment by Mikhail Pershin [ 16/Jan/22 ]

Resolved by LU-13611

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