[clug] nfs issue
paulway at mabula.net
Mon May 20 11:06:29 UTC 2019
On 5/20/19 7:20 PM, Eyal Lebedinsky via linux wrote:
> The source machine is both the nfs server and the local ntp server.
> But even if time is slightly off, why would a file be missing at times?
Maybe rsync thinks the file systems you're copying between are both local?
I know that rsync does things differently if it's not talking to a remote
rsync daemon (for either source or destination). If I recall correctly it
does entire file copies instead of incremental rewrites, on the principle that
it's going to cost more to read the source and destination and write a new
file than it is to simply copy the changed file over the destination.
This is pure speculation here, but I'm wondering if there's then some weird
interaction between NFS's creation and locking semantics and rsync's view of
the file system it's copying from. I can't think what those might be.
So it might be worth not doing an NFS mount but doing the rsync via ssh.
I've also found --delete-after to be a bit better than --delete, although I
think that was mainly with the --fuzzy option.
Hope this helps,
More information about the linux