Re: Is Swapping on software RAID1 possible in linux 2.4 ?

Joseph Bueno (joseph.bueno@trader.com)
Thu, 05 Jul 2001 17:12:40 +0200


Nick DeClario wrote:
>
> Just out of curiousity what are the advantages to having a RAID1 swap
> partition? Setting the swap priority to 0 (pri=0) in the fstab of all
> the swap partitions on your system should have the same effect as doing
> it with RAID but without the overhead, right? RAID1 would also mirror
> your swap. Why would you want that?
>
> Regards,
> -Nick
>
Hi,

Setting swap priority to 0 is equivalent to RAID0 (striping) not RAID1 (mirroring).

Mirroring your swap partition is important because if the disk containing
your swap fails, your system is dead. If you want to keep your system running
even if one disk fails you need to mirror ALL your active partitions including
swap.
If you only mirror your data partitions, your are only protected against data
loss in case of a disk crash (assuming you shutdown gracefully before it panics
while it tries to read/write on a crashed swap partition and leave your data in
some inconsistent state).

Regards

--
Joseph Bueno
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/