Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-3531 DNE2: striped directory
  3. LU-3532

rename under same striped directory

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Fixed
    • Major
    • Lustre 2.8.0
    • None
    • None
    • 8896

    Description

      Client sends the rename request to the MDT where the master stripe of the source parent is located. If rename happens in the same stripe, it would be the same as rename in the same directory. If the rename happens under the same striped directory, but between different stripes on different MDTs. (mv dir_S/src dir_S/tgt, dir_S is striped directory, MDT0 holds the master stripe, MDT1 holds src, MDT2 holds tgt).

      1. Client sends the rename request to MDT2.
      2. MDT2 acquires the LDLM locks (both inode bits and hash of the file name) of the source and target stripe according to their FID order.
      3. MDT1 deletes entry src, sets mtime of the stripe, updates linkEA of src, and if src is directory, decreases the nlink of the local stripe.
      4. MDT2 deletes entry tgt, inserts entry src, and if tgt is directory, increases the nlink of the local stripe.

      Attachments

        Issue Links

          Activity

            People

              di.wang Di Wang
              di.wang Di Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: