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
- is related to
-
LU-6831 The ticket for tracking all DNE2 bugs
- Reopened