📄 1165-1166.html
字号:
<HTML>
<HEAD>
<TITLE>Linux Complete Command Reference:File Formats:EarthWeb Inc.-</TITLE>
</HEAD>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311046 //-->
<!-- TITLE=Linux Complete Command Reference//-->
<!-- AUTHOR=Red Hat//-->
<!-- PUBLISHER=Macmillan Computer Publishing//-->
<!-- IMPRINT=Sams//-->
<!-- CHAPTER=05 //-->
<!-- PAGES=1103-1208 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="1163-1164.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1167-1167.html">Next</A></CENTER></P>
<A NAME="PAGENUM-1165"><P>Page 1165</P></A>
<P><B>
HISTORY
</B></P>
<P>Written by Landon Curt Noll (chongo@toad.com) and Rich $alz
(rsalz@uunet.uu.net) for InterNetNews.
</P>
<P><B>
SEE ALSO
</B></P>
<P>
control.ctl(5), ctlinnd(8), expire(8), innd(8), news.daily(8), nntpsend(8), newslog(8)
</P>
<H3><A NAME="ch05_ 37">
nfs
</A></H3>
<P>nfs—NFS fstab format and options.
</P>
<P><B>
SYNOPSIS
</B></P>
<!-- CODE SNIP //-->
<PRE>
/etc/fstab
</PRE>
<!-- END CODE SNIP //-->
<P><B>
DESCRIPTION
</B></P>
<P>The fstab file contains information about which filesystems to mount where and with what options. For NFS mounts,
it contains the server name and exported server directory to mount from, the local directory that is the mount point, and
the NFS-specific options that control the way the filesystem is mounted. Here is an example from an
/etc/fstab file from an NFS mount.
</P>
<!-- CODE SNIP //-->
<PRE>
server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr
</PRE>
<!-- END CODE SNIP //-->
<P><B>
OPTIONS
</B></P>
<TABLE>
<TR><TD>
rsize=n
</TD><TD>
The 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 rsize=8192.)
</TD></TR><TR><TD>
wsize=n
</TD><TD>
The 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 wsize=8192.)
</TD></TR><TR><TD>
timeo=n
</TD><TD>
The value in tenths of a second before sending the first retransmission after an RPC
time-out. The default value is 7 tenths of a second. After the first time-out, the time-out
is doubled after each successive time-out until a maximum time-out of 60 seconds is
reached or the enough retransmissions have occurred to cause a major time-out. Then, if
the filesystem is hard mounted, each new time-out cascade restarts at twice the initial value
of the previous cascade, again doubling at each retransmission. The maximum time-out
is always 60 seconds. Better overall performance may be achieved by increasing the
time-out when mounting on a busy network, to a slow server, or through several routers or gateways.
</TD></TR><TR><TD>
retrans=n
</TD><TD>
The number of minor time-outs and retransmissions that must occur before a major
time-out occurs. The default is 3 time-outs. When a major time-out occurs, the file operation
is either aborted or a "server not responding" message is printed on the console.
</TD></TR><TR><TD>
acregmin=n
</TD><TD>
The minimum time in seconds that attributes of a regular file should be cached
before requesting fresh information from a server. The default is
3 seconds.
</TD></TR><TR><TD>
acregmax=n
</TD><TD>
The maximum time in seconds that attributes of a regular file can be cached
before requesting fresh information from a server. The default is
60 seconds.
</TD></TR><TR><TD>
acdirmin=n
</TD><TD>
The minimum time in seconds that attributes of a directory should be cached
before requesting fresh information from a server. The default is
30 seconds.
</TD></TR><TR><TD>
acdirmax=n
</TD><TD>
The maximum time in seconds that attributes of a directory can be cached before
requesting fresh information from a server. The default is
60 seconds.
</TD></TR><TR><TD>
actimeo=n
</TD><TD>
Using actimeo sets all of
acregmin, acregmax, acdirmin, and acdirmax to the same value.
There is no default value.
</TD></TR></TABLE>
<A NAME="PAGENUM-1166"><P>Page 1166</P></A>
<TABLE>
<TR><TD>
retry=n
</TD><TD>
The number of times to retry a backgrounded NFS mount operation before giving up.
The default value is 10000 times.
</TD></TR><TR><TD>
namlen=n
</TD><TD>
When an NFS server does not support version 2 of the RPC mount protocol, this
option can be used to specify the maximum length of a filename that is supported on the
remote filesystem. This is used to support the POSIX
pathconf functions. The default is 255 characters.
</TD></TR><TR><TD>
port=n
</TD><TD>
The numeric value of the port to connect to the NFS server on. If the port number is
0 (the default) then query the remote host's port mapper for the port number to use. If the
remote host's NFS daemon is not registered with its port mapper, the standard NFS port
number 2049 is used instead.
</TD></TR><TR><TD>
mountport=n
</TD><TD>
The numeric value of the mountd port.
</TD></TR><TR><TD>
mounthost=name
</TD><TD>
The name of the host running
mountd.
</TD></TR><TR><TD>
mountprog=n
</TD><TD>
Use an alternate RPC program number to contact the mount daemon on the remote
host. This option is useful for hosts that can run multiple NFS servers. The default value
is 100005, which is the standard RPC mount daemon program number.
</TD></TR><TR><TD>
mountvers=n
</TD><TD>
Use an alternate RPC version number to contact the mount daemon on the remote
host. This option is useful for hosts that can run multiple NFS servers. The default value
is version 1.
</TD></TR><TR><TD>
nfsprog=n
</TD><TD>
Use an alternate RPC program number to contact the NFS daemon on the remote
host. This option is useful for hosts that can run multiple NFS servers. The default value
is 100003, which is the standard RPC NFS daemon program number.
</TD></TR><TR><TD>
nfsvers=n
</TD><TD>
Use an alternate RPC version number to contact the NFS daemon on the remote host.
This option is useful for hosts that can run multiple NFS servers. The default value is version
2.
</TD></TR><TR><TD>
bg
</TD><TD>
If the first NFS mount attempt times out, continue trying the mount in the
background. The default is to not to background the mount on time-out but to fail.
</TD></TR><TR><TD>
fg
</TD><TD>
If the first NFS mount attempt times out, fail immediately. This is the default.
</TD></TR><TR><TD>
soft
</TD><TD>
If an NFS file operation has a major time-out, then report an I/O error to the
calling program. The default is to continue retrying NFS file operations indefinitely.
</TD></TR><TR><TD>
hard
</TD><TD>
If an NFS file operation has a major time-out, then report "server not responding" on
the console and continue retrying indefinitely. This is the default.
</TD></TR><TR><TD>
intr
</TD><TD>
If an NFS file operation has a major time-out and it is hard mounted, then allow signals
to interrupt the file operation and cause it to return
EINTR to the calling program. The default is to not allow file operations to be interrupted.
</TD></TR><TR><TD>
posix
</TD><TD>
Mount the NFS filesystem using POSIX semantics. This allows an NFS filesystem
to properly support the POSIX pathconf command by querying the mount server for
the maximum length of a filename. To do this, the remote host must support version 2 of
the RPC mount protocol. Many NFS servers support only version 1.
</TD></TR><TR><TD>
nocto
</TD><TD>
Suppress the retrieval of new attributes when creating a file.
</TD></TR><TR><TD>
noac
</TD><TD>
Disable all forms of attribute caching entirely. This extracts a server performance
penalty, but it allows two different NFS clients to get reasonably good results when both clients
are actively writing to a common filesystem on the server.
</TD></TR><TR><TD>
tcp
</TD><TD>
Mount the NFS filesystem using the TCP protocol instead of the default UDP
protocol. Many NFS severs only support UDP.
</TD></TR><TR><TD>
udp
</TD><TD>
Mount the NFS filesystem using the UDP protocol. This is the default. All the
non-value options have corresponding nooption forms. For example,
nointr means don't allow file operations to be interrupted.
</TD></TR></TABLE>
<P><B>
FILES
</B></P>
<!-- CODE SNIP //-->
<PRE>
/etc/fstab
</PRE>
<!-- END CODE SNIP //-->
<P><CENTER>
<a href="1163-1164.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="1167-1167.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -