Moshe Yudkowsky wrote:
Keld Jørn Simonsen wrote:
On Tue, Jan 29, 2008 at 06:32:54PM -0600, Moshe Yudkowsky wrote:
Hmm, why would you put swap on a raid10? I would in a production
environment always put it on separate swap partitions, possibly a
number,
given that a number of drives are available.
In a production server, however, I'd use swap on RAID in order to
prevent server downtime if a disk fails -- a suddenly bad swap can
easily (will absolutely?) cause the server to crash (even though you
can boot the server up again afterwards on the surviving swap
partitions).
I see. Which file system type would be good for this?
I normally use XFS but maybe other FS is better, given that swap is used
very randomly 8read/write).
Will a bad swap crash the system?
Well, Peter says it will, and that's good enough for me. :-)
I've done unplanned research into this, it will crash the system, and if
you're unlucky some part of what's needed for a graceful crash will be
swapped out :-(
As for which file system: I would use fdisk to partition the md disk
and then use mkswap on the partition to make it into a swap partition.
It's a naive approach but I suspect it's almost certainly the correct
one.
I generally dedicate a partition of each drive to swap, but the type is
"raid array." Then I create a raid10 on that set of partitions and
mkswap on the md device. While raid10 is fast and reliable, raid[56]
have similar reliability and a higher usable space from any given
configuration.
--
Bill Davidsen <davidsen@xxxxxxx>
"Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html