Swap in RAID1?

Federico Voges ftc
Thu Feb 17 12:54:07 PST 2005


Michael Hipp dijo:
> 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?
>

RAID :)

I've have this running in a production server without any problems.

While seting this up, I've removed one of the disks while the server was
running and nothing happened (besides the kernel saying that the arrays
were in fault state due to the missing disk).

After plugin the disk back all the mirrors were rebuilt (swap included).

I've tested this on and Intel SCB (dual PIII) with ATA disks (yeah, I
could have ruined the disk and/or controller removing it with the power
on, I know :D).

If you don't place your swap on a mirror, your swap partition wil be your
sinngle point of failure (also tested, the server crashed).

Just my $0.02.

-- 
Bye!!!
                                               FTC.




More information about the Linux-users mailing list