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

"lfs migrate" does not honor --overstripe-count|-C option

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None

    Description

      # dd if=/dev/zero of=/mnt/lustre/f1 bs=1K count=1
      1+0 records in
      1+0 records out
      1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00816092 s, 125 kB/s
      # lfs migrate --overstripe-count=5 /mnt/lustre/f1
      # lfs getstripe /mnt/lustre/f1
      /mnt/lustre/f1
      lmm_stripe_count:  2                 <<<<<<<<<<<<<  it is not 5
      lmm_stripe_size:   4194304
      lmm_pattern:       raid0
      lmm_layout_gen:    1
      lmm_stripe_offset: 0
          obdidx         objid         objid         group
               0               172             0xac       0x240000400
               1               161             0xa1       0x280000400

      Attachments

        Activity

          [LU-18824] "lfs migrate" does not honor --overstripe-count|-C option
          pjones Peter Jones made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          pjones Peter Jones added a comment -

          Merged for 2.17

          pjones Peter Jones added a comment - Merged for 2.17
          gerrit Gerrit Updater added a comment -

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58672/
          Subject: LU-18824 utils: Fix lfs migrate with --overstripe-count
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: c2b59218e5fba8ca5bcff8a1e01e2f1f2c668426

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/58672/ Subject: LU-18824 utils: Fix lfs migrate with --overstripe-count Project: fs/lustre-release Branch: master Current Patch Set: Commit: c2b59218e5fba8ca5bcff8a1e01e2f1f2c668426
          adilger Andreas Dilger made changes -
          Assignee Original: WC Triage [ wc-triage ] New: Patrick Farrell [ paf0186 ]

          "Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58672
          Subject: LU-18824 utils: Fix lfs migrate with --overstripe-count
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: b89a35b0afda29f30da094e01eb3b62acd7ea35d

          gerrit Gerrit Updater added a comment - "Patrick Farrell <pfarrell@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/58672 Subject: LU-18824 utils: Fix lfs migrate with --overstripe-count Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b89a35b0afda29f30da094e01eb3b62acd7ea35d
          flei Feng Lei made changes -
          Description Original: # dd if=/dev/zero of=/mnt/lustre/f1 bs=1K count=1
          1+0 records in
          1+0 records out
          1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00816092 s, 125 kB/s
          [root@fsdev89 /prj/fs-lustre/lustre/tests]# lfs migrate *--overstripe-count=5* /mnt/lustre/f1
          [root@fsdev89 /prj/fs-lustre/lustre/tests]# lfs getstripe /mnt/lustre/f1
          /mnt/lustre/f1
          lmm_stripe_count:  *2                 <<<<<<<<<<<<<  it is not 5*
          lmm_stripe_size:   4194304
          lmm_pattern:       raid0
          lmm_layout_gen:    1
          lmm_stripe_offset: 0
              obdidx         objid         objid         group
                   0               172             0xac       0x240000400
                   1               161             0xa1       0x280000400
          New: \# dd if=/dev/zero of=/mnt/lustre/f1 bs=1K count=1
          1+0 records in
          1+0 records out
          1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00816092 s, 125 kB/s
          \# lfs migrate *--overstripe-count=5* /mnt/lustre/f1
          \# lfs getstripe /mnt/lustre/f1
          /mnt/lustre/f1
          lmm_stripe_count:  *2                 <<<<<<<<<<<<<  it is not 5*
          lmm_stripe_size:   4194304
          lmm_pattern:       raid0
          lmm_layout_gen:    1
          lmm_stripe_offset: 0
              obdidx         objid         objid         group
                   0               172             0xac       0x240000400
                   1               161             0xa1       0x280000400
          flei Feng Lei made changes -
          Description Original: The "{{lfs migrate}}" and "{{lfs_migrate}}" commands should accept a list of FIDs instead of filenames on the command-line with the "{{\-\-fids}}" option. This will allow them to use the "{{llapi_open_by_fid[_at]()}}" interface internally to open the files instead of doing pathname resolution, and improve integration into pipelines that produce FIDs instead of filenames (e.g. Changelogs) without the need to produce an intermediate pathname. New: # dd if=/dev/zero of=/mnt/lustre/f1 bs=1K count=1
          1+0 records in
          1+0 records out
          1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00816092 s, 125 kB/s
          [root@fsdev89 /prj/fs-lustre/lustre/tests]# lfs migrate *--overstripe-count=5* /mnt/lustre/f1
          [root@fsdev89 /prj/fs-lustre/lustre/tests]# lfs getstripe /mnt/lustre/f1
          /mnt/lustre/f1
          lmm_stripe_count:  *2                 <<<<<<<<<<<<<  it is not 5*
          lmm_stripe_size:   4194304
          lmm_pattern:       raid0
          lmm_layout_gen:    1
          lmm_stripe_offset: 0
              obdidx         objid         objid         group
                   0               172             0xac       0x240000400
                   1               161             0xa1       0x280000400
          flei Feng Lei made changes -
          Assignee Original: Feng Lei [ flei ] New: WC Triage [ wc-triage ]
          flei Feng Lei made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          flei Feng Lei made changes -
          Link Original: This issue Clones LU-15425 [ LU-15425 ]

          People

            paf0186 Patrick Farrell
            flei Feng Lei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: