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

From: Joseph Bueno (
Date: Thu Jul 05 2001 - 10:12:40 EST

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

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
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).


Joseph Bueno
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:16 EST