Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-14191

setstripe: cannot create composite file: Numerical result out of range

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.14.0
    • None
    • None
    • 3
    • 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:

      Attachments

        Issue Links

          Activity

            [LU-14191] setstripe: cannot create composite file: Numerical result out of range
            pjones Peter Jones added a comment -

            Landed for 2.14

            pjones Peter Jones added a comment - Landed for 2.14

            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

            gerrit Gerrit Updater added a comment - 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

            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

            gerrit Gerrit Updater added a comment - 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

            People

              vitaly_fertman Vitaly Fertman
              vitaly_fertman Vitaly Fertman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: