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

📄 automount.8nfs

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 8NFS
📖 第 1 页 / 共 2 页
字号:
are both hosts on alocal area network that is running Yellow Pages.If the .PN /etc/rc.localfile on .PN heracontains the command .PN "automount /net \-hosts" ,then users on .PN hera can access any directories that .PN sheba exports to .PN hera .All of the exported directories are mounted under.PN /net/sheba on .PN hera ..PPThe .PN \-nullmap, when indicated on the command line, cancels the map associated withthe directory indicated.  It can be used to cancel a map specified in themaster map.  For example, invoking the.PN automountcommand in the following manner causes the .PN /netentry in .PN auto.masterto be ignored:.EX# \f(CBautomount /net \-null\f(CW.EE.SS Pattern MatchingThe ampersand (&)is expanded into the key field in a map wherever it appears.  In the following example, the ampersand (&) expands to.PN oak :.EX        #key      mount_options	     location        #        oak                           &:/export/&.EE.PPThe asterisk (*), when supplied as the key field, is recognized as thecatch-all entry.  It is used to substitute for lines that are all formatted similarly. Any entry following the asterisk is ignored.  In the following example, the.PN automount program uses the asterisk to match any hostname other than .PN oak :.EX	#key         mount_options        location	#	oak                               &:/export/&	*                                 &:/home/&.EE.SS Environment VariablesThe value of an environment variable can be used within an automount mapby prefixing a dollar sign ($)to its name.  You can also use braces to delimit the name of thevariable from appended letters or digits.  The environment variablescan be inherited from the environment or can be explicitly defined withthe .PN \-D command line option..SS Hierarchical MountsYou can mount different directories within an .PN automountfile system hierarchy from different servers.  For example,if you are mounting the .PN /usr/localfile system on your machine, you can mount the various subdirectories within .PN /usr/localfrom different servers..PPIn the following example, the directories.PN /usr/local ,.PN /usr/local/bin ,.PN /usr/local/src ,and.PN /usr/local/toolsare mounted from the machines host1, host2, host3, and host4respectively.  When the root of the hierarchy is referenced,the.PN automountprogram mounts the whole hierarchy..PP.EX/usr/local\\		/         -ro       host1:/usr/local \\		/bin      -ro       host2:/usr/local/bin \\		/src      -ro       host2:/usr/local/src \\		/tools    -ro       host2:/usr/src/tools.EE.PPReadability has been improved by splitting the entry into fivelines and indenting the continuation lines..SH Options.NXR "automount command" "options".IP \-m 10 Ignores directory-mapname pairs listed in the.PN /etc/auto.master Yellow Pages database..IP \-n 10 Disables dynamic mounts.  Lookups intercepted by the .PN automountdaemon succeed when the target file system has been previously mounted..IP \-T 10 Traces all NFS requests received by the daemon.  Information aboutthe details of the request are expanded and sent to standard output..IP \-v 10 Logs status messages to the console.  (Stands for ``verbose.'').IP "\-D \fIname\fR=\fIvalue\fR" 10 Defines an .PN automountenvironment variable by assigning.I valueto the variable. .\".I  name.\"and assigns it the value.\".I value.\"to be used in .\".PN automount .\"maps..IP "\-f \fImaster-file\fR" 10 Uses \fImaster-file\fR for a list of initial directory to mapname pairs, ahead of the .PN auto.master Yellow Pages map.  If an entry exists in both.I master-fileand.PN auto.master ,that specified in .I master-fileis used since it is read first.  Similarly, entries on thecommand line take precedence over .I master-fileentries.  This technique can be used to replace entries in global maps with your own..IP "\-M \fImount-directory\fR" 10 Uses .I mount-directory instead of the default,.PN /tmp_mnt ..IP "\-tl \fIduration\fR" 10Specifies a.I durationin seconds, that a file system is to remain mounted when not in use.The default is 5 minutes..IP "\-tm \fIinterval\fR" 10Specifies an.I intervalin seconds, between attempts to mount a file system. The defaultis 30 seconds..IP "\-tw \fIinterval\fR" 10Specifies an   .I intervalin seconds, between attempts to unmount file systems that have exceededtheir cached times. The default is 1 minute..\".IP "-t \fIsub-options\fR" 10.\"Specify the NFS mount options.  All mount options .\"apply except background.\".PN (bg) .\"and foreground (.\".PN (fg)..\".IP "\fIdirectory\fR" 10  .\"Specifies the mount point for.\".PN automount.\"itself.  .\".I Directory.\"is an absolute pathname starting with a slash ( / ).  If the.\"directory does not exist, it is created by the .\".PN automount.\"daemon and is removed when the daemon exits..\".IP "\fImapname\fR" 10 .\"Specifies the name of the map file that .\".PN automount .\"is searching for.  The.\".PN automount .\"command first searches locally for a file called .\".I mapname..\"If the file does not exist, .\".PN automount .\"looks for a Yellow Pages map called.\".I mapname..IP \fI\-mount_options\fR 10 Specifies the mount options to be applied to all of the directories listedin .I mapname.  If mount options are listed in the specified map, they take precedenceover these options..NTSending the SIGTERM signal to the .PN automountdaemon causes it to unmount all file systems that it has mounted, and to exit..spSending the SIGHUP signal to the .PN automountdaemon causes it to reread the system mount table to update its internalrecord of currently mounted file systems.  If a file system mountedwith.PN automountis unmounted by a .PN umountcommand, .PN automountshould be forced to reread the system mount table..NE.SH RestrictionsShell filename expansion does not apply to objects not currentlymounted..PPBecause .PN automountis single-threaded, any request that is delayed by a slow ornon-responding NFS server will delay all subsequent .PN automountrequestsuntil the delayed request has been completed..SH ExamplesThe following is a sample.PN auto.mastermap:.EX ## mount-point           mapname           mount-options#/net                    -hosts		/home                   auto.indirect     -rw/-                      auto.direct       -ro,intr.EEThe following is a typical .PN automount indirect map: .EX## key               mount-options         location#john                                      merge:/home/merge/johnmary                                      stripe:/home/stripe/maryfred                                      blur:/usr/staff/fred.EEThe following is a typical .PN automount direct map: .EX## key               mount-options         location#/usr/source         -ro                   merge:/usr/src/proto/usr/local                                blur:/usr/bin/tools.EEThe following is a sample indirect map that specifies multiplemount locations for the file system.PN reference .The file system is mounted from the first server to respond to the.PN mount request. .EXreference           \-ro            earl:/usr/src/ref\\                                   fern:/usr/staff/ron/ref\\                                   irv:/usr/backup/reference.EE.SH Files.TP 15.PN /tmp_mntDirectory where automounted file systems reside.SH See Alsomount(8), mount(8nfs), umount(8).br\fIGuide to the Network File System\fP

⌨️ 快捷键说明

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