Bug#821944: [systemd] automounts not unmounted after timeout
Markus Grunwald
markus at the-grue.de
Wed Apr 20 17:49:21 BST 2016
Package: systemd
Version: 229-4
Severity: normal
--- Please enter the report below this line. ---
I have an automount configured so that it should unmount after 300s, but it is
not unmounted:
From man systemd.automount:
TimeoutIdleSec=
Configures an idle timeout. Once the mount has been idle for the
specified time, systemd will attempt to unmount.
% cat /etc/systemd/system/mnt-vdr.automount
[Unit]
Description=VDR recordings
ConditionPathExists=/mnt/vdr
Wants=network.target
After=network.target
[Automount]
Where=/mnt/vdr
TimeoutIdleSec=300
[Install]
WantedBy=multi-user.target
% mount | grep vdr
systemd-1 on /mnt/vdr type autofs
(rw,relatime,fd=38,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
% cd /mnt/vdr markus at zem % mount | grep vdr
systemd-1 on /mnt/vdr type autofs
(rw,relatime,fd=38,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
vdr:/srv/share/vdr on /mnt/vdr type nfs
(rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.178.47,mountvers=3,mountport=48705,mountproto=tcp,local_lock=none,addr=192.168.178.47)
% cd ~
% sleep 400; mount | grep vdr
systemd-1 on /mnt/vdr type autofs
(rw,relatime,fd=38,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
vdr:/srv/share/vdr on /mnt/vdr type nfs
(rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.178.47,mountvers=3,mountport=48705,mountproto=tcp,local_lock=none,addr=192.168.178.47)
So after 400s it's still mounted. I guarantee that no other process
accessed /mnt/vdr in that time.
--- System information. ---
Architecture: amd64
Kernel: Linux 4.4.0-1-amd64
Debian Release: stretch/sid
700 testing www.deb-multimedia.org
700 testing security.debian.org
700 testing ftp2.de.debian.org
600 unstable ftp2.de.debian.org
500 utopic ppa.launchpad.net
500 saucy ppa.launchpad.net
500 grml-testing deb.grml.org
--- Package information. ---
Depends (Version) | Installed
=========================================-+-==================
libacl1 (>= 2.2.51-8) | 2.2.52-3
libaudit1 (>= 1:2.2.1) |
libblkid1 (>= 2.17.2) |
libcap2 (>= 1:2.10) |
libcryptsetup4 (>= 2:1.4.3) |
libdbus-1-3 (>= 1.1.1) |
libkmod2 (>= 5~) |
libpam0g (>= 0.99.7.1) |
libselinux1 (>= 2.1.9) |
libsystemd-journal0 (= 208-8) |
libudev1 (>= 189) |
libwrap0 (>= 7.6-4~) |
libsystemd-login0 (= 208-8) |
util-linux (>= 2.19.1-2) |
initscripts (>= 2.88dsf-53.2) |
sysv-rc |
udev |
acl |
adduser |
libcap2-bin |
Package Status (Version) | Installed
=============================-+-===========
udev | 229-4
Recommends (Version) | Installed
=============================-+-===========
libpam-systemd | 229-4
Suggests (Version) | Installed
=========================-+-===========
systemd-ui |
--- Output from package bug script ---
--
Markus Grunwald
https://www.the-grue.de
Fragen zur Mail? https://www.the-grue.de/mail_und_co
https://www.the-grue.de/~markus/markus_grunwald.gpg
More information about the Pkg-systemd-maintainers
mailing list