⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 automount.8nfs

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 8NFS
📖 第 1 页 / 共 2 页
字号:
.TH automount 8nfs.SH Nameautomount \- automatically and transparently mounts and unmounts NFS file systems.SH Syntax.B /usr/etc/automount[.B \-mnTv.\" v][.I \-D name=.I value][.B \-f .I master-file].br[.B \-M .I mount-directory][.B \-tl.I duration .\" .I sub-options][.B \-tm.I interval][.B \-tw.I interval  ].br[.I directory mapname[.B \-.I mount-options]].SH DescriptionThe .PN automount .NXR "automount command"command  transparently mounts andunmounts NFS file systems on an as-needed basis.  It is useful for mounting file systems and directories that areneeded only occasionally, andit provides an alternative to using.PN /etc/fstab.\" .NXR "automount command" "/etc/fstab file".\" .NXR "automount command" "/etc/rc.local file"for NFS mounting file systems on client machines..PPThe .PN automountprogram can be started from the.PN /etc/rc.localfile or the command line. .\".NXR "automount command" "and /etc/fstab file".\".NXR "automount command" "and /etc/rc.local file"The daemon forked by the.PN automountprogram sleeps until a user attempts to access a directory that isassociated with an .PN aautomount map.The daemon then consults the appropriate map and mounts the NFSfile system.  If the indicated directory has not already been created,the daemon creates it and removes it after automatic .PN unmount ..PPLocal .PN automount maps are typically located in the.PN /etcdirectory but can be placed in any directory. You also can use the Yellow Pages Service to distribute.PN automountmaps. The maps indicate where to find the file system to bemounted, the local mount point, and mount options.  After a specified period of inactivity on a file system, 5 minutes by default, the.PN automountdaemon unmounts that file system..PPAn individual automount map is either local or served by the YellowPages.  A system, however,can use both local and Yellow Pages automount maps.When a map is referenced, the.PN automountprogram first looks for the designated .I mapname locally.  If it cannot find the .I mapname locally, it looks for a YellowPages map by that name.The names of the maps are passed to  .PN automountfrom the command line, or from a master map. .PPIf the command lineand the master map contain contradictory arguments, those on the command line take precedence..PPBy default, the daemon mounts the remote file system under the directory.PN /tmp_mntand creates a symbolic link between the requested and the actualmount points..SS MapsConventionally, .PN automount maps are files that are located in the.PN /etc directory with names that have the prefix.PN auto .  .NXR "automount maps"They indicate which remote file systems to mount,where to mount them, and which options to use.  .ne 6.SS "\fIThe Master Map"The .PN automountprogram can consult a master map, which contains entries that point to othermaps that can be either direct or indirect.  If Yellow Pages is running,.PN automountchecks for the presence of a YP map named .PN auto.master .You are not required to run YP or have an .PN auto.mastermap.  A master map can also be a file whose location is specified with the .PN \-f command line option.  .PPThe master map provides .PN automount with a list of maps, and with arguments that pertainto each of the maps. Each line in themaster map has the following syntax:.PP.I "mount-point   map  [mount-options]".PP.IP \(bu 4.I Mount-pointis the full pathname of a local directory if the.I mapargument is the name of an indirect map or the name of a special map.If the.I map argument is the name of a direct map, the dummy directory ``/-'' is specified as the .I mount-point..IP \(bu 4.I Mapis the name of the map the automount command uses to find the mount pointsand locations.  This can either be a filename, a YP map name, or aspecial map name..IP \(bu 4.I Mount-optionsis a list of options used to regulate the mounting of entries listed in.I map..ne 6.SS "\fIDirect Maps"Direct maps specify which remote file systems to mount locally and whatthe local mount points are. They do not point to other maps. They alsocan specify mount options. Direct maps have the following syntax:.PP.I "key   [mount-options]   location".PP.IP \(bu 4.I Keyis the full pathname of the mount point..IP \(bu 4.I Mount-optionsare the options for this specific mount. When present, these options  override any mount options specified on the command lineor in the master map..IP \(bu 4.I Locationis the location of the resource being mounted, specified as:.I server:pathname.  Multiple .I locationfields can be specified, in which case .PN automountsends multiple mount requests and mounts from the first server to respond..ne 6.SS "\fIIndirect Maps"Indirect maps have the same format as direct maps.The only difference between a direct and an indirect map is that the keyin a direct map is a full pathname, whereas the key in an indirectmap is a simple name that does not begin with a slash.  (Remember thatthe indirect map as a whole has been associated with a directoryspecified in the master map or on the command line.  The entries in anindirect map list subdirectories that are individually mounted withinthe directory associated with the map.).\" .\" (the next section is commented out from the original version.\"  of this manpage due to the fact that it seemed curiously misleading.\".\".PP.\" The maps contain entries in the following format.  While multiple locations.\" for a particular \fIbasename\fR can be specified, they.\"should only be used for read-only file systems..\".EX.\"[\fIbasename\fR [\fI\-mount-options\fR][\fIlocation1\fR][\fIlocation2\fR]....\".EE.\"The \fIbasename\fR field specifies a subdirectory within the .\".I directory.\"designated in the .\".PN automount .\"command line.  .\"The \fI\-mount-options\fR tell the .\".PN automount .\"program what parameters and access restrictions apply to that mount.  .\"See mount(8nfs) for more information..\".PP.\"Each \fIlocation\fR field indicates where the file system resides on.\"the remote host, and has the following format:.\"Maps are considered either direct or indirect depending.\"on how the \fIbasename\fR field is specified..\"In a direct map the \fIbasename\fR is a full pathname..\"In an indirect map the \fIbasename\fR is a simple name.  .\"The rest of the required information about where the remote file system.\"is located is provided either on the command line or in another map..\"The rest of the information that .\".PN automount.\"requires about.\"the remote file system location is provided either on the command line.\"or in another map..\".EX.\"\fIhost:remote-pathname[:subdirectory].\".EE.\"The \fIhost\fR field specifies the remote host from which.\"to mount the designated file system.  The \fIremote-pathname\fR is .\"the absolute pathname of a file system or subtree of a file system that.\"is exported by \fIhost\fR.  .\".PP.\"If you specify more than one location for a file system, the .\".PN automount .\"program broadcasts a mount request to all specified hosts..\"The first to respond gets mounted..\".PP.\"The \fIsubdirectory\fR field is optional..\"When supplied, it indicates the subdirectory within the .\"remote file system to which you want \fIbasename\fR linked.  .\"Specifying subdirectories allows mount points to be shared..\"Rather than creating a symbolic link directly to the mount point,.\".PN automount.\"creates a symbolic link to the specified subdirectory.  One .\"mount point can have multiple symbolic links to subdirectories.\"within the mounted file system..ne 6.SS "\fISpecial Maps"The .PN \-hostsmap is a special .PN automount map that is used to access all directoriesexported by a server to a client.  .PPThe following command allows a client to access directories that are exported from any host in its.PN /etc/hostsfile, the Yellow Pages hosts database, or the BIND database..EX # \f(CBautomount /net \-hosts\f(CW.EE.NXR "automount maps" "and Yellow Pages".PPFor example, suppose that .PN hera and .PN sheba 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -