From: Nigel Cunningham <ncunningham@crca.org.au>
To: Martin Steigerwald <ms@teamix.de>
Cc: tuxonice-devel@lists.tuxonice.net, linux-kernel@vger.kernel.org
Subject: Re: [TuxOnIce-devel] safe resuming: automatically invalidating an outdated hibernate snapshot
Date: Mon, 13 Oct 2008 22:13:05 +1100 [thread overview]
Message-ID: <1223896385.11353.9.camel@nigel-laptop> (raw)
In-Reply-To: <200810131213.51317.ms@teamix.de>
Hi Martin.
On Mon, 2008-10-13 at 12:13 +0200, Martin Steigerwald wrote:
> Cc to linux-kernel: This is mainly for tuxonice, but it might also be relevant
> for other hibernate implementations. Maybe some general mechanism for
> checking whether an on disk snapshot of the system is current would be good -
> as also the resume parameter could be missing or wrong or whatnot.
>
>
> Hi!
>
> Is there a way to automatically invalidate the tuxonice snapshot when a non
> tuxonice kernel is booted accidentally? I.e. could tuxonice recognize when
> the swap partition has been accessed *after* the snapshot has been written?
>
> It happened here several times that someone booted the wrong kernel and then
> someone else booted the right one again. TuxOnIce would then resume from a
> snapshot that it not up-to-date anymore. This leads to filesystem breakage as
> the filesystem slab objects and other in memory structures would not
> represent the current state of the filesystem on disk. xfs_repair did a
> marvellous job on these occassions and I already changed menu.lst to hide the
> GRUB boot menu by default, but it would be better if this case of
> maloperation can be intercepted.
The simplest way is to mkswap the appropriate partitions from a script
run when booting (after we check whether to resume, of course). I
believe the hibernate script already has support for this. Maybe
pm-utils or such like needs it too?
Nigel
next prev parent reply other threads:[~2008-10-13 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-13 10:13 safe resuming: automatically invalidating an outdated hibernate snapshot Martin Steigerwald
2008-10-13 11:13 ` Nigel Cunningham [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-13 11:35 [TuxOnIce-devel] " Martin Steigerwald
2008-10-13 20:41 ` Nigel Cunningham
2008-10-16 10:33 ` Pavel Machek
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=1223896385.11353.9.camel@nigel-laptop \
--to=ncunningham@crca.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=ms@teamix.de \
--cc=tuxonice-devel@lists.tuxonice.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