Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change default interval time value of AUTOFS

louisji2008
Frequent Advisor

How to change default interval time value of AUTOFS

I found in manpage of automount, this default value is 10 minutes:

If the filesystem is not accessed within an appropriate interval (10 minutes by default), the automountd daemon unmounts the file system.

 

But I cannot find how to change it either in  configuration file(/etc/rc.config.d/nfsconf) or in option of automountd.

 

please help me. 

How time flies~~~
2 REPLIES
Ralf Seefeldt
Valued Contributor

Re: How to change default interval time value of AUTOFS

Hi Louis,

what OS are you working on?
With HP-UX 11.31 and may be earlyer, there is a "feature". The automount timeout does not specify the time after the last access of the FS but rather the time since the FS was mounted. If that time is over, the FS gets umounted as soon as it is not accessed for a moment.

The configuration should be located in /etc/auto* (auto_master, auto.default, ...)

Bye
Ralf
Shilpa_K
Visitor

Re: How to change default interval time value of AUTOFS

Hi

 

You can use the following command to change the automount initiated unmount time interval:

 

automount -tduration

 

Where <duration> is the time in seconds before unmounting idle directories.

 

Regards,

Shilpa