linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Tomas France <tomfra@centrum.cz>
Cc: linux-raid@vger.kernel.org
Subject: Re: SWAP file on a RAID-10 array possible?
Date: Thu, 16 Aug 2007 01:42:26 +0400	[thread overview]
Message-ID: <46C37342.9080509@msgid.tls.msk.ru> (raw)
In-Reply-To: <02db01c7df27$04321c60$332317ac@Cortex>

Tomas France wrote:
> Thanks for the answer, David!
> 
> I kind of think RAID-10 is a very good choice for a swap file. For now I
> will need to setup the swap file on a simple RAID-1 array anyway, I just
> need to be prepared when it's time to add more disks and transform the
> whole thing into RAID-10... which will be big fun anyway, for sure ;)

By the way, you don't really need raid10 for swap.  Built-in linux
swap code can utilize multiple swap areas just fine - mkswap + swapon
on multiple devices/files.  This is essentially a raid0.  For raid10,
one thing needed is the mirroring, with is provided by raid1.  So
when you've two drives, use single partition on both to form a raid1
array for swap space.  If you've 4 drives, create 2 raid1 arrays and
specify them both as swap space, giving them appropriate priority
(prio=xxx in swap line in fstab).  With 6 drives, have 3 raid1 arrays
and so on...  This way, the whole thing is much simpler and more
manageable.

/mjt

  parent reply	other threads:[~2007-08-15 21:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-07  8:16 Linux RAID migration saeed bishara
2007-08-07  8:26 ` Tuomas Leikola
2007-08-07 10:02   ` saeed bishara
2007-08-07 10:22     ` Neil Brown
2007-08-07 10:32       ` saeed bishara
2007-08-07 10:46         ` saeed bishara
2007-08-07 11:18           ` Neil Brown
2007-08-07 11:31             ` saeed bishara
2007-08-07 11:40               ` Neil Brown
2007-08-07 13:27                 ` saeed bishara
2007-08-07 15:15                   ` saeed bishara
2007-08-09  3:23                     ` Neil Brown
2007-08-15  9:02                 ` SWAP file on a RAID-10 array possible? Tomas France
2007-08-15 10:10                   ` David Greaves
2007-08-15 10:28                     ` Tomas France
2007-08-15 12:59                       ` David Greaves
2007-08-15 14:32                       ` Daniel Korstad
2007-08-15 21:42                       ` Michael Tokarev [this message]
2007-08-18  8:52                         ` Tomas France
2007-08-15 22:02                   ` Bill Davidsen
2007-08-07 10:37       ` Linux RAID migration Tomasz Chmielewski

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=46C37342.9080509@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=linux-raid@vger.kernel.org \
    --cc=tomfra@centrum.cz \
    /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).