FS#31607 - [autofs] autofs does not unmount under systemd
Attached to Project:
Community Packages
Opened by hydro (hydro) - Wednesday, 19 September 2012, 10:46 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 23 October 2012, 09:59 GMT
Opened by hydro (hydro) - Wednesday, 19 September 2012, 10:46 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 23 October 2012, 09:59 GMT
|
Details
Description:
When switching to systemd using init=/usr/lib/systemd/systemd (and with rc.conf renamed) autofs no longer unmounts media or network shares after timeout. Rebooting with sysvinit (and rc.conf restored) makes autofs unmount expired media as before. In openSUSE 12.2 (uses systemd) autofs works (i.e. does mount and unmount). Additional info: * package version(s) autofs 5.0.7-1 systemd 189-4 I uninstalled gamin (mentioned in #25720), gvfs, udisks and udisks2 before testing. * config and/or log files etc. Sample configuration used for testing in console session: #/etc/conf.d/autofs daemonoptions='--debug' OPTIONS=--debug #/etc/autofs/auto.master /media/misc /etc/autofs/auto.misc --timeout=5 #/etc/autofs/auto.misc usbstick -fstype=ext4 :/dev/disk/by-uuid/ba50053b-2db7-44ad-9d44-50bad3d4638e Excerpts of /var/log/daemon.log (for systemd and sysvinit) attached. Steps to reproduce: Install and configure autofs. Boot with systemd. Access directory observed by autofs to make it mount. Leave mounted device unused (check with fuser) and wait for timeout. Device never gets umounted. |
This task depends upon
Closed by Dave Reisner (falconindy)
Tuesday, 23 October 2012, 09:59 GMT
Reason for closing: Fixed
Additional comments about closing: systemd-194
Tuesday, 23 October 2012, 09:59 GMT
Reason for closing: Fixed
Additional comments about closing: systemd-194
daemon_systemd.log
The following services must be stopped/disabled to make autofs work properly:
ntpd.service
cupsd.service
colord-service
colord-sane.service
The latter two are started as dependencies of cupsd.
The daemons mentioned above all have PrivateTmp=yes or PrivateTmp=true in their service file. Except for cups.service there is no other service file in /usr/lib/systemd/system/ that contains PrivateTmp.
If I set PrivateTmp=no in ntpd.service, autofs is not affected.
https://bugzilla.redhat.com/show_bug.cgi?id=851970
You might also try:
- stopping all services with PrivateTmp
- mount --make-private /
- restarting services with PrivateTmp
- triggering autofs mount, then see if it times out.
a) after boot and autofs mount
b) after boot followed by procedure described above followed by autofs mount
Not timeout in both cases. Autofs mountpoint is /media/misc/usbstick.
ExecStartPost=/bin/mount --make-private /media/misc/
ExecStartPost=/bin/mount --make-private /media/net/
After "systemctl --system daemon-reload" and reboot this make autofs unmount as before.
Same with systemd-192 and 194.
Edit: This was actually a kernel issue. Update 3.5.6 -> 3.6.2 solved it.