Swap in RAID1?

Mike Reinehr cmr
Tue Feb 15 17:37:12 PST 2005


This from The Software RAID How-To, v1.1, 2004-06-03, 2.3 Swapping on RAID:

http://www.tldp.org/HOWTO/Software-RAID-HOWTO-2.html#ss2.3

"Another reason to use RAID for swap is high availability. If you set up a 
system to boot on eg. a RAID-1 device, the system should be able to survive a 
disk crash. But if the system has been swapping on the now faulty device, you 
will for sure be going down. Swapping on a RAID-1 device would solve this 
problem."

"There has been a lot of discussion about whether swap was stable on RAID 
devices. This is a continuing debate, because it depends highly on other 
aspects of the kernel as well. As of this writing, it seems that swapping on 
RAID should be perfectly stable, you should however stress-test the system 
yourself until you are satisfied with the stability."

HTH!

cmr

On Tuesday 15 February 2005 04:01 pm, Michael Hipp wrote:
> Michael Hipp wrote:
> > I've seen different answers to this question ...
> >
> > Should you have your swap partitions configured inside a RAID1 device or
> > as separate standalone partitions?
> >
> > I've been hold that it'll crash anyway if you put swap in RAID and a
> > drive fails. But won't it crash if you have two swaps and one goes away?
>
> Replying to my own post ...
>
> From: http://www.linux-sxs.org/hardware/raid_for_idiots.html by our own
> David Bandel
>
> "Once your new RAID disk has been partitioned and all but the swap
> partition are type Linux raid autodetect (fd), the hard part is done.  N.B.
> I chose not to RAID swap.  However you may if you like.  I kept two
> separate swap partitions, one on each disk, for extra speed.  Your choice,
> RAID if you like, but you'll take a slight performance hit."
>
> Now if I could just find that comment I read somewhere that it'll crash
> anyway even if you put swap in RAID. Seems wrong to me, but I'm still
> learning.
>
> Michael
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mail.linux-sxs.org/cgi-bin/mailman/listinfo/linux-users
>
> Need to chat further on this subject? Check out #linux-users on
> irc.linux-sxs.org !

-- 
Debian 'Sarge': Registered Linux User #241964
----
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC
--------


More information about the Linux-users mailing list