NFS

From wikieduonline
Revision as of 16:58, 8 December 2019 by Welcome (talk | contribs) (Created page with "Network File System (NFS) is a distributed file system protocol that allow to share files and folders using a TCP network. == Commands == *...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Network File System (NFS) is a distributed file system protocol that allow to share files and folders using a TCP network.


Commands

  • exportfs

Example output NFS share to everyone: HOST#exportfs /nfs <world>

  • showmount
  • showmount -e
  • Restart service: systemctl start nfs-server

Configuration files

  • /etc/exports [1]

Activities

Install server: apt-get install nfs-kernel-server
Install client (optional): apt-get install nfs-common
  • Mount a remote nfs share:
mount -t nfs -o proto=tcp,port=2049 REMOTE_IP_SERVER:/REMOTE_SHARE_DIR /YOUR/LOCAL_DIR/


See also

  • sanlock shared storage lock manager
  • https://linux.die.net/man/5/exports
  • Advertising: