raid1 and swap
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
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/fstabentry:
Quoted 8 lines
/dev/md1none swap pri=42 0 0Somebody 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