linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: likewhoa <likewhoa@weboperative.com>
To: Gavin Flower <gavinflower@yahoo.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Best way to create RAID-6 for swap partition - existing one failed
Date: Wed, 18 May 2011 15:57:22 -0400	[thread overview]
Message-ID: <1305748642.10481.1.camel@darkside> (raw)
In-Reply-To: <4DD41713.5070407@hardwarefreak.com>

Why not just let the kernel handle the stripping for you, IMO using
dmraid is overkill for swap when it can all be handled by the kernel
itself with 'swap -p1 /dev/sda1' for example.
 
On Wed, 2011-05-18 at 13:59 -0500, Stan Hoeppner wrote:
> On 5/16/2011 4:41 PM, Gavin Flower wrote:
> 
> > Motivation, existing RAID-6 swap partition failed.  I am thinking I should recreate it in a new format, as currently it is 'Version : 0.90', rather than simply rebuild it.
> <snip>
> 
> Forget using a partition.  Simply use a swap file.  This example creates
> a 1GB swap file in the / filesystem.  You can locate it on any
> filesystem you wish.
> 
> # swappoff -a
> # dd if=/dev/zero of=/swapfile1 bs=1024 count=1048576
> # mkswap /swapfile1
> # swapon /swapfile1
> # vi /etc/fstab
> Add:
> /swapfile1 swap swap defaults 0 0
> 
> and remove your old entry for the failed swap partition.
> 
> There is little performance difference between swap files and swap
> partitions with modern kernels.  The kernel will map the disk location
> of the swap file and perform direct disk access, bypassing the
> filesystem and buffer cache.
> 



  reply	other threads:[~2011-05-18 19:57 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 [this message]
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
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=1305748642.10481.1.camel@darkside \
    --to=likewhoa@weboperative.com \
    --cc=gavinflower@yahoo.com \
    --cc=linux-raid@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).