Description of problem: Man automount says: -t, --timeout Set the global minimum timeout, in seconds, until directories are unmounted. The default is 10 minutes. Setting the timeout to zero disables umounts completely. However, the default timeout is 10 seconds. The daemon says: $ sudo automount -v -f Starting automounter version 5.0.7-29.fc20, master map auto.master using kernel protocol version 5.02 mounted indirect on /mnt/auto with timeout 10, freq 3 seconds And in 10 seconds, my NFS directories are unmounted. The man page should be corrected, or the software should be corrected. Version-Release number of selected component (if applicable): autofs-5.0.7-29.fc20.x86_64 How reproducible: always Steps to Reproduce: 1. run the daemon in default configuration 2. see that NFS shares are unmounted in 10 seconds
(In reply to Kamil Páral from comment #0) > Description of problem: > Man automount says: > -t, --timeout > Set the global minimum timeout, in seconds, until directories > are unmounted. The default is 10 minutes. Setting the timeout to zero > disables umounts completely. The Fedora installed configuration changes that to 5 minutes. > > However, the default timeout is 10 seconds. The daemon says: > > $ sudo automount -v -f > Starting automounter version 5.0.7-29.fc20, master map auto.master > using kernel protocol version 5.02 > mounted indirect on /mnt/auto with timeout 10, freq 3 seconds > > And in 10 seconds, my NFS directories are unmounted. > > The man page should be corrected, or the software should be corrected. You should have a look at the configuration and post it as evidence that something isn't working correctly. > > Version-Release number of selected component (if applicable): > autofs-5.0.7-29.fc20.x86_64 > > How reproducible: > always Works fine for me. > > Steps to Reproduce: > 1. run the daemon in default configuration > 2. see that NFS shares are unmounted in 10 seconds I can't reproduce this behaviour. It's possible there's a bug in f20 so post the autofs configuration that is being used and if you really have observed a problem I'll look into it.
You haven't posted the autofs configuration either, you should also do that.
Created attachment 823385 [details] auto.master
Created attachment 823386 [details] auto.auto
Created attachment 823387 [details] autofs
You are right, my /etc/sysconfig/autofs configuration was changed (probably long time ago) to 10 seconds. Sorry about the false alarm. However, this indicates there are 2 areas to improve: 1. The man page does not reflect Fedora-specific patches. 2. No man page speaks about /etc/sysconfig/autofs (man autofs, man automount, etc). That is the reason I did not find the changed TIMEOUT value. I was looking into manpages and then looking into /etc/auto* files. Only after your comment I performed "rpm -qc autofs" and found /etc/sysconfig/autofs. If would be good to include this file name into the man page, so that other people are not fooled similarly as I was, believing that /etc/auto* is the only configuration present. Thanks for consideration.
Oh, please free to close this as notabug if you decide not to adjust the man pages or track the issue elsewhere. Thanks.
(In reply to Kamil Páral from comment #6) > You are right, my /etc/sysconfig/autofs configuration was changed (probably > long time ago) to 10 seconds. Sorry about the false alarm. > > However, this indicates there are 2 areas to improve: > > 1. The man page does not reflect Fedora-specific patches. There is no Fedora specific configuration. It's possible that a current configuration hasn't been installed due to the existence of an old one, since we don't overwrite existing configurations. The installed configuration has has this above the TIMEOUT configuration entry for a long time now. # TIMEOUT - set the default mount timeout in secons. The internal # program default is 10 minutes, but the default installed # configuration overrides this and sets the timeout to 5 # minutes to be consistent with earlier autofs releases. > > 2. No man page speaks about /etc/sysconfig/autofs (man autofs, man > automount, etc). That is the reason I did not find the changed TIMEOUT > value. I was looking into manpages and then looking into /etc/auto* files. > Only after your comment I performed "rpm -qc autofs" and found > /etc/sysconfig/autofs. If would be good to include this file name into the > man page, so that other people are not fooled similarly as I was, believing > that /etc/auto* is the only configuration present. Thanks for consideration. auto.master(5) talks quite a bit about configuration and mentions the path of the file within the first couple of paragraphs. The path in sed substituted at build time so it should be accurate. Ian
(In reply to Kamil Páral from comment #7) > Oh, please free to close this as notabug if you decide not to adjust the man > pages or track the issue elsewhere. Thanks. You can always post patches here or upstream if you'd like something changed but in the meantime I'll close this as NOTABUG.
(In reply to Ian Kent from comment #8) > > 1. The man page does not reflect Fedora-specific patches. > > There is no Fedora specific configuration. Let me rephrase it. This is the _default_ autofs config file (I downloaded a fresh RPM, extracted it and looked into it): > # > # TIMEOUT - set the default mount timeout (default 600). > # > TIMEOUT=300 As you can see, the default TIMEOUT in Fedora is 5 minutes. However, both the comment in the config file and the man page say 10 minutes. So I believe that should be fixed. The man page should say 5 minutes, and the autofs config file should say "(default 300)". Just a cosmetic error, indeed.
(In reply to Kamil Páral from comment #10) > (In reply to Ian Kent from comment #8) > > > 1. The man page does not reflect Fedora-specific patches. > > > > There is no Fedora specific configuration. > > Let me rephrase it. This is the _default_ autofs config file (I downloaded a > fresh RPM, extracted it and looked into it): > > > # > > # TIMEOUT - set the default mount timeout (default 600). > > # > > TIMEOUT=300 > > As you can see, the default TIMEOUT in Fedora is 5 minutes. However, both > the comment in the config file and the man page say 10 minutes. So I believe > that should be fixed. The man page should say 5 minutes, and the autofs > config file should say "(default 300)". > Oh, I must have missed applying a patch to the upstream source at some point. It's not like that in RHEL-6. I'll locate the missing patch and apply it, thanks.
Created attachment 824230 [details] Patch - improve timeout option description OK, it's already included in 5.0.8 and hence Rawhide, and in RHEL-6, but it's not in RHEL-7.
autofs-5.0.7-30.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/autofs-5.0.7-30.fc20
Package autofs-5.0.7-30.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing autofs-5.0.7-30.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-21445/autofs-5.0.7-30.fc20 then log in and leave karma (feedback).
autofs-5.0.7-35.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/autofs-5.0.7-35.fc20
autofs-5.0.7-35.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.