From: "Tomas France" <tomfra@centrum.cz>
To: linux-raid@vger.kernel.org
Subject: Re: SWAP file on a RAID-10 array possible?
Date: Sat, 18 Aug 2007 10:52:56 +0200 [thread overview]
Message-ID: <00a001c7e175$315c3c20$332317ac@Cortex> (raw)
In-Reply-To: 46C37342.9080509@msgid.tls.msk.ru
This wouldn't be probably the best solution in my situation. The computer we
are talking about will be quad-core web server with 8GB RAM and initially
2x500GB SATA HDDs setup in a RAID-1 array. When it begins running low on
space or more HDDs performance is needed, I plan to convert the RAID-1 to
RAID-10 by adding 2-4 more hard disks (I've found some info on how to do
this so hopefully it will work).
If I should follow the commonly accepted strategy saying that the swap space
should be 2X+ the amount of RAM, that means 16GB. If I add 4 more HDDs in
RAID-1 pairs later, then I would end up with 3 swap partitions on RAID-1
taking 96GB (6*16GB) of space on the harddrives which would be a
considerable waste of space.
Sure, when adding the more hard disks I could probably create a smaller swap
partition on each of them but that would be yet another complication. Using
a swap file initally on the RAID-1 array and then on the RAID-10 array
sounds like a much simpler solution to me as it will allow me to change the
size of the swap space more flexibly.
Tomas
----- Original Message -----
From: "Michael Tokarev" <mjt@tls.msk.ru>
To: "Tomas France" <tomfra@centrum.cz>
Cc: <linux-raid@vger.kernel.org>
Sent: Wednesday, August 15, 2007 11:42 PM
Subject: Re: SWAP file on a RAID-10 array possible?
> 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
>
next prev parent reply other threads:[~2007-08-18 8:52 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
2007-08-18 8:52 ` Tomas France [this message]
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='00a001c7e175$315c3c20$332317ac@Cortex' \
--to=tomfra@centrum.cz \
--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 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.