[lustre-discuss] mv / rename not working across directory boundary ("Invalid cross device link")

Jesse Stroik jesse.stroik at ssec.wisc.edu
Mon Jan 27 12:05:09 PST 2020


I have an interesting situation one of our lustre file systems where I 
cannot rename files or directories across a specific directory boundary 
but I can create hard links across the same boundary. The relevant 
section of strace for 'mv' follows:

geteuid()                               = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
stat("..", {st_mode=S_IFDIR|0755, st_size=11776, ...}) = 0
lstat("test.txt", {st_mode=S_IFREG|0644, st_size=765876794, ...}) = 0
lstat("../test.txt", 0x7fff36c3ff30)    = -1 ENOENT (No such file or 
renameat2(AT_FDCWD, "test.txt", AT_FDCWD, "../test.txt", 0) = -1 EXDEV 
(Invalid cross-device link)

The systems I've tested this on are in our nosquash_nids list as they 
were used for cluster array jobs to copy data between a retiring file 
system and a new one. The clients are either 2.10 or 2.12. The file 
system is run by 2.12.2 on zfs.

nodemap is not active.

Jesse Stroik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4215 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20200127/e94f278c/attachment-0001.bin>

More information about the lustre-discuss mailing list