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

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

Details

    • Bug
    • Resolution: Unresolved
    • 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
          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 ]
          flei Feng Lei made changes -
          Link New: This issue Clones LU-15425 [ LU-15425 ]
          flei Feng Lei created issue -

          People

            wc-triage WC Triage
            flei Feng Lei
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: