NFS, Network File System

来源:互联网 发布:linux iostat命令详解 编辑:程序博客网 时间:2024/05/21 09:58

Typical implementation

Question book-new.svg
This section does not cite any references or sources. Please help improve this section byadding citations to reliable sources. Unsourced material may be challenged andremoved. (February 2010)

Assuming a Unix-style scenario in which one machine (the client) requires access to data stored on another machine (the NFS server):

  1. The server implements NFS daemon processes (running by default as nfsd) in order to make its data generically available to clients.
  2. The server administrator determines what to make available, exporting the names and parameters ofdirectories (typically using the /etc/exports configuration file and theexportfs command).
  3. The server security-administration ensures that it can recognize and approve validated clients.
  4. The server network configuration ensures that appropriate clients can negotiate with it through anyfirewall system.
  5. The client machine requests access to exported data, typically by issuing a mount command. (The client asks the server (rpcbind) which port the NFS server is using, the client connects to the NFS server (nfsd), nfsd passes the request to mountd)
  6. If all goes well, users on the client machine can then view and interact with mountedfilesystems on the server within the parameters permitted.

Note that automation of the NFS mounting process may take place — perhaps using/etc/fstab and/or automounting facilities.