The following step creates a mount point at /nfs and configures it according to the settings specified in /etc/auto.nfs (which we will create in the next step). Go to the NFS Setup Page to learn how to set up such a server. This howto assumes that you are already familiar with NFS exports, and that you already have a properly-functioning NFS share on your network. In this howto, we will configure autofs to auto-mount an NFS share, using a set of configuration files. These files are usually named using the convention auto., where can be anything as long as it matches an entry in auto.master and is valid for a file-name. If the map file is not specified using a full local or network path, the Name Service Switch configuration will be used to locate the map, e.g.: /- auto.dataĪs indicated above, each autofs mount has its own map file.For example, the following line instructs autofs to create a mount-point at the place specified in auto.data: The mount-point entry in auto.master is always /. This entry in auto.master tells autofs to look in /etc/auto.smb and create mount-points in the /smb directory.ĭirect maps create a mount-point at the path specified in the relevant map file. For example, consider the following master map entry: Indirect maps, such as those in the auto.master file shown above, create-mount points as subdirectories inside the main mount-point. mount-point :] map Īutomount maps can be direct or indirect.# For details of the format look at autofs(5).īy default, all lines are commented out by using the # character.Įach of the lines in auto.master describes a mount and the location of its map. # This is an automounter map and it has the following format Here is the sample file provided by Ubuntu: Unless you have a good reason for changing this, leave it as the default. The master configuration file for autofs is /etc/auto.master by default. There are other ways to configure autofs on a network (see AutofsLDAP), but config files provide the simplest setup. Install the autofs package either by clicking here or entering the following in a terminal window:Īutofs can be configured by editing configuration files. Auto-mount or auto-mounting refers to the process of automatically mounting filesystems.Īutofs is the program that controls the operation of the automount daemons.When autofs is started, an automount daemon is spawned for each map. To avoid confusion, the following terminologies will be used:Īutomount is the program used to configure a mount point for autofs. Because of this, automounting NFS/Samba shares conserves bandwidth and offers better overall performance compared to static mounts via fstab. Auto-mounts are mounted only as they are accessed, and are unmounted after a period of inactivity. Unmount static mounts and edit /etc/fstabĪutofs is a program for automatically mounting directories on an as-needed basis.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |