swsusp fails to resume

Bug #78223 reported by Istvan Botka
6
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned
linux-source-2.6.17 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I have an amd64 machine with Edgy. There are filve disks in. One ATA (hda) and four SATA (sda, sdb, sdc, sdd). All the four SATA disks are composed into an RAID5 array.

The suspend part seems to be good. But the resume have problem. There is the log from resume. I have an idea but no time for test it. So when I makes my computer to suspend to disk the RAID array does not syncing before power off. When the computer starting again the md detects the raid array dirty and going to reconstructing it. AFTER the raid started the initrd detects the suspend signature on swap device and wants to stop tasks. It can't stop the md_resync and aborts resume and going over normal startup.

Jan 6 17:22:03 homepc kernel: [ 36.027295] raid5: automatically using best checksumming function: generic_sse
Jan 6 17:22:03 homepc kernel: [ 36.058822] generic_sse: 6156.000 MB/sec
Jan 6 17:22:03 homepc kernel: [ 36.070594] raid5: using function: generic_sse (6156.000 MB/sec)
Jan 6 17:22:03 homepc kernel: [ 36.085382] md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
Jan 6 17:22:03 homepc kernel: [ 36.097360] md: bitmap version 4.39
Jan 6 17:22:03 homepc kernel: [ 36.110941] md: raid5 personality registered for level 5
Jan 6 17:22:03 homepc kernel: [ 36.123108] md: raid4 personality registered for level 4
Jan 6 17:22:03 homepc kernel: [ 36.425154] md: md0 stopped.
Jan 6 17:22:03 homepc kernel: [ 36.439052] md: bind<sdb>
Jan 6 17:22:03 homepc kernel: [ 36.451273] md: bind<sdc>
Jan 6 17:22:03 homepc kernel: [ 36.463425] md: bind<sdd>
Jan 6 17:22:03 homepc kernel: [ 36.475483] md: bind<sda>
Jan 6 17:22:03 homepc kernel: [ 36.487404] md: md0: raid array is not clean -- starting background reconstruction
Jan 6 17:22:03 homepc kernel: [ 36.504617] raid5: device sda operational as raid disk 0
Jan 6 17:22:03 homepc kernel: [ 36.517003] raid5: device sdd operational as raid disk 3
Jan 6 17:22:03 homepc kernel: [ 36.529279] raid5: device sdc operational as raid disk 2
Jan 6 17:22:03 homepc kernel: [ 36.541430] raid5: device sdb operational as raid disk 1
Jan 6 17:22:03 homepc kernel: [ 36.553742] raid5: allocated 4262kB for md0
Jan 6 17:22:03 homepc kernel: [ 36.565645] raid5: raid level 5 set md0 active with 4 out of 4 devices, algorithm 0
Jan 6 17:22:03 homepc kernel: [ 36.577765] RAID5 conf printout:
Jan 6 17:22:03 homepc kernel: [ 36.589771] --- rd:4 wd:4 fd:0
Jan 6 17:22:03 homepc kernel: [ 36.601615] disk 0, o:1, dev:sda
Jan 6 17:22:03 homepc kernel: [ 36.613514] disk 1, o:1, dev:sdb
Jan 6 17:22:03 homepc kernel: [ 36.625183] disk 2, o:1, dev:sdc
Jan 6 17:22:03 homepc kernel: [ 36.636698] disk 3, o:1, dev:sdd
Jan 6 17:22:03 homepc kernel: [ 36.648231] ieee1394: Host added: ID:BUS[0-00:1023] GUID[00148556003b9181]
Jan 6 17:22:03 homepc kernel: [ 36.654699] md: syncing RAID array md0
Jan 6 17:22:03 homepc kernel: [ 36.666075] md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc.
Jan 6 17:22:03 homepc kernel: [ 36.677535] md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for reconstruction.
Jan 6 17:22:03 homepc kernel: [ 36.689207] md: using 128k window, over a total of 244198464 blocks.
Jan 6 17:22:03 homepc kernel: [ 48.358304] Freezing cpus ...
Jan 6 17:22:03 homepc kernel: [ 48.358308] Stopping tasks: ==========
Jan 6 17:22:03 homepc kernel: [ 68.344801] stopping tasks timed out after 20 seconds (1 tasks remaining):
Jan 6 17:22:03 homepc kernel: [ 68.344805] md0_resync
Jan 6 17:22:03 homepc kernel: [ 68.344807] Restarting tasks...<6> Strange, md0_resync not stopped
Jan 6 17:22:03 homepc kernel: [ 68.347740] done
Jan 6 17:22:03 homepc kernel: [ 68.347741] Thawing cpus ...
Jan 6 17:22:03 homepc kernel: [ 68.492491] Attempting manual resume
Jan 6 17:22:03 homepc kernel: [ 68.587480] EXT3-fs: INFO: recovery required on readonly filesystem.
Jan 6 17:22:03 homepc kernel: [ 68.599756] EXT3-fs: write access will be enabled during recovery.
Jan 6 17:22:03 homepc kernel: [ 74.490328] kjournald starting. Commit interval 5 seconds
Jan 6 17:22:03 homepc kernel: [ 74.502476] EXT3-fs: recovery complete.
Jan 6 17:22:03 homepc kernel: [ 74.517237] EXT3-fs: mounted filesystem with ordered data mode.

Revision history for this message
Laitr Keiows (launchpad-kopytko) wrote :

Has same problem with Gentoo, kernel-2.6.18 and raid1 devices.

Revision history for this message
Laitr Keiows (launchpad-kopytko) wrote :

And it works all right with the mirror drive switched off.
I use x86 arch => this problem is arch-independent.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Thanks for taking the time to report this bug. Unfortunately we can't fix it, because your description didn't include enough information.

Please include the information requested from https://wiki.ubuntu.com/DebuggingACPI as separate attachments.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :

Change Status of Unconfirmed to Needs Info.

Changed in linux-source-2.6.17:
status: Unconfirmed → Needs Info
Revision history for this message
Istvan Botka (boti) wrote :
Revision history for this message
Istvan Botka (boti) wrote :
Revision history for this message
Istvan Botka (boti) wrote :
Revision history for this message
Istvan Botka (boti) wrote :
Changed in linux-source-2.6.17:
assignee: nobody → ubuntu-kernel-acpi
importance: Undecided → Medium
status: Needs Info → Confirmed
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Edgy Eft 6.10 has reached it's end of life. As a result, we are closing the linux-source-2.6.17 Edgy Eft kernel task.

Changed in linux-source-2.6.17:
status: Confirmed → Invalid
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Hardy Heron 8.04 was recently released. It would be helpful if you could test the new release and verify if this is still an issue - http://www.ubuntu.com/getubuntu/download . You should be able to test your bug using the LiveCD. Please let us know your results. Thanks.

Changed in linux:
status: New → Incomplete
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

*This is an automated response*

This bug report is being closed because we received no response to the previous request for information. Please reopen this if it is still an issue in the actively developed pre-release of Jaunty Jackalope 9.04 - http://cdimage.ubuntu.com/releases/jaunty . To reopen the bug report simply change the Status of the "linux" task back to "New".

Changed in linux:
status: Incomplete → Won't Fix
Curtis Hovey (sinzui)
Changed in linux-source-2.6.17 (Ubuntu):
assignee: Registry Administrators (registry) → nobody
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.