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. # showmount -e 192.168.0.104Īs we can see above we have two NFS exports i.e. To check the NFS exports just run the below command. 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 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 yum command as shown below. you can check if the packages is already installed or not by using below command. 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 user stop using the mountpoint. Bydefault the mount point’s configured in Autofs is in unmounted state till the user access the mount point, once user try to access the mount point it will mount automatically and if user dont use the mount point for some time then it will automatically go to unmount state. Here I am going to explain you what is the exact difference between /etc/fstab and Autofs.Īs we know that /etc/fstab is used for permanent mounting of file systems but it will be useful only if you have less mount points connected to your /etc/fstab file but if you are working on a large organisation and have so many mount points linked to your /etc/fstab file then in that case your overall system’s performance will be get effected.īut Autofs mounts the file systems on user’s demand. You might thinking that if both are doing the same thing then why to use Autofs (Automount) instade of /etc/fstab. and what is the difference between /etc/fstab and Autofs. Download Free Linux eBook HERE! "Learn Linux in 5 Days" - A Free Linux eBooks for Beginners Difference Between /etc/fstab and Autofs (AutoMount)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |