natty suspend & hibernate hang with nfs home directory

Bug #792007 reported by Casandro
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Fedora
Unknown
Unknown
nfs-utils (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have a system running a fairly fresh installation of Natty. It used to do both suspend and hibernate just fine. Now I have moved the /home directory to NFS4 and neither suspend nor hibernate work. The system seems to 'hang'. The screens stay black. Sometimes you can switch to a text console and reboot the system with Ctrl+Alt+Delete, but often that also just hangs.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-8-generic 2.6.38-8.42
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 2/2
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: casandro 1894 F.... pulseaudio
CRDA: Error: [Errno 2] Datei oder Verzeichnis nicht gefunden
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xd3220000 irq 43'
   Mixer name : 'Analog Devices AD1882'
   Components : 'HDA:11d41882,80861003,00100300'
   Controls : 41
   Simple ctrls : 24
Date: Thu Jun 2 21:07:39 2011
HibernationDevice: RESUME=UUID=d326560c-e385-4579-ad6f-16318a08281e
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 eth1 no wireless extensions.
ProcEnviron:
 LANGUAGE=de_DE:en
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=b0ea53f7-8755-4a90-9e96-d0e6e7824d0f ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-8-generic N/A
 linux-backports-modules-2.6.38-8-generic N/A
 linux-firmware 1.52
RfKill:

SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/13/2009
dmi.bios.vendor: Intel Corp.
dmi.bios.version: CBQ4510H.86A.0083.2009.0513.1002
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: DQ45CB
dmi.board.vendor: Intel Corporation
dmi.board.version: AAE30148-205
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrCBQ4510H.86A.0083.2009.0513.1002:bd05/13/2009:svn:pn:pvr:rvnIntelCorporation:rnDQ45CB:rvrAAE30148-205:cvn:ct3:cvr:

Revision history for this message
Casandro (casandro-lion) wrote :
Shimi Chen (shimi-chen)
affects: ubuntu → nfs-utils (Ubuntu)
Revision history for this message
Chris (cslee-launchpad) wrote :

I can not prove this from your output but I had a similar problem and found that it was network manager doing the evil work.
What was happening was that network manager saw the system was going down to low power mode so disconnected the Ethernet, this leaves NFS with nowhere to talk to so NFS sits there waiting for the server to reply, the kernel grows a big queue and hey presto it looks like a hang.
If you get to the text mode screen using ctrl-alt-f1 or similar and get the network back up it can be recovered sometimes.

I just wish they would get rid of network manager and let the kernel do what it needs to during these changes in state.

Changed in nfs-utils (Ubuntu):
status: New → Confirmed
Revision history for this message
Oliver Joos (oliver-joos) wrote :

My /home is on the local harddisk. I just have an NFS share mounted in /mnt/ which blocks pm-suspend.

I confirm the findings of Chris: the NetworkManager disconnects too early. If suspend has been blocked I am always able to login and enter "sudo service network-manager restart". Then sleep continues successfully and also resume works as expected!

Adding "umount /mnt/my-nfs-share" to the scripts in usr/lib/pm-utils/sleep.d/ works but does not solve the blocking. I guess Networkmanager gets detached via dbus before these scripts are executed.

Revision history for this message
Jisakiel (jisakiel) wrote :

Same as #3 here, with debian testing (and nm-0.8.4 managing interfaces).

tags: added: i386 suspend
Revision history for this message
Juri Haberland (haberland) wrote :

So, this is more like bug #516592 ...

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.