2
i have 8x 2TB disks in raid6 with mdadm and I decided to add a little "slack" partition to each drive just in case a replacement drive is not exactly the same size of the drives i now use. The purpose being that I don't risk not being able to add a disk to the raid because it is too small.
Now, for the slack partitions I simply designated them as swap partitions (can't hurt). Now from what I understand Linux does a round robin on those disks when it allocates pages for swap. Again to my best knowledge this means that all my swap space is roughly equivalent to a raid0 stripe set. Now if one disk should fail would it mean that...
A: My entire swap space is corrupted or in a invalid state?
B: Any program that has pages on the swap device that failed is now compromized (or terminated?!)
C: I would be better off running a mdadm raid10 on the swap partitions and creating a swapfile instead or swapping directly to the mdX device?!
I appreciate if someone could actually shed some light on how Linux handles swap in case of an failure.
Similar to http://serverfault.com/questions/195839/where-should-my-swap-partition-s-live-when-using-software-raid1-performance-lv, but not a duplicate.
– Jonathan Ben-Avraham – 2013-05-07T22:14:06.960