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

lfs_migrate() may fail in striped directories

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • None
    • Lustre 2.8.0
    • 3
    • 9223372036854775807

    Description

      lfs migrate may fail when applied to files in a striped directory:

      # export MDSCOUNT=4
      # llmount.sh 
      ...
      # cd /mnt/lustre
      # lfs mkdir -i0 -c2 d0
      # cd d0
      # lfs setstripe -c2 f0
      # lfs path2fid f0
      [0x240000404:0x1:0x0]
      # lfs migrate -c1 f0
      lfs: f0: cannot swap layouts: Device or resource busy
      cannot put lease: No locks available (37)
      error: migrate: migrate file 'f0' failed
      # lfs setstripe -c2 f1
      # lfs path2fid f1
      [0x200000404:0x3:0x0]
      # lfs migrate -c1 f1
      # lfs setstripe -c2 f2
      # lfs path2fid f2
      [0x240000404:0x2:0x0]
      # lfs migrate -c1 f2
      lfs: f2: cannot swap layouts: Device or resource busy
      cannot put lease: No locks available (37)
      error: migrate: migrate file 'f2' failed
      

      In lfs_migrate() we must get the MDT index of the file to be migrated and use that when constructing the name of the volatile file.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: