![]() # For details of the format look at auto.master(5). # This is a 'master' automounter map and it has the following format: The configuration part is Highlighted in Blue Color. Note: It is not mandatory to mention timeout syntax in /etc/auto.master configuration file but It is recommended to do so. The syntax to enter in /etc/auto.master file is shown below : The main configuration files of Autofs is /etc/auto.master where we can link the file in which we are going to mention all NFS mount points. package and /database. Now create a directory for Autofs to mount the filesystems. To check the NFS exports just run the below command.Īs we can see above we have two NFS exports i.e. Here we are going to use NFS exported shares with Autofs to automatically mount it. Verifying : 1:autofs-5.0.86_64 1/1Īs we can see the autofs package installed successfully, we can confirm the autofs packages installation status by using the below command. Ipa-client-4.1.0.1.x86_64 has missing requires of autofs ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows: Loading mirror speeds from cached hostfile ![]() # yum -y install autofs # Install Autofs Package Install the autofs packages by using the yum command as shown below. you can check if the packages are already installed or not by using the below command. How To Configure Autofs (Automount) In Linux Follow the below steps to configure Autofs Step: 1 Requires Packagesīefore we start the configuration of Autofs we have to install required packages. Note: We can set time for after what time the filesystem unmount automatically once the user stops using the mount point. Here we are using Autofs to mount the NFS exported shares automatically. once the user stops using that mount point it will unmount automatically. ![]() In that case till the user didn’t access the mountpoint it will be on unmounted state and you unable to see any mounted filesystem in /myautoshares directory, once the user access the mount point it will automatically get mounted and will be in mount state till user uses that mount point. By default the mount point’s configured in Autofs is in the unmounted state till the user access the mount point, once a user tries to access the mount point it will mount automatically and if the user doesn’t use the mount point for some time then it will automatically go to unmount state.įor example, if we have Two NFS (Network File System) exported share drives and configured in Autofs to automatically mount in a directory named /myautoshares for users. As we know that /etc/fstab is used for permanent mounting of file systems but it will be useful only if you have fewer mount points connected to your /etc/fstab file but if you are working on a large organization and have so many mount points linked to your /etc/fstab file then in that case your overall system’s performance will be get affected.īut Autofs mounts the file systems on user’s demand.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |