Bug 155381

Summary: swap on LVM: resume doesn't work
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Ulrich Windl <Ulrich.Windl>
Component: BasesystemAssignee: Pavel Machek <pavel>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: hare, lmb
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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