<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
I would also guess project quotas is involved. 
<div class=""><br class="">
</div>
<div class="">That is a behavior that we adopted from upstream ext4 and XFS, but it isn't clear that it is necessary.  It would be better to transfer the quota to the new project in the target directory, which is not different than EXDEV triggering "mv" to
 copy the file in userspace except that it avoids copying the data for large files. </div>
<div class=""><br class="">
</div>
<div class="">I've filed <a href="https://jira.whamcloud.com/browse/LU-13176" class="">https://jira.whamcloud.com/browse/LU-13176</a> for this issue.<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 28, 2020, at 14:07, Colin Faber <<a href="mailto:cfaber@gmail.com" class="">cfaber@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Can you describe your setup with a little more detail?  Are you running DNE? Are you running project quotas?<br class="">
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Jan 27, 2020 at 1:05 PM Jesse Stroik <<a href="mailto:jesse.stroik@ssec.wisc.edu" class="">jesse.stroik@ssec.wisc.edu</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello,<br class="">
<br class="">
I have an interesting situation one of our lustre file systems where I <br class="">
cannot rename files or directories across a specific directory boundary <br class="">
but I can create hard links across the same boundary. The relevant <br class="">
section of strace for 'mv' follows:<br class="">
<br class="">
=====<br class="">
geteuid()                               = 0<br class="">
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0<br class="">
stat("..", {st_mode=S_IFDIR|0755, st_size=11776, ...}) = 0<br class="">
lstat("test.txt", {st_mode=S_IFREG|0644, st_size=765876794, ...}) = 0<br class="">
lstat("../test.txt", 0x7fff36c3ff30)    = -1 ENOENT (No such file or <br class="">
directory)<br class="">
renameat2(AT_FDCWD, "test.txt", AT_FDCWD, "../test.txt", 0) = -1 EXDEV <br class="">
(Invalid cross-device link)<br class="">
=====<br class="">
<br class="">
The systems I've tested this on are in our nosquash_nids list as they <br class="">
were used for cluster array jobs to copy data between a retiring file <br class="">
system and a new one. The clients are either 2.10 or 2.12. The file <br class="">
system is run by 2.12.2 on zfs.<br class="">
<br class="">
nodemap is not active.<br class="">
<br class="">
Best,<br class="">
Jesse Stroik<br class="">
<br class="">
_______________________________________________<br class="">
lustre-discuss mailing list<br class="">
<a href="mailto:lustre-discuss@lists.lustre.org" target="_blank" class="">lustre-discuss@lists.lustre.org</a><br class="">
<a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org" rel="noreferrer" target="_blank" class="">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br class="">
</blockquote>
</div>
_______________________________________________<br class="">
lustre-discuss mailing list<br class="">
<a href="mailto:lustre-discuss@lists.lustre.org" class="">lustre-discuss@lists.lustre.org</a><br class="">
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org<br class="">
</div>
</blockquote>
</div>
<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div>Cheers, Andreas</div>
<div>--</div>
<div>Andreas Dilger</div>
<div>Principal Lustre Architect</div>
<div>Whamcloud</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
</div>
</body>
</html>