Bug#798314: systemd: Systemd waits 30 minutes to shut down because of NFS share

Javier Ayres javierayres at gmail.com
Wed Sep 9 04:09:21 BST 2015


I edited the wpa_supplicant service as you suggested but the issue is still
present. I've also found that the behavior is not consistent, sometimes it
waits 90 seconds and sometimes it waits 30 minutes (even after changing the
fstab entry).

2015-09-08 14:01 GMT-03:00 Michael Biebl <biebl at debian.org>:

> Control: severity -1 important
>
> Am 08.09.2015 um 02:33 schrieb Javier Ayres:
> > Package: systemd
> > Version: 225-1
> > Severity: normal
> >
> > I have a NFS share configured in my /etc/fstab as follows:
> >
> > 192.168.1.4:/mnt/samsung               /mnt/D3 nfs
> > auto,nofail,timeo=25,users,_netdev,bg,comment=x-gvfs-show  0 0
> >
> > The drive is mounted correctly at startup, but if I don't manually
> unmount it
> > before shutting down the system will take 30 minutes to shut down. The
> message
> > "A stop job is running for /mnt/D3 (0s / 1min 30s)" is shown; after 90
> seconds
> > it changes to something like "A stop job is running for /mnt/D3 (1min
> 30s /
> > 3min)" and it keeps incrementing until 30 minutes have passed. I changed
> the
> > fstab entry to:
> >
> > 192.168.1.4:/mnt/samsung               /mnt/D3 nfs
>  users,_netdev,comment=x
> > -gvfs-show  0 0
> >
> > Now it honors the 1min 30s timeout, but it takes 90 seconds at startup
> as well
> > ("A start job is running...").
> >
> > I'm running an up to date version of Debian (testing branch) and the NFS
> server
> > is a Raspberry Pi with Raspbian. I'm happy to provide more details if
> needed.
>
>
> I tried to reproduce the problem, using ethernet and ifupdown
>
> - added 1.2.3.4:/test/nfs /mnt/nfs auto,nofail 0 0 to fstab
> - rebooted
> - checked that /mnt/nfs was correctly mounted
> - stop network via ifdown eth0
> - run shutdown
>
> This blocks indefinitely here. Inspecting the journal on a debug-shell I
> get
>
> > Sep 08 18:55:12 debian systemd[1]: Stopped target Remote File Systems.
> > Sep 08 18:55:12 debian systemd[1]: Unmounting /mnt/nfs...
> > Sep 08 18:55:12 debian systemd[1]: Stopped target Basic System.
> > Sep 08 18:55:12 debian systemd[1]: Stopped target Slices.
> > Sep 08 18:55:12 debian systemd[1]: Removed slice User and Session Slice.
> > Sep 08 18:55:12 debian systemd[1]: Stopped target Sockets.
> > Sep 08 18:55:13 debian systemd[1]: Closed D-Bus System Message Bus
> Socket.
> > Sep 08 18:55:13 debian systemd[1]: Closed ACPID Listen Socket.
> > Sep 08 18:55:13 debian systemd[1]: Closed Syslog Socket.
> > Sep 08 18:55:13 debian systemd[1]: Stopped target Paths.
> > Sep 08 18:55:13 debian systemd[1]: Stopped Dispatch Password Requests to
> Console Directory Watch.
> > Sep 08 18:55:13 debian systemd[1]: Stopped Forward Password Requests to
> Wall Directory Watch.
> > Sep 08 18:55:13 debian systemd[1]: Stopped ACPI Events Check.
> > Sep 08 18:55:13 debian systemd[1]: Stopped target System Initialization.
> > Sep 08 18:55:13 debian systemd[1]: Stopped Apply Kernel Variables.
> > Sep 08 18:55:13 debian systemd[1]: Stopped Load Kernel Modules.
> > Sep 08 18:55:13 debian systemd[1]: Stopping LSB: NFS support files
> common to client and server...
> > Sep 08 18:55:13 debian nfs-common[893]: Stopping NFS common utilities:
> idmapd statd.
> > Sep 08 18:55:13 debian systemd[1]: Stopped target Encrypted Volumes.
> > Sep 08 18:55:13 debian systemd[1]: Stopped target Swap.
> > Sep 08 18:55:13 debian systemd[1]: Unmounted /run/rpc_pipefs.
> > Sep 08 18:55:13 debian systemd[1]: Stopped LSB: NFS support files common
> to client and server.
> > Sep 08 18:55:13 debian systemd[1]: Stopped target RPC Port Mapper.
> > Sep 08 18:55:13 debian systemd[1]: Stopping LSB: RPC portmapper
> replacement...
> > Sep 08 18:55:13 debian systemd[1]: Stopped target System Time
> Synchronized.
> > Sep 08 18:55:13 debian systemd[1]: Stopping Network Time
> Synchronization...
> > Sep 08 18:55:13 debian systemd[1]: Stopped Network Time Synchronization.
> > Sep 08 18:55:13 debian systemd[1]: Stopped Create Volatile Files and
> Directories.
> > Sep 08 18:55:13 debian rpcbind[478]: ^[[1;31mrpcbind terminating on
> signal. Restart with "rpcbind -w"^[[0m
> > Sep 08 18:55:13 debian rpcbind[902]: Stopping rpcbind daemon....
> > Sep 08 18:55:13 debian systemd[1]: Stopped LSB: RPC portmapper
> replacement.
> > Sep 08 18:56:43 debian systemd[1]: ^[[1;39mmnt-nfs.mount: Unmounting
> timed out. Stopping.^[[0m
> > Sep 08 18:58:13 debian systemd[1]: ^[[1;39mmnt-nfs.mount: Unmounting
> timed out. Stopping.^[[0m
> > Sep 08 18:58:54 debian kernel: ^[[1;39mnfs: server 192.168.179.20 not
> responding, timed out^[[0m
> > Sep 08 18:59:43 debian systemd[1]: ^[[1;39mmnt-nfs.mount: Unmounting
> timed out. Stopping.^[[0m
>
> and that goes on
>
> --
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
>
>


-- 
Javier Ayres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150909/fad5ac8a/attachment-0002.html>


More information about the Pkg-systemd-maintainers mailing list