I noticed this first with FreeBSD 14.1 but maybe is existed before. From time to time I have to rsync data from a snapshot to a real user account. The ZFS is mounted via NFS.
When I do an rsync I get suddenly very often a:
rsync: [Receiver] getcwd(): No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at util1.c(1122) [Receiver=3.4.1]
What helps is to go directly into the directory and do an `rsync -av . $target/` but sometimes even that brings that error. Then I go one directory up and can do `rsync -av ./$src/ $target/
An `ls` works.
I just tried the rsync in a script multiple times and it didn't work. Now I ran the same script with `truss` before it and suddenly it works.
And then I cd-ed up a couple of directories and it is empty. Going to another host that has export mounted and everything works fine.
It seems that the exporting host doesn't have that problem. So I guess it has something to do with NFS? Any suggestions how I can troubleshoot this?
When I do an rsync I get suddenly very often a:
rsync: [Receiver] getcwd(): No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at util1.c(1122) [Receiver=3.4.1]
What helps is to go directly into the directory and do an `rsync -av . $target/` but sometimes even that brings that error. Then I go one directory up and can do `rsync -av ./$src/ $target/
An `ls` works.
I just tried the rsync in a script multiple times and it didn't work. Now I ran the same script with `truss` before it and suddenly it works.
And then I cd-ed up a couple of directories and it is empty. Going to another host that has export mounted and everything works fine.
It seems that the exporting host doesn't have that problem. So I guess it has something to do with NFS? Any suggestions how I can troubleshoot this?