-
Issue: Permission denied error on client when writing file on NFS mount.
- Solution: Check the permissions of the exported mount on the server and ensure the user on the client has access to it. The client user must have permissions on the server-side exported directory to write files.
-
On Server:
systemctl status nfs-serversystemctl status rpcbindshowmount -erpcinfo -p localhostnetstat -plant | grep -E "111|2049"nfsstatnfsiostatmountstats
-
On Client:
showmount -e nfsserver.example.comrpcinfo -p nfsserver.example.comnmap nfsserver.example.com
yum install nfs-utilssystemctl enable nfssystemctl start nfs- create entry in
/etc/exports(see examples at bottom of man page forexports)/[mountpoint being shared] [authorized ips or fqdns]([mount options])ex:/mirror 192.168.1.1/24(rw) exportfs -async
mount -t nfs [server ip or fqdn]:/[directory being shared] /[local mount location]showmount- create entry in
/etc/fstab[server ip or fqdn]:/[directory being shared] /[local mount location] nfs defaults 0 0ex:10.0.0.10:/data /mnt/data nfs defaults 0 0