NFS: Difference between revisions

Tags: Mobile edit Mobile web edit
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
NFS version 2 was specified in RFC 1094. Version 3 was RFC 1813, and version 4 was RFC 3530.
NFS version 2 was specified in RFC 1094. Version 3 was RFC 1813, and version 4 was RFC 3530.


This page discusses [[Linux|Linux's]] kernel NFS implementation circa 3.0.4. Relevant man pages include <tt>exports(5)</tt> and <tt>nfs(5)</tt>/<tt>nfs.conf(5)</tt>.
Relevant man pages include <tt>exports(5)</tt> and <tt>nfs(5)</tt>/<tt>nfs.conf(5)</tt>.


==NFSv4-only==
==NFSv4-only==
So long as you're only running NFSv4, you don't need <tt>rpc-statd</tt> nor <tt>rpcbind</tt>. Edit <tt>/etc/nfs.conf</tt>, and add <tt>vers3=n</tt> under the <tt>[nfsd]</tt> section. You can now disable the <tt>rpc-statd-notify</tt>, <tt>rpc-statd</tt>, <tt>rpcbind.socket</tt>, and <tt>rpcbind</tt> services.
So long as you're only running NFSv4, you don't need <tt>rpc-statd</tt> nor <tt>rpcbind</tt>. Edit <tt>/etc/nfs.conf</tt>, and add <tt>vers3=n</tt> under the <tt>[nfsd]</tt> section. You can now disable the <tt>rpc-statd-notify</tt>, <tt>rpc-statd</tt>, <tt>rpcbind.socket</tt>, and <tt>rpcbind</tt> services.
==[[proc|procfs]] support==
<tt>/proc/fs/nfsfs</tt> on the client side contains the files <tt>servers</tt> and <tt>volumes</tt>.
<tt>/proc/fs/nfsd</tt> on the server side contains (among others):
* <tt>exports</tt>:
<pre># Version 1.1
# Path Client(Flags) # IPs
/media/qwopino *(rw,root_squash,sync,wdelay,crossmnt,no_subtree_check,uuid=63610aa9:00fab279:00000000:00000000,sec=1)
/media/qwop *(rw,root_squash,sync,wdelay,crossmnt,no_subtree_check,uuid=423e8da5:00c36ed2:00000000:00000000,sec=1)</pre>
* <tt>export_stats</tt>:
<pre># Version 1.1
# Path Client Start-time
# Stats
/media/qwopino * 3128
fh_stale: 0
io_read: 662700032
io_write: 0
/media/qwop * 2293
fh_stale: 0
io_read: 218136576
io_write: 0</pre>
* <tt>versions</tt>:
<pre>-3 +4 -4.0 +4.1 +4.2</pre>
* <tt>portlist</tt> (useful for configuring firewalls):
<pre>tcp 2049
tcp 2049</pre>
* <tt>clients/</tt>: a directory with one file per active mount


==Sideband protocols==
==Sideband protocols==
Line 24: Line 52:
* [http://nfswatch.sourceforge.net/ NFSwatch] for monitoring and summarizing NFS traffic
* [http://nfswatch.sourceforge.net/ NFSwatch] for monitoring and summarizing NFS traffic
* [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_file_systems/configuring-an-nfsv4-only-server_managing-file-systems Configuring an NFSv4-Only Server] on Fedora
* [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_file_systems/configuring-an-nfsv4-only-server_managing-file-systems Configuring an NFSv4-Only Server] on Fedora
* [https://wiki.archlinux.org/title/NFS NFS] on ArchWiki


[[CATEGORY: Networking]]
[[CATEGORY: Networking]]