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

Re-striping of DoM file returns success but no effect/change

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      • Create dom file with stripe size of 1M
      • Re-stripe the same file with another valid value stripe size.
        This command returns success but value is not updated.
      # lfs setstripe -E 1M -L mdt /mnt/lustre/dom
      # lfs setstripe -E 64K -L mdt /mnt/lustre/dom
      # lfs getstripe /mnt/lustre/dom
      /mnt/lustre/dom
       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: 1048576
       lmm_stripe_count: 0
       lmm_stripe_size: 1048576
       lmm_pattern: mdt
       lmm_layout_gen: 0
       lmm_stripe_offset: 0
      

      Attachments

        Activity

          [LU-10921] Re-striping of DoM file returns success but no effect/change
          pjones Peter Jones added a comment -

          Landed for 2.12

          pjones Peter Jones added a comment - Landed for 2.12

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/32442/
          Subject: LU-10921 utils: improve lfs setstripe error message
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 18fa5cc885539b7beb79fed5061b0fffbb8fa090

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/32442/ Subject: LU-10921 utils: improve lfs setstripe error message Project: fs/lustre-release Branch: master Current Patch Set: Commit: 18fa5cc885539b7beb79fed5061b0fffbb8fa090

          This patch doesn't resolve the core problem, but at least improves the existing error messages to be more user friendly.

          adilger Andreas Dilger added a comment - This patch doesn't resolve the core problem, but at least improves the existing error messages to be more user friendly.

          Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/32442
          Subject: LU-10921 utils: improve lfs setstripe error message
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: c541f6e0a42a8a2b1d7bf24cff03a998dba52241

          gerrit Gerrit Updater added a comment - Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: https://review.whamcloud.com/32442 Subject: LU-10921 utils: improve lfs setstripe error message Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: c541f6e0a42a8a2b1d7bf24cff03a998dba52241

          It would probably be OK, but it is also tricky since components can be added to existing files, while it is not possible to do this with plain layouts.

          adilger Andreas Dilger added a comment - It would probably be OK, but it is also tricky since components can be added to existing files, while it is not possible to do this with plain layouts.

          yes, I've noticed that too while trying to create FLR layouts. Andreas, do you think it will be enough to return the same error for composite layout case?

          tappro Mikhail Pershin added a comment - yes, I've noticed that too while trying to create FLR layouts. Andreas, do you think it will be enough to return the same error for composite layout case?

          This appears to be true for any composite layout (i.e. using -E), regardless of whether DoM is used or not. Using lfs setstripe with a plain layout (e.g. only -c2) prints an error "stripe already set".

          adilger Andreas Dilger added a comment - This appears to be true for any composite layout (i.e. using -E ), regardless of whether DoM is used or not. Using lfs setstripe with a plain layout (e.g. only -c2 ) prints an error "stripe already set".
          pjones Peter Jones added a comment -

          Mike

          Could you please advise?

          Thanks

          Peter

          pjones Peter Jones added a comment - Mike Could you please advise? Thanks Peter

          People

            tappro Mikhail Pershin
            rdeshmukh_ddn Rahul Deshmukh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: