Skip to contentSkip to conversation

raid1 and swap

DISCUSSION Alfred Isele 2 participants 2 messages Apr 7, 2003 MD RAID

lore
Share & tools
lore
#0 lore raw

Hello!
I have a question concerning the use of raid1 (md) together with swap. I use this /etc/fstab entry:

/dev/md1 none swap pri=42 0 0

Somebody told me swap could be damaged if
one of the mirrored devices used for swap fails and a spare disk is resynched for it because the resync would be done using the buffer cache whereas the swapping would be done by direct disk access.
Do you know if such a problem exists?
Thank you
Alfred

#1 lore raw
Quoted 5 lines · On Monday April 7, [email protected] wrote:

Hello!
I have a question concerning the use of raid1 (md) together with swap. I use this /etc/fstab entry:

Quoted 8 lines

/dev/md1 none swap pri=42 0 0

Somebody told me swap could be damaged if
one of the mirrored devices used for swap fails and a spare disk is resynched for it because the resync would be done using the buffer cache whereas the swapping would be done by direct disk access.
Do you know if such a problem exists?

In 2.2 kernels, yes.
In 2.4.0 and later, no.

NeilBrown