Details
-
Technical task
-
Resolution: Fixed
-
Major
-
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
- is related to
-
LU-3537 allow cross-MDT for all metadata operations
- Resolved