public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Jones <pjones@redhat.com>
To: Stefan Seyfried <seife@suse.de>
Cc: suspend-devel@lists.sourceforge.net, linux-pm@osdl.org,
	Alan Stern <stern@rowland.harvard.edu>
Subject: Re: [linux-pm] Dangers of touching disk between	suspend and resume
Date: Thu, 30 Nov 2006 17:17:47 -0500	[thread overview]
Message-ID: <1164925067.6031.29.camel@localhost.localdomain> (raw)
In-Reply-To: <20061130201311.GK2227@suse.de>

On Thu, Nov 30, 2006 at 03:00:43PM -0500, I wrote:
> On Tue, 2006-11-28 at 17:37 +0100, Stefan Seyfried wrote:
> 
> > So it is a good idea to tell the engineer to do "mkswap" on the swap
> > partition before putting the disk into the replacement hardware.
> 
> Ugh, no it's not.  You really want the UUID on the swap area to remain
> the same.

In response, on Thu, 2006-11-30 at 21:13 +0100, Stefan Seyfried wrote:
> Well, but the system won't care because it won't resume?
> Or am i missing something?

And On Thu, 2006-11-30 at 15:42 -0500, Daniel Drake wrote:
> Why?
> 
> [not questioning your reasoning, this is coming from someone who knows
> very little about swap structure and what the UUID is used for]

You want to get rid of the resume metadata from it, but you don't want
to create a new swap structure.  Normally it's not a problem, but in
some environments, such as with shared-storage like in a SAN[1], we need
to be able to identify that a swap device is really the one we mean to
be activating; the UUID is one of the best pieces of data we've got.  So
you don't want to start over with a new swap partition, you want to
clear the resume data only.

Granted, I think most distros, if not all, and all the standard tools
totally muck up swap on shared storage right now[0].  But that's no
reason to advocate such a bad habit.  For FC/RHEL making this work right
is at least on my TODO list for the relatively near future.

[0] "swapon -a" activates everything it finds, and that's what most
distros do during boot.  If you can see other machines' swap devices,
that's bad.

[1] If you hate that example, another with the same problem is when
you're running a virtual machine which has its own physical disk
partitions, i.e. vmware with /dev/sdb as its disk.

-- 
  Peter


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  reply	other threads:[~2006-11-30 22:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-28 15:21 Dangers of touching disk between suspend and resume Daniel Drake
2006-11-28 15:43 ` [linux-pm] " Alan Stern
2006-11-28 16:37   ` Stefan Seyfried
2006-11-28 19:43     ` Daniel Drake
2006-11-30 20:00     ` Peter Jones
2006-11-30 20:13       ` Stefan Seyfried
2006-11-30 22:17         ` Peter Jones [this message]
2006-12-01  7:39           ` Stefan Seyfried
2006-12-02  4:41             ` Nigel Cunningham
2006-12-04  8:10               ` Stefan Seyfried
2006-12-05 11:28                 ` Nigel Cunningham
2006-12-05 11:44                   ` Stefan Seyfried
2006-12-05 11:51                   ` Matt Sealey
2006-12-06  0:10                     ` Nigel Cunningham
2006-12-09 15:25                       ` Matthew Garrett
2006-11-30 20:42       ` Daniel Drake

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=1164925067.6031.29.camel@localhost.localdomain \
    --to=pjones@redhat.com \
    --cc=linux-pm@osdl.org \
    --cc=seife@suse.de \
    --cc=stern@rowland.harvard.edu \
    --cc=suspend-devel@lists.sourceforge.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