* Hibernate to LVM
@ 2005-01-13 21:41 Donald W Watson
[not found] ` <OF97651F7F.22151B8B-ON87256F88.0076CB20-88256F88.00772C98-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Donald W Watson @ 2005-01-13 21:41 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: dwatson-r/Jw6+rmf7HQT0dZR+AlfA
[-- Attachment #1: Type: text/plain, Size: 901 bytes --]
I am using the 2.6.10 kernel (linux-2.6.9.tar.bz2 with patch 2.6.10.bz2) on
an older IBM ThinkPad (T20 booted with acpi=force).
I have seen no discussion of the following in the archives. Hibernate (S4)
does not work if the swap partition is on an LVM Logical Volume. The
reason is that try_name (init/do_mounts.c) is unable to find the partition
in /sys/block.
Further, if a second swap partition is established on a regular partition
and referenced in the "resume" state in menu.lst, hibernate appears to
succeed, but on resume check_sig (kernel/power.swsusp.c) complains because
the swsusp_header signature is "SWAPSPACE2" rather than the hard-coded
"S1SUSPEND" which it expects.
Are these deliberate design decisions?
Sincerely, Don Watson
Linux Technology and Solutions; Beaverton, OR
503-578-4861/TL: 775-4861; dwatson-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
[-- Attachment #2: Type: text/html, Size: 984 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <OF97651F7F.22151B8B-ON87256F88.0076CB20-88256F88.00772C98-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>]
* Re: Hibernate to LVM [not found] ` <OF97651F7F.22151B8B-ON87256F88.0076CB20-88256F88.00772C98-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> @ 2005-01-15 10:45 ` Bernard Blackham [not found] ` <20050115104555.GF4429-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org> 2005-01-20 13:36 ` Pavel Machek 1 sibling, 1 reply; 4+ messages in thread From: Bernard Blackham @ 2005-01-15 10:45 UTC (permalink / raw) To: Donald W Watson; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f On Thu, Jan 13, 2005 at 01:41:35PM -0800, Donald W Watson wrote: > I have seen no discussion of the following in the archives. Hibernate (S4) does > not work if the swap partition is on an LVM Logical Volume. [...] > Are these deliberate design decisions? The in-kernel swsusp can not be built as a module. As a consequence, it will always try to resume before an initrd/initramfs has been executed. LVM setup (AFAIK) generally takes place in an initrd, or off a separate boot partition once the kernel has booted. Hence, impossible. On the other hand, Software Suspend 2 should support it: http://softwaresuspend.berlios.de/ - it'll need a bit of tweaking of your initrd to tell it when to resume though. Bernard. -- Bernard Blackham <bernard at blackham dot com dot au> ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20050115104555.GF4429-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org>]
* Re: Hibernate to LVM [not found] ` <20050115104555.GF4429-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org> @ 2005-01-20 13:38 ` Pavel Machek 0 siblings, 0 replies; 4+ messages in thread From: Pavel Machek @ 2005-01-20 13:38 UTC (permalink / raw) To: Donald W Watson, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hi! > > I have seen no discussion of the following in the archives. Hibernate (S4) does > > not work if the swap partition is on an LVM Logical Volume. > [...] > > Are these deliberate design decisions? > > The in-kernel swsusp can not be built as a module. As a consequence, > it will always try to resume before an initrd/initramfs has been > executed. LVM setup (AFAIK) generally takes place in an initrd, or > off a separate boot partition once the kernel has booted. Hence, > impossible. Actually, I think I took a patch that enables you to trigger resume from userland. Check /sys/power in 2.6.11rc1. -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Hibernate to LVM [not found] ` <OF97651F7F.22151B8B-ON87256F88.0076CB20-88256F88.00772C98-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> 2005-01-15 10:45 ` Bernard Blackham @ 2005-01-20 13:36 ` Pavel Machek 1 sibling, 0 replies; 4+ messages in thread From: Pavel Machek @ 2005-01-20 13:36 UTC (permalink / raw) To: Donald W Watson; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f Hi! > I am using the 2.6.10 kernel (linux-2.6.9.tar.bz2 with patch 2.6.10.bz2) on > an older IBM ThinkPad (T20 booted with acpi=force). > > I have seen no discussion of the following in the archives. Hibernate (S4) > does not work if the swap partition is on an LVM Logical Volume. The > reason is that try_name (init/do_mounts.c) is unable to find the partition > in /sys/block. Well, I'd say that this is currently unsupported. > Further, if a second swap partition is established on a regular partition > and referenced in the "resume" state in menu.lst, hibernate appears to > succeed, but on resume check_sig (kernel/power.swsusp.c) complains because > the swsusp_header signature is "SWAPSPACE2" rather than the hard-coded > "S1SUSPEND" which it expects. ...but this one should be fixed. suspend should only write to partition you specified with resume= parameter. If that is not the case, feel free to fix it and send me a patch. Pavel -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-01-20 13:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-13 21:41 Hibernate to LVM Donald W Watson
[not found] ` <OF97651F7F.22151B8B-ON87256F88.0076CB20-88256F88.00772C98-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2005-01-15 10:45 ` Bernard Blackham
[not found] ` <20050115104555.GF4429-4vSAtV5O1nc0n/F98K4Iww@public.gmane.org>
2005-01-20 13:38 ` Pavel Machek
2005-01-20 13:36 ` Pavel Machek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox