public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Uwe Geuder <linuxkernel2015-ugeuder@snkmail.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Len Brown <len.brown@intel.com>,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH] PM / hibernate/resume: clarify documentation
Date: Wed, 1 Jul 2015 10:46:11 +0200	[thread overview]
Message-ID: <20150701084611.GB6946@amd> (raw)
In-Reply-To: <87lhf2p81y.fsf@e6510-131.site>

On Mon 2015-06-29 23:35:05, Uwe Geuder wrote:
> it was not the whole truth that kernel mode cannot be used with swap on LVM
> 
> Signed-off-by: Uwe Geuder <linuxkernel2015-ugeuder@snkmail.com>

Acked-by: Pavel Machek <pavel@ucw.cz>

Thanks for clarifying this.

(Hmm, and I guess we shoudl rename swsusp.txt -> hibernation.txt one
day :-).

									Pavel
> ---
>  Documentation/power/swsusp.txt | 13 +++++++++++--
>  1 file changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/power/swsusp.txt b/Documentation/power/swsusp.txt
> index f732a83..8cc17ca 100644
> --- a/Documentation/power/swsusp.txt
> +++ b/Documentation/power/swsusp.txt
> @@ -410,8 +410,17 @@ Documentation/usb/persist.txt.
>  
>  Q: Can I suspend-to-disk using a swap partition under LVM?
>  
> -A: No. You can suspend successfully, but you'll not be able to
> -resume. uswsusp should be able to work with LVM. See suspend.sf.net.
> +A: Yes and No.  You can suspend successfully, but the kernel will not be able
> +to resume on its own.  You need an initramfs that can recognize the resume
> +situation, activate the logical volume containing the swap volume (but not
> +touch any filesystems!), and eventually call
> +
> +echo -n "$major:$minor" > /sys/power/resume
> +
> +where $major and $minor are the respective major and minor device numbers of
> +the swap volume.
> +
> +uswsusp works with LVM, too.  See http://suspend.sourceforge.net/
>  
>  Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were
>  compiled with the similar configuration files. Anyway I found that

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

      reply	other threads:[~2015-07-01  8:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-27 21:59 resume from swap partition under LVM Uwe Geuder
2015-06-29 20:26 ` Uwe Geuder
2015-06-29 20:35   ` [PATCH] PM / hibernate/resume: clarify documentation Uwe Geuder
2015-07-01  8:46     ` Pavel Machek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150701084611.GB6946@amd \
    --to=pavel@ucw.cz \
    --cc=len.brown@intel.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=linuxkernel2015-ugeuder@snkmail.com \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox