📄 nfs.5
字号:
.\" nfs.5 "Rick Sladkey" <jrs@world.std.com>.\" Wed Feb 8 12:52:42 1995, faith@cs.unc.edu: updates for Ross Biro's.\" patches. ".TH NFS 5 "20 November 1993" "Linux 0.99" "Linux Programmer's Manual".SH NAMEnfs \- nfs fstab format and options.SH SYNOPSIS.B /etc/fstab.SH DESCRIPTIONThe.I fstabfile contains information about which filesystemsto mount where and with what options.For NFS mounts, it contains the server name andexported server directory to mount from,the local directory that is the mount point,and the NFS specific options that controlthe way the filesystem is mounted..PHere is an example from an \fI/etc/fstab\fP file from an NFS mount..sp.nf.ta 2.5i +0.75i +0.75i +1.0iserver:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr.fi.DT.SS Options.TP 1.5i.I rsize=nThe number of bytes NFS uses when reading files from an NFS server.The default value is dependent on the kernel, currently 1024 bytes.(However, throughput is improved greatly by asking for.IR rsize=8192 .).TP 1.5i.I wsize=nThe number of bytes NFS uses when writing files to an NFS server.The default value is dependent on the kernel, currently 1024 bytes.(However, throughput is improved greatly by asking for.IR wsize=8192 .).TP 1.5i.I timeo=nThe value in tenths of a second before sending thefirst retransmission after an RPC timeout.The default value is 7 tenths of a second. After the first timeout,the timeout is doubled after each successive timeout until a maximumtimeout of 60 seconds is reached or the enough retransmissionshave occured to cause a major timeout. Then, if the filesystemis hard mounted, each new timeout cascade restarts at twice theinitial value of the previous cascade, again doubling at eachretransmission. The maximum timeout is always 60 seconds.Better overall performance may be achieved by increasing thetimeout when mounting on a busy network, to a slow server, or throughseveral routers or gateways..TP 1.5i.I retrans=nThe number of minor timeouts and retransmissions that must occur beforea major timeout occurs. The default is 3 timeouts. When a major timeoutoccurs, the file operation is either aborted or a "server not responding"message is printed on the console..TP 1.5i.I acregmin=nThe minimum time in seconds that attributes of a regular file shouldbe cached before requesting fresh information from a server.The default is 3 seconds..TP 1.5i.I acregmax=nThe maximum time in seconds that attributes of a regular file canbe cached before requesting fresh information from a server.The default is 60 seconds..TP 1.5i.I acdirmin=nThe minimum time in seconds that attributes of a directory shouldbe cached before requesting fresh information from a server.The default is 30 seconds..TP 1.5i.I acdirmax=nThe maximum time in seconds that attributes of a directory canbe cached before requesting fresh information from a server.The default is 60 seconds..TP 1.5i.I actimeo=nUsing actimeo sets all of.I acregmin,.I acregmax,.I acdirmin,and.I acdirmaxto the same value.There is no default value..TP 1.5i.I retry=nThe number of minutes to retry an NFS mount operationin the foreground or background before giving up.The default value is 10000 minutes, which is roughly one week..TP 1.5i.I namlen=nWhen an NFS server does not support version two of theRPC mount protocol, this option can be used to specifythe maximum length of a filename that is supported onthe remote filesystem. This is used to support thePOSIX pathconf functions. The default is 255 characters..TP 1.5i.I port=nThe numeric value of the port to connect to the NFS server on.If the port number is 0 (the default) then query theremote host's portmapper for the port number to use.If the remote host's NFS daemon is not registered withits portmapper, the standard NFS port number 2049 isused instead..TP 1.5i.I mountport=nThe numeric value of the.B mountdport..TP 1.5i.I mounthost=nameThe name of the host running.B mountd ..TP 1.5i.I mountprog=nUse an alternate RPC program number to contact themount daemon on the remote host. This option is usefulfor hosts that can run multiple NFS servers.The default value is 100005 which is the standard RPCmount daemon program number..TP 1.5i.I mountvers=nUse an alternate RPC version number to contact themount daemon on the remote host. This option is usefulfor hosts that can run multiple NFS servers.The default value is version 1..TP 1.5i.I nfsprog=nUse an alternate RPC program number to contact theNFS daemon on the remote host. This option is usefulfor hosts that can run multiple NFS servers.The default value is 100003 which is the standard RPCNFS daemon program number..TP 1.5i.I nfsvers=nUse an alternate RPC version number to contact theNFS daemon on the remote host. This option is usefulfor hosts that can run multiple NFS servers.The default value is version 2..TP 1.5i.I nolockDisable NFS locking. Do not start lockd.This has to be used with some old NFS serversthat don't support locking..TP 1.5i.I bgIf the first NFS mount attempt times out, retry the mountin the background.After a mount operation is backgrounded, all subsequent mountson the same NFS server will be backgrounded immediately, withoutfirst attempting the mount.A missing mount point is treated as a timeout,to allow for nested NFS mounts..TP 1.5i.I fgIf the first NFS mount attempt times out, retry the mountin the foreground.This is the complement of the.I bgoption, and also the default behavior..TP 1.5i.I softIf an NFS file operation has a major timeout then report an I/O error tothe calling program.The default is to continue retrying NFS file operations indefinitely..TP 1.5i.I hardIf an NFS file operation has a major timeout then report"server not responding" on the console and continue retrying indefinitely.This is the default..TP 1.5i.I intrIf an NFS file operation has a major timeout and it is hard mounted,then allow signals to interupt the file operation and cause it toreturn EINTR to the calling program. The default is to notallow file operations to be interrupted..TP 1.5i.I posixMount the NFS filesystem using POSIX semantics. This allowsan NFS filesystem to properly support the POSIX pathconfcommand by querying the mount server for the maximum lengthof a filename. To do this, the remote host must support versiontwo of the RPC mount protocol. Many NFS servers support onlyversion one..TP 1.5i.I noctoSuppress the retrieval of new attributes when creating a file..TP 1.5i.I noacDisable all forms of attribute caching entirely. This extracts aserver performance penalty but it allows two different NFS clientsto get reasonable good results when both clients are activelywriting to common filesystem on the server..TP 1.5i.I tcpMount the NFS filesystem using the TCP protocol instead of thedefault UDP protocol. Many NFS servers only support UDP..TP 1.5i.I udpMount the NFS filesystem using the UDP protocol. Thisis the default..PAll of the non-value options have corresponding nooption forms.For example, nointr means don't allow file operations to beinterrupted..SH FILES.I /etc/fstab.SH "SEE ALSO".BR fstab "(5), " mount "(8), " umount "(8), " exports (5).SH AUTHOR"Rick Sladkey" <jrs@world.std.com>.SH BUGSThe posix, and nocto options are parsed by mountbut currently are silently ignored..PThe tcp and namlen options are implemented but are not currentlysupported by the Linux kernel..PThe umount command should notify the serverwhen an NFS filesystem is unmounted.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -