Entries Tagged 'RedHat Tips' ↓

Changing the default idle timeout for autofs

The default timeout for autofs is 300 seconds (5 minutes). After five minutes of inactivity, a filesystem that is mounted will be automatically unmounted. This is a typical safe value. If it needs to be changed, then a different value can be given in the /etc/auto.master. This value is given in seconds.

For example, the following line indicates the directory is not to be unmounted until 1 minute of inactivity has passed:

/misc  /etc/auto.misc --timeout=60

Setting the option –timeout to 0 disables unmounting completely.

Warning: In some situations, disabling unmounting may have adverse side effects. Consider the server’s memory and network resources when setting this option.