Re: No swap on my Debian Sid system
Hi.
>
> If you're using md for RAID-1, then the best way to have your swap partitions
> is to have one partition on each drive, *outside* the RAID array, and use
> them as separate swap partitions. There's little to no point in slowing down
> the system by RAIDing the contents of the swapfile -- under almost any
> circumstance in which that might be desirable, there will be worse and more
> immediate problems.
The idea is that if one disk fails, and the swap on that one is corrupted,
the system will crash...
> With the kind of hardware RAID that appears as a single
> SCSI drive, you obviously can't avoid RAIDing swap; but at least it isn't
> such a performance hit.
Some people have pointed out that linux's software RAID is probably more
efficient then the common cheap (fake) hardware RAID.
>
> Due to the way the "modern" /dev works, you won't see an entry for sda2 at all
> if /dev/sda2 has already been appropriated by some RAID array. Check
> your /etc/raidtab to make sure that the partitions you want to use for swap
> really are available.
On my system (using "mdadm"):
# ls /etc/raidtab
ls: /etc/raidtab: No such file or directory
Best regards,
Gilles
Reply to: