You are not logged in.

#1 2012-09-10 21:07:51

dankles
Member
Registered: 2010-01-19
Posts: 8

cifs mount fails to unmount before networking with systemd

Hey Team,

I have a cifs mount that isn't unmounting on shutdown before networking is turned off. It unmounts the same time other FS's do. This causes a 3~ minute delay in shutdown which is fairly annoying. Any ideas?

Thanks

Offline

#2 2012-09-10 21:50:32

mangus
Member
From: Bologna, Italy
Registered: 2007-04-07
Posts: 289

Re: cifs mount fails to unmount before networking with systemd

I have similar problems randomly with my NFS share... Do you use a custom network.service?

Offline

#3 2012-10-02 13:29:09

knysng
Member
Registered: 2008-05-10
Posts: 23

Re: cifs mount fails to unmount before networking with systemd

I am having the same problem. It is indeed quite annoying.

Anyone have any ideas how to fix this?

Offline

#4 2012-10-02 15:36:57

damdim
Member
Registered: 2010-03-13
Posts: 48

Re: cifs mount fails to unmount before networking with systemd

I have put

umount -a -t cifs

to /etc/rc.local.shutdown

Offline

#5 2012-10-02 16:02:20

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: cifs mount fails to unmount before networking with systemd

Offline

#6 2012-10-04 08:01:12

knysng
Member
Registered: 2008-05-10
Posts: 23

Re: cifs mount fails to unmount before networking with systemd

Thank you for the suggestions.

satanselbow wrote:

Or automount your share as per https://bbs.archlinux.org/viewtopic.php … 2#p1168782

This seems to solve a boot problem, where it hangs when mounting network drives. However, it does not address the shutdown hang. The last reply in that thread refers to this thread: https://bbs.archlinux.org/viewtopic.php … 9#p1170239

damdim wrote:

I have put

umount -a -t cifs

to /etc/rc.local.shutdown

Thanks, this worked, but it feels like a hack. Also, I had to add a custom service to run "rc.local.shutdown" on an systemd-only system.

Last edited by knysng (2012-10-04 08:07:00)

Offline

#7 2012-10-04 08:29:30

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: cifs mount fails to unmount before networking with systemd

Evidently there is a bug with systemd stopping networkmanager before remote filesystems are unmounted.
https://bbs.archlinux.org/viewtopic.php?id=150029
Are you using networkmanager? Have you tried using something else?


You're just jealous because the voices only talk to me.

Offline

#8 2012-11-05 13:08:30

miskoala
Member
Registered: 2012-03-27
Posts: 10

Re: cifs mount fails to unmount before networking with systemd

No progress on this? I just switched to systemd few days ago and have the same problem with shutdown. I use Networkmanager (with nm-applet on X if it matters), wifi connection. I only added 'noauto,x-systemd.automount,x-systemd.device-timeout=10' to fstab on remote shares and few daemons to run:

ls -l /etc/systemd/system/multi-user.target.wants

lrwxrwxrwx 1 root root 38 10-31 16:46 cronie.service -> /usr/lib/systemd/system/cronie.service
lrwxrwxrwx 1 root root 41 10-31 16:44 ip6tables.service -> /usr/lib/systemd/system/ip6tables.service
lrwxrwxrwx 1 root root 40 10-31 16:44 iptables.service -> /usr/lib/systemd/system/iptables.service
lrwxrwxrwx 1 root root 42 10-31 16:47 lm_sensors.service -> /usr/lib/systemd/system/lm_sensors.service
lrwxrwxrwx 1 root root 43 10-31 16:47 mpdscribble.service -> /usr/lib/systemd/system/mpdscribble.service
lrwxrwxrwx 1 root root 35 10-31 16:47 mpd.service -> /usr/lib/systemd/system/mpd.service
lrwxrwxrwx 1 root root 46 10-31 16:45 NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
lrwxrwxrwx 1 root root 36 10-31 16:45 ntpd.service -> /usr/lib/systemd/system/ntpd.service
lrwxrwxrwx 1 root root 40 10-31 19:14 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target

Here is log from shutdown initiated from openbox:

Nov 05 13:09:21 dell1210 systemd-logind[293]: System is powering down.
Nov 05 13:09:22 dell1210 systemd[1]: Deactivated swap /dev/vgroup/swap.
Nov 05 13:09:22 dell1210 systemd[1]: Deactivated swap /dev/mapper/vgroup-swap.
Nov 05 13:09:22 dell1210 systemd[1]: Deactivated swap /dev/disk/by-id/dm-name-vgroup-swap.
Nov 05 13:09:22 dell1210 systemd[1]: Deactivated swap /dev/disk/by-id/dm-uuid-LVM-tBpnDiEGFxzzdFTBAjVrsbQ3xDttIKrXcYJdYeQJI59cF4XMPfTtC8RjnsUbaDpB.
Nov 05 13:09:22 dell1210 systemd[1]: Unmounting /mnt/data...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Disk Manager...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping WPA supplicant...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Authorization Manager...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Graphical Interface.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped target Graphical Interface.
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Multi-User.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped target Multi-User.
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Periodic Command Scheduler...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping last.fm updater for MPD...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Initialize hardware monitoring sensors...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Arch Daemons.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped target Arch Daemons.
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Login Service...
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Login Prompts.
Nov 05 13:09:22 dell1210 systemd[1]: Starting Store Sound Card State...
Nov 05 13:09:22 dell1210 kernel: cfg80211: Calling CRDA to update world regulatory domain
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.hostname: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.own: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.settings.modify.system: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: MMessage did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.open: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.wifi.share.protected: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.network-control: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wimax: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wwan: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.enable-disable-wifi: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> error requesting auth for org.freedesktop.NetworkManager.sleep-wake: (4) GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Nov 05 13:09:22 dell1210 NetworkManager[282]: <warn> disconnected by the system bus.
Nov 05 13:09:22 dell1210 login[301]: pam_unix(login:session): session closed for user koala
Nov 05 13:09:22 dell1210 NetworkManager[282]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Periodic Command Scheduler.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped D-Bus System Message Bus.
Nov 05 13:09:22 dell1210 systemd[1]: systemd-logind.service: main process exited, code=exited, status=1/FAILURE
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Login Service.
Nov 05 13:09:22 dell1210 systemd[1]: Unit systemd-logind.service entered failed state
Nov 05 13:09:22 dell1210 systemd[1]: Stopped last.fm updater for MPD.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Authorization Manager.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Network Time Service.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Disk Manager.
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Music Player Daemon...
Nov 05 13:09:22 dell1210 login[301]: pam_systemd(login:session): Failed to connect to system bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Getty on tty1.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Initialize hardware monitoring sensors.
Nov 05 13:09:22 dell1210 systemd[1]: Stopping /etc/rc.local Compatibility...
Nov 05 13:09:22 dell1210 systemd[1]: Stopped /etc/rc.local Compatibility.
Nov 05 13:09:22 dell1210 systemd[1]: Stopping Permit User Sessions...
Nov 05 13:09:22 dell1210 systemd[1]: Started Store Sound Card State.
Nov 05 13:09:22 dell1210 iptables-flush[1369]: /usr/sbin/ip6tables
Nov 05 13:09:22 dell1210 iptables-flush[1362]: /usr/sbin/iptables
Nov 05 13:09:22 dell1210 wpa_supplicant[346]: eth0: Trying to associate with 00:18:39:39:c3:d4 (SSID='23' freq=2412 MHz)
Nov 05 13:09:22 dell1210 wpa_supplicant[346]: eth0: Associated with 00:18:39:39:c3:d4
Nov 05 13:09:22 dell1210 wpa_supplicant[346]: eth0: WPA: Key negotiation completed with 00:18:39:39:c3:d4 [PTK=CCMP GTK=CCMP]
Nov 05 13:09:22 dell1210 wpa_supplicant[346]: eth0: CTRL-EVENT-CONNECTED - Connection to 00:18:39:39:c3:d4 completed (auth) [id=0 id_str=]
Nov 05 13:09:22 dell1210 wpa_supplicant[346]: eth0: WPA: Group rekeying completed with 00:18:39:39:c3:d4 [GTK=CCMP]
Nov 05 13:09:22 dell1210 wpa_supplicant[346]: eth0: WPA: Group rekeying completed with 00:18:39:39:c3:d4 [GTK=CCMP]
Nov 05 13:09:22 dell1210 wpa_supplicant[346]: eth0: CTRL-EVENT-TERMINATING - signal 15 received
Nov 05 13:09:22 dell1210 systemd[1]: Stopped WPA supplicant.
Nov 05 13:09:22 dell1210 iptables-flush[1369]: cat: /var/lib/ip6tables/empty-filter.rules: Nie ma takiego pliku ani katalogu
Nov 05 13:09:22 dell1210 systemd[1]: Stopped IPv6 Packet Filtering Framework.
Nov 05 13:09:22 dell1210 systemd[1]: Stopped Packet Filtering Framework.
Nov 05 13:09:23 dell1210 systemd[1]: Stopped Music Player Daemon.
Nov 05 13:09:23 dell1210 systemd[1]: Stopping Sound Card.
Nov 05 13:09:23 dell1210 systemd[1]: Stopped target Sound Card.
Nov 05 13:09:23 dell1210 systemd[1]: Stopped Permit User Sessions.
Nov 05 13:09:23 dell1210 systemd[1]: Stopping Remote File Systems.
Nov 05 13:09:23 dell1210 systemd[1]: Stopped target Remote File Systems.
Nov 05 13:09:25 dell1210 NetworkManager[282]: <error> [1352117365.1712] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:28 dell1210 NetworkManager[282]: <info> (eth0): roamed from BSSID 00:18:39:39:C3:D4 (23) to (none) ((none))
Nov 05 13:09:28 dell1210 NetworkManager[282]: <error> [1352117368.2403] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:31 dell1210 NetworkManager[282]: <error> [1352117371.839] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:34 dell1210 NetworkManager[282]: <error> [1352117374.369] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:37 dell1210 NetworkManager[282]: <error> [1352117377.1450] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:40 dell1210 NetworkManager[282]: <error> [1352117380.2613] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:43 dell1210 NetworkManager[282]: <error> [1352117383.899] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Faiiled to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:46 dell1210 NetworkManager[282]: <error> [1352117386.296] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Faiiled to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:49 dell1210 NetworkManager[282]: <error> [1352117389.2313] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:52 dell1210 NetworkManager[282]: <error> [1352117392.2488] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:55 dell1210 NetworkManager[282]: <error> [1352117395.688] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:09:58 dell1210 NetworkManager[282]: dbus_g_proxy_begin_call: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed
Nov 05 13:09:58 dell1210 NetworkManager[282]: nm_supplicant_info_set_call: assertion `call != NULL' failed
Nov 05 13:09:58 dell1210 NetworkManager[282]: <error> [1352117398.982] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:01 dell1210 NetworkManager[282]: <error> [1352117401.1782] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:04 dell1210 NetworkManager[282]: <error> [1352117404.1959] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:07 dell1210 NetworkManager[282]: <error> [1352117407.1019] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:10 dell1210 NetworkManager[282]: <error> [1352117410.326] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:13 dell1210 NetworkManager[282]: <error> [1352117413.2189] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:16 dell1210 NetworkManager[282]: <error> [1352117416.2359] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:19 dell1210 NetworkManager[282]: <error> [1352117419.813] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:22 dell1210 NetworkManager[282]: <error> [1352117422.334] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:25 dell1210 NetworkManager[282]: <error> [1352117425.2298] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:28 dell1210 NetworkManager[282]: <error> [1352117428.2097] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:31 dell1210 NetworkManager[282]: <error> [1352117431.1241] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:33 dell1210 NetworkManager[282]: <error> [1352117433.999612] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:36 dell1210 NetworkManager[282]: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed
Nov 05 13:10:36 dell1210 NetworkManager[282]: dbus_g_proxy_begin_call_with_timeout: assertion `DBUS_IS_G_PROXY (proxy)' failed
Nov 05 13:10:36 dell1210 NetworkManager[282]: <error> [1352117436.999458] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:40 dell1210 NetworkManager[282]: <error> [1352117440.2638] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:43 dell1210 NetworkManager[282]: <error> [1352117443.895] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:46 dell1210 NetworkManager[282]: <error> [1352117446.278] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:49 dell1210 NetworkManager[282]: <error> [1352117449.2183] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:52 dell1210 NetworkManager[282]: <error> [1352117452.2363] [nm-dbus-manager.c:278] nm_dbus_manager_init_bus(): Could not get the system bus.  Make sure the message bus daemon is running!  Message: Failed to connect to socket /run/dbus/system_bus_socket: Połączenie odrzucone
Nov 05 13:10:52 dell1210 systemd[1]: mnt-data.mount unmounting timed out. Stopping.
Nov 05 13:10:52 dell1210 systemd[1]: Unmounted /mnt/data.
Nov 05 13:10:52 dell1210 systemd[1]: Unit mnt-data.mount entered failed state
Nov 05 13:10:52 dell1210 systemd[1]: Stopping Remote File Systems (Pre).
Nov 05 13:10:52 dell1210 systemd[1]: Stopped target Remote File Systems (Pre).
Nov 05 13:10:52 dell1210 systemd[1]: Stopping Network.
Nov 05 13:10:52 dell1210 systemd[1]: Stopped target Network.
Nov 05 13:10:52 dell1210 systemd[1]: Stopping Network Manager...
Nov 05 13:10:52 dell1210 systemd[1]: Stopping mnt-data.automount.
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> caught signal 15, shutting down normally.
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth1): now unmanaged
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth1): device state change: unavailable -> unmanaged (reason 'removed') [20 10 36]
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth1): cleaning up...
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth1): taking down device.
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth0): now unmanaged
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth0): device state change: activated -> unmanaged (reason 'removed') [100 10 36]
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth0): deactivating device (reason 'removed') [36]
Nov 05 13:10:52 dell1210 NetworkManager[282]: dbus_g_proxy_begin_call: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed
Nov 05 13:10:52 dell1210 NetworkManager[282]: dbus_g_proxy_begin_call: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> (eth0): cleaning up...
Nov 05 13:10:52 dell1210 NetworkManager[282]: dbus_g_proxy_begin_call: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed
Nov 05 13:10:52 dell1210 NetworkManager[282]: dbus_g_proxy_begin_call: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed
Nov 05 13:10:52 dell1210 NetworkManager[282]: dbus_g_proxy_call_no_reply: assertion `!DBUS_G_PROXY_DESTROYED (proxy)' failed
Nov 05 13:10:52 dell1210 NetworkManager[282]: dbus_g_proxy_new_for_name: assertion `connection != NULL' failed
Nov 05 13:10:52 dell1210 NetworkManager[282]: <error> [1352117452.373251] [NetworkManagerUtils.c:513] nm_utils_call_dispatcher(): could not get dispatcher proxy!
Nov 05 13:10:52 dell1210 NetworkManager[282]: <info> exiting (success)
Nov 05 13:11:04 dell1210 kernel: CIFS VFS: Server music has not responded in 120 seconds. Reconnecting...
Nov 05 13:11:04 dell1210 systemd[1]: Unset automount mnt-data.automount.
Nov 05 13:11:04 dell1210 systemd[1]: Stopped Network Manager.
Nov 05 13:11:04 dell1210 systemd[1]: Stopping Basic System.
Nov 05 13:11:04 dell1210 systemd[1]: Stopped target Basic System.
Nov 05 13:11:04 dell1210 systemd[1]: Starting /etc/rc.local.shutdown Compatibility...
Nov 05 13:11:04 dell1210 systemd[1]: Stopping Dispatch Password Requests to Console Directory Watch.
Nov 05 13:11:04 dell1210 systemd[1]: Stopped Dispatch Password Requests to Console Directory Watch.
Nov 05 13:11:04 dell1210 systemd[1]: Stopping Forward Password Requests to Wall Directory Watch.
Nov 05 13:11:04 dell1210 systemd[1]: Stopped Forward Password Requests to Wall Directory Watch.
Nov 05 13:11:04 dell1210 systemd[1]: Stopping Daily Cleanup of Temporary Directories.
Nov 05 13:11:04 dell1210 systemd[1]: Stopped Daily Cleanup of Temporary Directories.
Nov 05 13:11:04 dell1210 systemd[1]: Stopping Sockets.
Nov 05 13:11:04 dell1210 systemd[1]: Stopped target Sockets.
Nov 05 13:11:04 dell1210 systemd[1]: Unmounting /tmp...
Nov 05 13:11:04 dell1210 systemd[1]: Unmounted /var/lib/mpd/music/music.
Nov 05 13:11:04 dell1210 systemd[1]: Unmounting /home...
Nov 05 13:11:04 dell1210 systemd[1]: Unmounted /tmp.
Nov 05 13:11:04 dell1210 systemd[1]: Unmounted /boot.
Nov 05 13:11:04 dell1210 systemd[1]: Started /etc/rc.local.shutdown Compatibility.
Nov 05 13:11:04 dell1210 systemd[1]: Unmounted /home.
Nov 05 13:11:04 dell1210 systemd[1]: Starting Unmount All Filesystems.
Nov 05 13:11:04 dell1210 systemd[1]: Reached target Unmount All Filesystems.
Nov 05 13:11:04 dell1210 systemd[1]: Stopping Local File Systems (Pre).
Nov 05 13:11:04 dell1210 systemd[1]: Stopped target Local File Systems (Pre).
Nov 05 13:11:04 dell1210 systemd[1]: Stopping Remount Root and Kernel File Systems...
Nov 05 13:11:04 dell1210 systemd[1]: Stopped Remount Root and Kernel File Systems.
Nov 05 13:11:04 dell1210 systemd[1]: Starting Shutdown.
Nov 05 13:11:04 dell1210 systemd[1]: Reached target Shutdown.
Nov 05 13:11:04 dell1210 systemd[1]: Starting Update UTMP about System Shutdown...
Nov 05 13:11:04 dell1210 systemd[1]: Starting Save Random Seed...
Nov 05 13:11:04 dell1210 systemd[1]: Started Update UTMP about System Shutdown.
Nov 05 13:11:04 dell1210 systemd[1]: Started Save Random Seed.
Nov 05 13:11:04 dell1210 systemd[1]: Starting Final Step.
Nov 05 13:11:04 dell1210 systemd[1]: Reached target Final Step.
Nov 05 13:11:04 dell1210 systemd[1]: Starting Power-Off...
Nov 05 13:11:04 dell1210 systemd[1]: Shutting down.
Nov 05 13:11:04 dell1210 systemd-journal[160]: Journal stopped
-- Reboot --

When I manually unmount remote shares before shutdown everything goes quickly, poweroff in 5 sec

Offline

#9 2012-11-14 09:43:48

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 83

Re: cifs mount fails to unmount before networking with systemd

knysng wrote:

Thanks, this worked, but it feels like a hack. Also, I had to add a custom service to run "rc.local.shutdown" on an systemd-only system.

I guess I have a similar problem (using netcfg), but manual unmounting before shutdown works fine.  Would you mind pasting your custom service file please?

Offline

#10 2012-11-14 16:18:58

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: cifs mount fails to unmount before networking with systemd

I am using just the dhcpcd service (systemctl enable dhcpcd@eth0.service) on a wired connection and my remote shares are automatically mounted and unmounted with systemd without issues.

Offline

Board footer

Powered by FluxBB