All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gavin Flower <gavinflower@yahoo.com>
To: Stan Hoeppner <stan@hardwarefreak.com>
Cc: linux-raid@vger.kernel.org, neilb@suse.de, mb@gem.win.co.nz
Subject: Re: Best way to create RAID-6 for swap partition - existing one failed
Date: Wed, 18 May 2011 21:05:03 -0700 (PDT)	[thread overview]
Message-ID: <136111.99834.qm@web65105.mail.ac2.yahoo.com> (raw)
In-Reply-To: <4DD48E42.4010800@hardwarefreak.com>

--- On Thu, 19/5/11, Stan Hoeppner <stan@hardwarefreak.com> wrote:

> From: Stan Hoeppner <stan@hardwarefreak.com>
> Subject: Re: Best way to create RAID-6 for swap partition - existing one failed
> To: "Gavin Flower" <gavinflower@yahoo.com>
> Cc: linux-raid@vger.kernel.org, neilb@suse.de, mb@gem.win.co.nz
> Date: Thursday, 19 May, 2011, 15:28
> On 5/18/2011 9:50 PM, Gavin Flower
> wrote:
> 
> > Hibernation mostly worked (almost all problems were
> associated with the Radeon video drivers) when I was using
> the RAID-6 swap partition.  So I was not anticipating
> any new problem with hibernations.
> > 
> > I am using Fedora 14 with all the latest patches
> applied.
> > 
> > $ uname -a
> > Linux saturn 2.6.35.13-91.fc14.x86_64 #1 SMP Tue May 3
> 13:23:06 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
> 
> Did you modify grub accordingly since switching from swap
> partition to
> file, and reboot?  My very basic understanding, after
> reading a single
> Google hit, is that hibernation to/from swap has a
> dependency on a grub
> entry.  Thus, the problem you have now is not due to
> switching to a swap
> file per se.  It's due to the hibernation code not
> automatically
> recognizing you did so.
> 
> Did you read any of the Google search results?  All of
> the answers you
> need should be there, or not far away.
> 
> -- 
> Stan

I looked at some Google results (see below), and have decided to revert to using a partition.  As it is rapidly getting into more complications than I have time to pursue.  

This is far from the '60 second change' you promised :-)

Cheers,
Gavin

///////////

Red Hat Bug 466408 is an RFE to support using a swap file.

In /etc/rc.d/rc.sysinit there are lines that expect a swap partition:
[...]
# Start up swapping.
update_boot_stage RCswap
action $"Enabling /etc/fstab swaps: " swapon -a -e
if [ "$AUTOSWAP" = "yes" ]; then
	curswap=$(awk '/^\/dev/ { print $1 }' /proc/swaps | while read x; do get_numeric_dev dec $x ; echo -n " "; done)
	swappartitions=$(blkid -t TYPE=swap -o device)
	if [ x"$swappartitions" != x ]; then
		for partition in $swappartitions ; do
			[ ! -e $partition ] && continue
			majmin=$(get_numeric_dev dec $partition)
			echo $curswap | grep -qw "$majmin" || action $"Enabling local swap partitions: " swapon $partition
		done
	fi
fi
[...]


http://www.fedoraforum.org/forum/showthread.php?t=204114
[...]
Old 19th November 2008, 04:00 PM
stevea
[...]
I suspect that you cannot resume from a swap file without redesigning mkinitrd script. It currently resumes the swap (device or file) BEFORE it mounts the root file system, so I think the resume/unhibernate is destined to fail from a swap file. If you did mount the root first then you'd likely have a problem (fsck - unclean unmount) w/ the remounting that fs later (maybe not - it's read access only). Maybe the resume could work from a file, but that's unclear.
[...]

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-05-19  4:05 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-16 21:41 Best way to create RAID-6 for swap partition - existing one failed Gavin Flower
2011-05-18 15:01 ` David Brown
2011-05-18 18:59 ` Stan Hoeppner
2011-05-18 19:57   ` likewhoa
2011-05-18 20:32     ` Gavin Flower
2011-05-18 20:59       ` likewhoa
2011-05-18 20:13   ` Gavin Flower
2011-05-18 21:53     ` Stan Hoeppner
2011-05-18 22:31       ` Gavin Flower
2011-05-18 23:01         ` Stan Hoeppner
2011-05-18 20:42   ` Gavin Flower
2011-05-18 22:26     ` Stan Hoeppner
2011-05-18 22:55       ` Gavin Flower
2011-05-19  0:11   ` Gavin Flower
2011-05-19  2:26     ` Stan Hoeppner
2011-05-19  2:50       ` Gavin Flower
2011-05-19  3:28         ` Stan Hoeppner
2011-05-19  4:05           ` Gavin Flower [this message]
2011-05-19  8:17             ` Stan Hoeppner
2011-05-20  3:32       ` Leslie Rhorer
2011-05-19  9:04   ` Gordon Henderson

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=136111.99834.qm@web65105.mail.ac2.yahoo.com \
    --to=gavinflower@yahoo.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mb@gem.win.co.nz \
    --cc=neilb@suse.de \
    --cc=stan@hardwarefreak.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.