Hi Mark,

You can specify the entries (in my case ISO files) in /etc/auto.master. Indeed 
then there is no timeout option. Or rather the default timeout in 
/etc/sysconfig/autofs is used. This is indeed what is in the man page for 
auto.master.

Or you can specify configuration files, for instance in /etc/autofs/*, that 
contain various entries. In the /etc/auto.master a timeout option can be used 
to override the default option for this specific entry file.

In my configuration I have:

~ # cat /etc/sysconfig/autofs
...snip...
## Description:    Set the default mount timeout (default 600).
## Type:           integer(0:)
## Default:        600
#
DEFAULT_TIMEOUT=20
...snip...

~ # cat /etc/auto.master:
...snip...
# my configuration files
/srv/sources/SLES /etc/autofs/auto.sles -timeout=30
/srv/sources/RedHat /etc/autofs/auto.redhat -timeout=30
/srv/sources/various /etc/autofs/auto.various -timeout=30

~ # cat /etc/autofs/auto.sles
SLES10      -fstype=iso9660,ro,loop :/srv/iso/SLES-10-SP2-DVD-s390x-GM-DVD1.iso
SLES11_DVD1 -fstype=iso9660,ro,loop :/srv/iso/SLES-11-SP1-DVD-s390x-GM-DVD1.iso
SLES11_2_DVD1 -fstype=iso9660,ro,loop 
:/srv/iso/SLES-11-SP2-DVD-s390x-GM-DVD1.iso
SLES11_2_SDK -fstype=iso9660,ro,loop 
:/srv/iso/SLE-11-SP2-SDK-DVD-s390x-GM-DVD1.iso
...snip...



Met vriendelijke groet/With kind regards/Mit freundlichen Grüßen,
Berry van Sleeuwen

-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Mark Post
Sent: Friday, November 21, 2014 5:48 PM
To: [email protected]
Subject: Re: autofs doesn't umount

>>> On 11/20/2014 at 11:42 AM, Berry van Sleeuwen
>>> <[email protected]>
wrote:
> Currently I have /etc/sysconfig/autofs with a timeout of 20 seconds.
> The entries through auto.master have a timeout of 30 seconds. Now the
> mounted image gets unmounted.
>
> I have to test what the real issue is here. Either
> /etc/sysconfig/autofs is leading, or the entry in /etc/auto.master.
> The tests so far were inconclusive.

From reading the man page for auto.master, I seems there isn't a parameter 
there that will control timeouts.  That is specified in /etc/sysconfig/autofs.  
What is it that you have in /etc/auto.master?


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit http://wiki.linuxvm.org/
This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, Atos’ liability cannot be triggered for the message 
content. Although the sender endeavours to maintain a computer virus-free 
network, the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. On all 
offers and agreements under which Atos Nederland B.V. supplies goods and/or 
services of whatever nature, the Terms of Delivery from Atos Nederland B.V. 
exclusively apply. The Terms of Delivery shall be promptly submitted to you on 
your request.

Reply via email to