[LU-14191] setstripe: cannot create composite file: Numerical result out of range Created: 07/Dec/20  Updated: 03/Nov/22  Resolved: 22/Dec/20

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

Type: Bug Priority: Minor
Reporter: Vitaly Fertman Assignee: Vitaly Fertman
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-14916 Interop: sanity-pfl test 0b fails wit... Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

when creating a PFL file of 2K stripes, they are shrinked to 700+, because lod_get_stripe_count() checks the space left after taking given 2K stripes into account, and the total amount of stripes that fits into EA is 2700+.
    
when creating a SEL file of 2K stipes, it fails because the extension component is also taking into account despite the fact it is never initialised and due to the above logic 2x2k stripes leaves no space in EA.
 
[root@vm71 wc-main]# ./lustre/utils/lfs setstripe --stripe-size 1M --component-end 2000M --overstripe-count 2000 /mnt/lustre/file1
[root@vm71 wc-main]# ./lustre/utils/lfs getstripe  /mnt/lustre/file1
/mnt/lustre/file1
  lcm_layout_gen:    1
  lcm_mirror_count:  1
  lcm_entry_count:   1
    lcme_id:             1
    lcme_mirror_id:      0
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   2097152000
      lmm_stripe_count:  722
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0,overstriped
      lmm_layout_gen:    0
      lmm_stripe_offset: 0
      lmm_objects:
 
 
[root@vm71 wc-main]# ./lustre/utils/lfs setstripe --stripe-size 1M --component-end 2000M --overstripe-count 2000 -z 64M /mnt/lustre/file2
lt-lfs setstripe: cannot create composite file '/mnt/lustre/file2': Numerical result out of range

[root@vm71 wc-main]# ./lustre/utils/lfs setstripe --stripe-size 1M --component-end 2000M --overstripe-count 1360  /mnt/lustre/file3
[root@vm71 wc-main]# ./lustre/utils/lfs getstripe  /mnt/lustre/file3
/mnt/lustre/file3
  lcm_layout_gen:    1
  lcm_mirror_count:  1
  lcm_entry_count:   1
    lcme_id:             1
    lcme_mirror_id:      0
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   2097152000
      lmm_stripe_count:  1360
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0,overstriped
      lmm_layout_gen:    0
      lmm_stripe_offset: 1
      lmm_objects:



 Comments   
Comment by Gerrit Updater [ 07/Dec/20 ]

Vitaly Fertman (vitaly.fertman@hpe.com) uploaded a new patch: https://review.whamcloud.com/40895
Subject: LU-14191 lod: comp stripe count limit check
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 33b3e240b87c4e7a0482544c4bcf3d7fba1c1f54

Comment by Gerrit Updater [ 22/Dec/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/40895/
Subject: LU-14191 lod: comp stripe count limit check
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a58cdc9196fa64defa6aa8d714b2a3d3c8468df5

Comment by Peter Jones [ 22/Dec/20 ]

Landed for 2.14

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