After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677053 - Suspend (sleep S3) makes NetworkManager to disconnect before/without unmounting NFS shares
Suspend (sleep S3) makes NetworkManager to disconnect before/without unmounti...
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
0.9.x
Other Linux
: Normal major
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2012-05-29 17:50 UTC by Oliver Joos
Modified: 2012-07-26 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Oliver Joos 2012-05-29 17:50:31 UTC
When an NFS share is mounted and the system is suspended then it seems to resume immediately but with NetworkManager already stopped, with network links disconnected. As consequence any further access to NFS shares will block the accessing processes and suspend gets interrupted (due to timeouts I guess). Restarting NetworkManager ("sudo service network-manager restart") unblocks those processes and (surprisingly) continues the previously interrupted suspend!

I tried various NFS options like "soft" without success. Placing a script into /usr/lib/pm-utils/sleep.d/ to unmount NFS shares does not help either. I guess Networkmanager is suspended via dbus, before those scripts are executed.

IMHO NetworkManager should care about NFS shares explicitly itself, or it should offer a way to add scripts that do this which are executed *BEFORE* network links are disconnected. If there are such a way, then please let me know!

This bug is discussed downstream since 2010-02-03 on http://launchpad.net/bugs/516592
Comment 1 Oliver Joos 2012-05-29 18:00:13 UTC
BTW: I also tried it once with a script in /etc/NetworkManager/dispatcher.d/ - without success.

I see this bug with network-manager 0.8.4 in Ubuntu 11.04, and with 0.9.4 in Linux Mint 13.
Comment 2 Pavel Simerda 2012-07-26 13:36:26 UTC
dispatcher.d is the correct way. Is this still valid with 9.x?