AMD(8) | System Manager's Manual | AMD(8) |
amd
—
automatically mount file systems
amd |
[-nprv ]
[-a mount_point]
[-C cluster]
[-c duration]
[-D option]
[-d domain]
[-k kernel-arch]
[-l logfile]
[-t interval.interval]
[-w interval]
[-x log-option]
[-y YP-domain]
[directory mapname [-map-options ]] ... |
amd
is a daemon that automatically mounts
filesystems whenever a file or directory within that filesystem is accessed.
Filesystems are automatically unmounted when they appear to be
quiescent.
amd
operates by attaching itself as an NFS
server to each of the specified directories. Lookups
within the specified directories are handled by amd
,
which uses the map defined by mapname to determine how
to resolve the lookup. Generally, this will be a host name, some filesystem
information and some mount options for the given filesystem.
The options are as follows:
-a
mount_point-C
cluster-c
duration-D
optionSince -D
is only used for debugging,
other options are not documented here: the current supported set of
options is listed by the -v
option and a fuller
description is available in the program source.
-d
domain-k
kernel-arch-l
logfile-n
-p
amd
to standard output
where it can be saved into a file.-r
amd
will scan the mount
file table to determine which filesystems are currently mounted. Whenever
one of these would have been auto-mounted, amd
inherits
it.-t
interval.interval-v
-w
interval-x
log-option-y
YP-domainhostname(1), amq(8), mount(8), umount(8)
J-S. Pendry and N. Williams, Amd — The 4.4 BSD Automounter, 4.4BSD System Manager's Manual (SMM).
The amd
utility first appeared in
4.4BSD.
Jan-Simon Pendry <jsp@doc.ic.ac.uk>, Department of Computing, Imperial College, London, UK.
Some care may be required when creating a mount map.
Symbolic links on an NFS filesystem can be incredibly inefficient. In most implementations of NFS, their interpolations are not cached by the kernel and each time a symbolic link is encountered during a lookuppn translation it costs an RPC call to the NFS server. A large improvement in real-time performance could be gained by adding a cache somewhere. Replacing symlink(2) with a suitable incarnation of the auto-mounter results in a large real-time speedup, but also causes a large number of process context switches.
A weird imagination is most useful to gain full advantage of all the features.
March 8, 2021 | OpenBSD-7.0 |