Bug 3375 - after hibernation system starts booting from scratch
Summary: after hibernation system starts booting from scratch
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: release_blocker critical
Target Milestone: ---
Assignee: Colin Guthrie
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 5734
  Show dependency treegraph
 
Reported: 2011-11-17 06:34 CET by Kamil Rytarowski
Modified: 2012-05-03 09:46 CEST (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Kamil Rytarowski 2011-11-17 06:34:18 CET
Description of problem:
On my laptop Dell Studio 1555 - Mageia 1 x86_64, Gnome, encrypted / as LVM (/boot unencrypted) - when I try to hibernate. It later always start from scratch.

Steps to Reproduce:
1. hibernate
2. try to resume
Kamil Rytarowski 2011-11-29 03:16:48 CET

Hardware: i586 => x86_64

Damien Lallement 2012-01-09 14:21:34 CET

Priority: Normal => release_blocker
CC: (none) => mageia

Damien Lallement 2012-01-09 14:22:02 CET

Assignee: bugsquad => tmb

Comment 1 Kamil Rytarowski 2012-02-21 08:57:36 CET
Valid.. Currently it's even worse in Cauldron.

Version: 1 => Cauldron

Comment 2 Morgan Leijström 2012-02-24 01:31:02 CET
Yes... I too have LVM - for everything (including swap), except /boot

But no encryption anywhere, 

At boot it seem to have forgotten it saved anything, and ends at login.

CC: (none) => fri

Comment 3 Dave Hodgins 2012-02-24 03:24:59 CET
I suspect this is very similar to, or a duplicate of bug 4537
where lvm volume groups are not being activated, or at least
not activated soon enough.

CC: (none) => davidwhodgins

Comment 4 Morgan Leijström 2012-02-24 15:03:25 CET
Strange thing: grub had wrong swap name in kernel parameter 
it said resume=/dev/vg-mga/swap
but that partition name really is swap1, (not swap)
(Probably an effect of complicated problems partitioning with the installer (during which i had to rename that partition) ; bug 4442, bug 4449  )

Fixing it did not help however :/

But you may want to check if your resume= parameter is correct.

Looking at disk activity i believe it saves session.
But looking at the boot i see no attempt to restore.
What and where should i be looking for in the logs about save and restore events?
Comment 5 Anne Nicolas 2012-04-02 15:52:33 CEST
Still valid with latest updates ?

CC: (none) => ennael1

Comment 6 Morgan Leijström 2012-04-02 22:42:40 CEST
Full update no change.
Setup: IBM Thinkpad T40, cauldron i586, KDE, KDM
If someone want logs etc, tell me how to make it.
Comment 7 Kamil Rytarowski 2012-04-03 15:10:49 CEST
(In reply to comment #5)
> Still valid with latest updates ?

Currently standard shutting down is broken too. https://bugs.mageia.org/show_bug.cgi?id=5184 so after fixing #5184 I will test it.
Comment 8 Colin Guthrie 2012-04-23 12:50:57 CEST
This might actually be fixed with the latest installs and dracut (I did have this issue in mind as being a problem, but never knew this bug existed until now). I also think I've added appropriate migration in dracut post-install scripts too.

Can you check the contents of the file:

/etc/dracut.conf.d/51-mageia-resume.conf

?

CC: (none) => mageia

Comment 9 Morgan Leijström 2012-04-24 00:06:52 CEST
Did full update now, reboot and hibernation trials:

machine 1, Thinkpad T42: the result seem perfect -with the quirk that i spotted a line during boot saying something like resume file does not exist or could not be read.  This system have /swap and / on unencrypted LVM, and user on encrypted LVM.

machine 2, Desktop: resumes correctly except Ethernet NIC failed. Disk: "everything" in encrypted LVM.

( The Thinkpad T40 in comment 4 & 6 is unavailable right now )
Comment 10 Pascal Terjan 2012-04-25 23:29:40 CEST
(In reply to comment #7)
> (In reply to comment #5)
> > Still valid with latest updates ?
> 
> Currently standard shutting down is broken too.
> https://bugs.mageia.org/show_bug.cgi?id=5184 so after fixing #5184 I will test
> it.

Can you try?
It seems to be fixed

Thanks

CC: (none) => pterjan

Comment 11 Kamil Rytarowski 2012-04-25 23:49:43 CEST
(In reply to comment #10)
> Can you try?
> It seems to be fixed
> 
> Thanks

Tomorrow, I will reinstall from boot.iso.
Comment 12 Kamil Rytarowski 2012-04-27 09:18:14 CEST
(In reply to comment #10)
> Can you try?
> It seems to be fixed
> 
> Thanks

Fresh installation.


as minimal as possible system, tty:
pm-hibernate: leeds to:
>>
Looking for splash system... could not open renderer /dev/fb
could not initialize plymouth : error 0 
none
(after some time)
s2disk: Snapshotting system
(after waiting a while I decided to do a hard reset...)
<<<

Next try, next installation, with minimal system+slim+terminator+windowmaker

pm-suspend seems fine, but long!
pm-hibernate hibernated, but it cannot stand up, after waking it's asking for a passphrase against encrypted partition (LVM with / over btrfs and swap) and then I can see 'snowing' like from old TV without a signal.. system isn't usable, logging into TTY not possible.

hard reset
Comment 13 Kamil Rytarowski 2012-04-27 09:20:50 CEST
Additional info:
sda1 /boot ext4
sda2 LVM encrypted
- root /
- swap swap
Comment 14 Colin Guthrie 2012-04-27 10:32:59 CEST
OK, but the key point here is that it does now actually find the partition to do the resume? That's the bug I fixed! If resume/hibernation itself is busted, I know nothing about that :p
Comment 15 Kamil Rytarowski 2012-04-27 21:30:03 CEST
I think it's finding the partitions correctly, but the rest seems boosted. I suspect fglrx issues.
Colin Guthrie 2012-05-02 22:55:23 CEST

Assignee: tmb => mageia

Comment 16 Colin Guthrie 2012-05-03 00:21:46 CEST
OK, so I just tried this on my test VMs and all is well, both on a regular swap and on a swap kept on encrypted LVM.

I only tested running pm-hibernate from a console login (no X) but the basic underlying bits of hibernation are apparently working (aside from error 0 from plymouth...)

Perhaps this is an ATI issue?
Comment 17 Kamil Rytarowski 2012-05-03 09:44:38 CEST
(In reply to comment #16)
> Perhaps this is an ATI issue?

Yes.

And system is really resuming (but ATI is breaking the final) so closing this bug.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Kamil Rytarowski 2012-05-03 09:46:53 CEST

Blocks: (none) => 5734


Note You need to log in before you can comment on or make changes to this bug.