Details

    • Technical task
    • Resolution: Fixed
    • Critical
    • Lustre 2.10.0
    • Lustre 2.10.0
    • 9223372036854775807

    Description

      While trying to create a file with many components, I ran into a few problems. Firstly, I tried creating a file with no layout, and then adding components to the file in a loop:

      # mcreate /mnt/testfs/comp
      # for C in {1..50}; do lfs setstripe --component-add -E ${C}M -c 1 /mnt/testfs/comp; done
      
      First extent to be set [0, 1048576) isn't adjacent with the existing file extent
       end: 18446744073709551615
      Create a new file with a specific striping pattern or
      set the default striping pattern on an existing directory or
      delete the default striping pattern from an existing directory or
      add layout component(s) to an existing composite file or
      delete specified component(s) from an existing composite file
      

      I think this is a bug, since there is no previous component, and the "end" should be 0 which would allow this to succeed. Then I tried to add only the first component without --component-add, but this also failed even though there is no layout yet:

      # lfs getstripe /mnt/testfs/comp
      /mnt/testfs/comp has no stripe info
      # lfs setstripe --component-add -E 1M -c 1 /mnt/testfs/comp
      Create composite file /mnt/testfs/comp failed. File exists
      error: setstripe: create composite file '/mnt/testfs/comp' failed: File exists
      

      Attachments

        Activity

          [LU-9449] problems creating file with many components
          pjones Peter Jones added a comment -

          Landed for 2.10

          pjones Peter Jones added a comment - Landed for 2.10

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26944/
          Subject: LU-9449 tools: component add to no stripe info file
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 53969ac9958877a239694ed09707f30bea3d02cc

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26944/ Subject: LU-9449 tools: component add to no stripe info file Project: fs/lustre-release Branch: master Current Patch Set: Commit: 53969ac9958877a239694ed09707f30bea3d02cc

          Niu Yawei (yawei.niu@intel.com) uploaded a new patch: https://review.whamcloud.com/26944
          Subject: LU-9449 tools: component add to no stripe info file
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: fbad93b355b7b70c691ef53edeb6e12d5591f832

          gerrit Gerrit Updater added a comment - Niu Yawei (yawei.niu@intel.com) uploaded a new patch: https://review.whamcloud.com/26944 Subject: LU-9449 tools: component add to no stripe info file Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: fbad93b355b7b70c691ef53edeb6e12d5591f832

          People

            niu Niu Yawei (Inactive)
            adilger Andreas Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: