November 27, 2013

Using the Automounter Service on RHEL 6

RHEL 6 ships with a convenient network mounter service, the automounter.

To check if the automounter is running.

$ service autofs status
automount (pid  2061) is running...

To use it, simply cd into the /net folder followed by nfs hostname.

$ cd /net/192.168.1.3
[root@tester1 192.168.1.3]# ll
total 0
dr-xr-xr-x. 4 root root 0 Nov 27 22:25 c

The remote network share will be unmounted automatically when unused for a configurable timeout.

$ grep -i timeout /etc/sysconfig/autofs 
...
TIMEOUT=300
...

No comments: