A team member has created a swapfile on one of our machines which needed more swap. And he created it on a filesystem on SSD. While our servers are not swapping a lot and probably safe to keep the swap file on the SSD with its finite write-cycles, I am curious to know what happens if SWAP partition fails on a server that is using the swap (say the SWAP drive died).
Is a SWAP partition failure on a running machine catastrophic? Or it will be treated just like someone had issued a
swapoff -aalbeit without all the flushing of buffers and cache.
I am assuming that the program that has its pages on SWAP may crash.
If I am to reboot a machine with a failed SWAP, would commenting out the swap entries in fstab would suffice to prevent being stuck at boot? Can I just add a new swap partition and update the fstab entries and it will reboot as if nothing had happend?