Index: head/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml =================================================================== --- head/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml +++ head/en_US.ISO8859-1/books/handbook/network-servers/chapter.xml @@ -798,110 +798,6 @@ for further details. - - - Automating Mounts with &man.amd.8; - - - - - Wylie - Stilwell - - Contributed by - - - - - - - Chern - Lee - - Rewritten by - - - - - amd - - automatic mounter daemon - - - The automatic mounter daemon, - amd, automatically mounts a remote - file system whenever a file or directory within that file - system is accessed. File systems that are inactive for a - period of time will be automatically unmounted by - amd. - - This daemon provides an alternative to modifying - /etc/fstab to list every client. It - operates by attaching itself as an NFS - server to the /host and - /net directories. When a file is - accessed within one of these directories, - amd looks up the corresponding - remote mount and automatically mounts it. - /net is used to mount an exported file - system from an IP address while - /host is used to mount an export from a - remote hostname. For instance, an attempt to access a file - within /host/foobar/usr would tell - amd to mount the - /usr export on the host - foobar. - - - Mounting an Export with - <application>amd</application> - - In this example, showmount -e shows - the exported file systems that can be mounted from the - NFS server, - foobar: - - &prompt.user; showmount -e foobar -Exports list on foobar: -/usr 10.10.10.0 -/a 10.10.10.0 -&prompt.user; cd /host/foobar/usr - - - The output from showmount shows - /usr as an export. When changing - directories to /host/foobar/usr, - amd intercepts the request and - attempts to resolve the hostname - foobar. If successful, - amd automatically mounts the - desired export. - - To enable amd at boot time, add - this line to /etc/rc.conf: - - amd_enable="YES" - - To start amd now: - - &prompt.root; service amd start - - Custom flags can be passed to - amd from the - amd_flags environment variable. By - default, amd_flags is set to: - - amd_flags="-a /.amd_mnt -l syslog /host /etc/amd.map /net /etc/amd.map" - - The default options with which exports are mounted are - defined in /etc/amd.map. Some of the - more advanced features of amd are - defined in /etc/amd.conf. - - Consult &man.amd.8; and &man.amd.conf.5; for more - information. - - Automating Mounts with &man.autofs.5;