unable to write to mount point (nfs-server), getting “Permission denied”

Does your export utilize root_squash? From the CentOS docs: root_squash — Prevents root users connected remotely from having root privileges and assigns them the user ID for the user nfsnobody. This effectively “squashes” the power of the remote root user to the lowest local user, preventing unauthorized alteration of files on the remote server. Alternatively, … Read more

Why rsync is faster than NFS?

Maybe it’s not slower transfer speed, but increased write latency. Try mounting the NFS share async instead of sync and see if that closes the speed gap. When you rsync over ssh, the remote rsync process writes asynchronously (quickly). But when writing to the synchronously mounted nfs share, the writes aren’t confirmed immediately: the NFS … Read more

.nfsXXXX files appearing, what are those?

Nothing is going wrong. This is your NFS client trying to maintain proper “delete on later close” unix behavior within its own operational abilities. This NFS behavior is known as “silly rename”: http://nfs.sourceforge.net/#faq_d2 NFSv4.1 will get away from this behavior with OPEN4_RESULT_PRESERVE_UNLINKED: https://www.rfc-editor.org/rfc/rfc5661#section-18.16.

Mapping UID and GID of local user to the mounted NFS share

This is what idmapping is suppose to do. First of all, enable is on the client and server: # echo N > /sys/module/nfs/parameters/nfs4_disable_idmapping clean idmap cache and restart idmap daemon: # nfsidmap -c # service rpcidmapd restart Now on server and the client will send instead of numeric IDs string principals like bob@YOURDOMAIN.COM. You need … Read more