Derek Yeung on Wed 25/06 15:39 -0400: > I was wondering if it's a good idea to also mirror the > swap partition? You should definitely mirror swap or any dirty pages which are swap-backed will be lost when the swap device dies, resulting in data or filesystem corruption. Not to mention that your system will almost certainly crash when this occurs. > I was reading old posts in the newsgroups that suggest > this may not be a good idea but i can't seem to find an > answer as to why. The old RAID code couldn't handle swap for some reason, but that was fixed a long time ago. I believe it had something to do with deadlocking in a situation where the RAID code needed memory for some dealings with the mirrored swap device, but the memory couldn't be obtained without swapping out, which as you can imagine would cause problems. I think they changed this by making the kinds of buffers used by RAID in these situations to be pinned, but I don't know. > If it's a good idea, can anyone suggest how i can do it? > (mirror swap?) I don't currently have it set up yet. swapoff, mkraid, raidstart, mkswap, swapon, vi /etc/fstab - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html