Posted by : Unknown Sunday, January 10, 2016

AUTOMOUNT
=========
Package name: autofs

What is Autofs---Autofs is a client-side service that automatically mounts the appropriate file system. The components that work together to accomplish automatic mounting are the following thats not parmanent mount when need its auto mount automatic

1. Sometimes you might want to mount a share (nfs or smb) permanently.
You can do it by adding the share details in the fstab file.
The problem is, if the target computer is not running then your computer would freeze at boot time. The reason is, your computer will try to mount all the filesystems mentioned in the fstab. Since the target computer is not running, your computer would fail to mount the nfs or smb share.

2. To avoid this situation, we configure automount to mount the shares.
3. Two files are needed to configure automount
i. auto.master
ii. auto.misc
both files reside in the /etc directory

4. Let's assume we have a share on a server named server-1
The servers ip is 192.168.1.1
The share path is /share1

5. We have a client machine named client-1
The clients ip is 192.168.1.2
We will mount the share in the /ok directory

6. We need to permanently mount the /share1 on client-1
7. First open the auto.master file
vim /etc/auto.master
/ok /etc/auto.misc
:wq

8. vim /etc/auto.misc
share1 -fstype=nfs 192.168.1.1:/share1
:wq

9. service autofs restart

10. ls /ok/share1

11. you should see the shared files.

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Popular Post

Facebook Page

- Copyright © Configuretion Redhat -Robotic Notes- Powered by Blogger - Designed by bdnet -