Bug 155381 - swap on LVM: resume doesn't work
Summary: swap on LVM: resume doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: i686 Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Pavel Machek
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-06 11:42 UTC by Ulrich Windl
Modified: 2006-03-15 07:07 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2006-03-06 11:42:13 UTC
When swap is on a logical volume (LVM), resume doesn't work, because kernel doesn't fiind the swap volume during boot (LVM swap is activated later via fstab).
Comment 2 Pavel Machek 2006-03-06 15:56:33 UTC
We have had some fun with device mapper and swap on it before for suspend. Now, we have ability to trigger resume anywhere in initrd, as long as filesystems are not mounted.

Unfortunately if you activate your swap using fstab... that seems like same time as mounting and too late...
Comment 3 Pavel Machek 2006-03-14 15:07:53 UTC
You could be able to rearrange init scripts somehow, but for now I'd say it is unsupported.
Comment 4 Ulrich Windl 2006-03-15 07:07:15 UTC
I noticed that the error message is not captured in boot.msg, so here are some final words: The boot arguments are like this:
<5>Kernel command line: root=/dev/sysVG/rootLV vga=0x317 selinux=0 resume=/dev/sysVG/swapLV splash=silent

During boot when the device mapper is loaded the swap device doesn't seem "to appear" (for resume to work). Later it's added via /etc/fstab:
<6>Adding 2097144k swap on /dev/sysVG/swapLV.  Priority:-1 extents:1