pm-hibernate hangs if nfs filesystems mounted

Bug #681829 reported by Patrick Gosling
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: pm-utils

I have a variety of machines which mount user home directories over nfs. When people attempt to hibernate them, the hibernation process hangs horribly.

Having looked at this, the main problem was that pm-hibernate unhooks the network first (in /usr/lib/pm-utils/sleep.d/55NetworkManager) but expects to then be able to call "sync". The latter is clearly never going to work if there are nfs mounted filesystems and no network.

Problem is, you can't do what many people suggest in other related bug-reports, of unmounting the nfs filesystems if they're in active use, with processes having open file descriptors on them. Or rather you _could_ do a forced unmount, but it wouldn't be desirable.

So I wondered why it was necessary to tell NetworkManager to shut down the network. I disabled the 55NetworkManager script, and suddenly hibernation worked, and restarting afterwards worked fine, with no ill effects.

I've only checked this a couple of times so far; and only over periods of up to 30 minutes.

Also, my machines are given static dhcp leases (ie not from a pool), so never change IP address. I'm not entirely convinced that dynamic dhcp allocation should be problematic though; it should surely be no different waking up from hibernation and finding your lease has expired, to just finding your lease has expired ...

I'm wondering what the motivation for the 55NetworkManager sleep.d script is, as I assume it wasn't just added for fun 8-)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pm-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Luis Andrés Gonzalez (luisandresgonzalez) wrote :

I have a similar problem, as posted in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/898615.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.