[Bug 245660] New: Suspend to disk with LVM partitions
https://bugzilla.novell.com/show_bug.cgi?id=245660 Summary: Suspend to disk with LVM partitions Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Mobile Devices AssignedTo: behlert@novell.com ReportedBy: felix.rommel@web.de QAContact: qa@suse.de Please fix the problem not being able to suspend to RAM/Disk if the root partition is in a logical volume. See: https://bugzilla.novell.com/show_bug.cgi?id=228572#c12 Currently openSUSE 10.2 is not good for using it on a laptop - if you use LVM - because you cannot suspend to disk... Because 10.3 is foremost planned for September, it would be great if you fix this problem in 10.2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Enhancement Status|NEEDINFO |NEW Info Provider|pavel@novell.com | ------- Comment #2 from pavel@novell.com 2007-02-15 03:25 MST ------- No, this is more something for seife... kernel should be capable of doing resume from LVM, but our initrd is probably not able to cope with that. If stefan says it has to wait, I'm afraid it has to wait. Felix, if initrd does not scare you, try to move lvm init before resume handling; that should get resume from LVM to work. If you can do that with nice and obvious patch, then _maybe_ we can think about fixing it for 10.2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|behlert@novell.com |seife@novell.com Status|NEW |ASSIGNED ------- Comment #3 from seife@novell.com 2007-02-15 04:22 MST ------- I will work on that, but it will have to wait a bit. Also, messing around with the initrd creation has the potential to screw up other users, so this must be tested extensively. Unless we find out it is doable with a trivial, non-intrusive patch, it will have to wait for 10.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pavel@novell.com AssignedTo|seife@novell.com |pavel@novell.com Status|ASSIGNED |NEW ------- Comment #5 from seife@novell.com 2007-02-15 11:51 MST ------- It is even less easy than i thought. Suspend with LVM does not work at all, because the machine hangs after printf("suspend: Snapshotting system\n"); attempts = 2; do { if (set_image_size(snapshot_fd, image_size)) { error = errno; break; } if (!atomic_snapshot(snapshot_fd, &in_suspend)) { here. I think if we stop all threads, the LVM thread ksnapd gets frozen (it gets created in linux/drivers/md/dm-snap.c with ksnapd = create_singlethread_workqueue("ksnapd"); ) and this then deadlocks the rest of the suspend process, but i am not sure. So as it is now, suspend on LVM does not work _at all_, so i can not do anything in userland to fix it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #6 from seife@novell.com 2007-02-15 11:57 MST ------- it fails the same way when trying the in-kernel suspend (almost the same; s2disk seems to let the CPU idle, the cursor is still blinking. In-kernel sends the CPU to 100% and the cursor stops blinking). Last thing seen is always "suspending consoles", this is with 2.6.20 on STABLE. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Summary|Suspend to disk with LVM |Suspend to disk broken on LVM partitions |partitions | ------- Comment #7 from pavel@novell.com 2007-02-16 04:50 MST ------- Ok, this is mine problem, I guess, and unlikely to be fixed in 10.2. Is there some easy to understand LVM howto somewhere? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #8 from pavel@novell.com 2007-02-16 05:01 MST ------- Hmmm... is LVM /dev/mapper/*? People report it works... and we even have howto in Doc*/power/swsusp-dmcrypt.txt... Stefan, can you try turning off CONFIG_DM_SNAPSHOT and retry? That should get rid of at least the ksnapd problem... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #9 from seife@novell.com 2007-02-16 10:35 MST ------- I just installed opensuse factory in a QEMU virtual machine, no need to risk your real data :-) I will try without DM_SNAPSHOT (hopefully just getting rid of the module is enough), but not before tuesday. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #10 from seife@novell.com 2007-02-16 12:32 MST ------- It works with EVMS, but not with our initrd. I will work on the initrd problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #11 from pavel@novell.com 2007-02-16 15:11 MST ------- Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #12 from seife@novell.com 2007-02-18 04:59 MST ------- removing dm_snapshot before suspend makes lvm suspend work, but it has the same initrd problems as EVMS. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #13 from felix.rommel@web.de 2007-03-25 17:11 MST ------- Suspend to Disk works with 10.3 Alpha1 + updates 2007-03-25 on my Thinkpad Z61m with LVM, now. Suspend to Ram does NOT work with 10.3 Alpha1 + updates on Z61m. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #14 from seife@novell.com 2007-03-26 01:21 MST ------- (In reply to comment #13)
Suspend to Disk works with 10.3 Alpha1 + updates 2007-03-25 on my Thinkpad Z61m with LVM, now.
Interesting. Can you tell us your kernel version (uname -r)? Did you need to unload dm_snapshot to make it work?
Suspend to Ram does NOT work with 10.3 Alpha1 + updates on Z61m.
Different bug, please read http://en.opensuse.org/S2ram and file an extra report for that issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #15 from felix.rommel@web.de 2007-03-28 01:52 MST ------- I was a little too optimistic - suspend to RAM works SOMETIMES. But sometimes Computer hangs before switching power off. I didn NOT unload any drivers - I suspend with Gnomes old logout dialog, cause current version of gnome-main-menu is broken. uname -a: Linux thinksusez29 2.6.21-rc4-git5-3-default #1 SMP Wed Mar 21 19:44:10 UTC 2007 i686 i686 i386 GNU/Linux I have attached the messages when system froze while suspending. I had to switch it off with power button. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #16 from felix.rommel@web.de 2007-03-28 01:55 MST ------- Created an attachment (id=126919) --> (https://bugzilla.novell.com/attachment.cgi?id=126919&action=view) output of messages while suspend to disk -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #17 from seife@novell.com 2007-03-28 02:27 MST ------- (In reply to comment #15)
I was a little too optimistic - suspend to RAM works SOMETIMES. But sometimes Computer hangs before switching power off.
Suspend to RAM is a totally different thing than suspend to disk. _PLEASE_ file a different bug.
I didn NOT unload any drivers - I suspend with Gnomes old logout dialog, cause current version of gnome-main-menu is broken.
uname -a:
Linux thinksusez29 2.6.21-rc4-git5-3-default #1 SMP Wed Mar 21 19:44:10 UTC 2007 i686 i686 i386 GNU/Linux
I have attached the messages when system froze while suspending. I had to switch it off with power button.
(In reply to comment #16)
Created an attachment (id=126919) --> (https://bugzilla.novell.com/attachment.cgi?id=126919&action=view) [edit] output of messages while suspend to disk
So now it is suspend to disk again? I'm afraid mixing this all up in this bug, which is mainly about the initrd and the suspend tools not working well wrt. suspend on LVM and about dm_snapshot possibly having problems wrt. suspend, is not a good idea. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #18 from felix.rommel@web.de 2007-03-28 07:19 MST ------- Sorry, I unsettled things. To make it clear: Comment #15 must be: Suspend to DISK (I accidently wrote "...to RAM") with root partition in LVM does work sometimes with 10.3 Alpha1 + updates 2007-03-25 . Sometimes means, that sometimes after clicking Hibernate in Gnome dialog, computer starts suspend to DISK but freezes and does not shutdown clearly. But at other times computer suspends and shutdown is OK. I will create a NEW bug report for Thinkpad Z61m not suspending to RAM - with information given at http://en.opensuse.org/S2ram. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |felix.rommel@web.de ------- Comment #19 from pavel@novell.com 2007-04-10 02:03 MST ------- Felix: try suspending from console, and elevate console loglevel to see _where_ it hangs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 ------- Comment #20 from felix.rommel@web.de 2007-04-10 14:04 MST ------- With newer kernel 2.6.21-rc5-git6-2-default #1 SMP Fri Mar 30 23:55:02 UTC 2007 i686 i686 i386 GNU/Linux it seems to work reliable now. In the last days I suspended to DISK a few times consecutively and it worked without problems. It maybe need a little bit too long until system starts counting how much data it has copied to disk but otherwise it works with this kernel version, now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660 pavel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|felix.rommel@web.de | Resolution| |FIXED ------- Comment #21 from pavel@novell.com 2007-04-22 10:41 MST ------- Ok, thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=245660#c22 Stefan Seyfried <seife@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhard.bender@web.de --- Comment #22 from Stefan Seyfried <seife@novell.com> 2007-06-21 15:05:05 MST --- *** Bug 267722 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=267722 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=245660 User bernhard.bender@web.de added comment https://bugzilla.novell.com/show_bug.cgi?id=245660#c23 --- Comment #23 from Bernhard Bender <bernhard.bender@web.de> 2007-12-03 15:31:53 MST --- I just wanted to report that s2disk work fine for me on a LVM2/MD(RAID1) based system after upgrading to OpenSUSE 10.3 kernel 2.6.22.12-0.1-default pm-utils-0.99.3.20070618-18 Thanks Bernhard -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com