Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 1.57 KB

File metadata and controls

41 lines (36 loc) · 1.57 KB

Troubleshooting

  • 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-server
    • systemctl status rpcbind
    • showmount -e
    • rpcinfo -p localhost
    • netstat -plant | grep -E "111|2049"
    • nfsstat
    • nfsiostat
    • mountstats
  • On Client:

    • showmount -e nfsserver.example.com
    • rpcinfo -p nfsserver.example.com
    • nmap nfsserver.example.com

Server

  1. yum install nfs-utils
  2. systemctl enable nfs
  3. systemctl start nfs
  4. create entry in /etc/exports (see examples at bottom of man page for exports) /[mountpoint being shared] [authorized ips or fqdns]([mount options]) ex: /mirror 192.168.1.1/24(rw)
  5. exportfs -a
  6. sync

Client

  1. mount -t nfs [server ip or fqdn]:/[directory being shared] /[local mount location]
  2. showmount
  3. create entry in /etc/fstab [server ip or fqdn]:/[directory being shared] /[local mount location] nfs defaults 0 0 ex: 10.0.0.10:/data /mnt/data nfs defaults 0 0