What is hot-swapping, and which server parts support it
Quick answer
Hot-swappable hardware can be removed and replaced while the server keeps running, no shutdown needed. Drives in a proper RAID array and, on servers built with them, redundant power supplies are commonly hot-swappable. RAM and CPUs generally aren't, in most standard server hardware they require powering the server down first. The difference comes down to whether a component was engineered with the electrical and software support to be removed live without corrupting data or crashing the system.
What "hot-swap" actually means
A component is hot-swappable when you can physically remove it and insert a replacement while the server is powered on and running, without the system crashing, the data corrupting, or a service on that server going down for the operation. The opposite, cold-swap in effect, is hardware that must be handled with the server fully powered off: pull it live and you risk data loss, a crash, or damage to the component or the server itself.
The distinction isn't about whether a part is physically easy to remove, plenty of non-hot-swap components are simple to unscrew and lift out. It's about whether the system was built, electrically and in software, to tolerate that component disappearing and reappearing while everything else keeps running.
Why some hardware supports it and some doesn't
Hot-swap support isn't free. It requires engineering on both sides of the connection:
- Electrically, the connector and backplane need to handle a live connection or disconnection without a power spike or short damaging anything, which usually means staggered pins, so ground connects before power, and other physical safeguards not present in a standard fixed connector.
- In software, the operating system and controller need to detect the component being removed or added, and handle that event gracefully rather than treating it as a fault. For a drive, that also means the RAID controller keeping track of which array member is now missing, and knowing how to reintegrate a new one.
Components that don't ship with that engineering simply can't be trusted to survive a live removal. Nothing detects the disconnection cleanly, and there's no defined process for the system to keep running correctly without that part.
What's commonly hot-swappable
- Drives in a proper RAID array. When drives are part of a RAID configuration with redundancy, RAID 1, 5, 6, or 10, a failed drive can typically be pulled and a replacement inserted while the server keeps running, with the RAID controller rebuilding the array onto the new drive. See RAID levels explained for how the different levels handle a missing drive, and How to recognise a bad drive in Linux for spotting a drive that needs replacing in the first place.
- Redundant power supplies. Server chassis built with two or more power supply units, each capable of running the server alone, generally allow a failed unit to be pulled and replaced without interrupting power to the server, as long as the remaining unit or units can carry the full load in the meantime.
What generally isn't hot-swappable
- RAM. Standard server memory modules are read continuously by the CPU while the system runs, there's no defined mechanism in most standard server hardware for removing or inserting a module live without corrupting whatever's using that memory at the time. Changing RAM means powering the server down first.
- CPUs. The processor is the thing running the operating system in the first place, removing it live isn't a scenario standard server hardware is built to survive. A CPU swap means a shutdown.
Some specialised, high-end server platforms do support hot-swappable memory or CPU sockets, but that's the exception rather than the default, and it isn't something to assume is present without confirming the specific hardware.
| Component | Typically hot-swappable? | Why |
|---|---|---|
| Drives in a redundant RAID array | Yes | Backplane and RAID controller are built to detect and rebuild around a live change |
| Redundant power supplies | Yes, on chassis built with them | Staggered connector design and remaining PSU(s) carry the load during the swap |
| RAM | Generally no | Actively addressed by the CPU while running, no live-removal mechanism in standard hardware |
| CPU | Generally no | Runs the OS itself, standard sockets aren't built for a live pull |
Hot-swap doesn't mean risk-free or instant
Even where hot-swapping is fully supported, it's worth being realistic about what actually happens afterwards. Pulling a failed drive from a redundant RAID array and inserting a replacement keeps the server running throughout, but the array itself is running in a degraded state until the rebuild finishes, reading and reconstructing data onto the new drive from the surviving members. That rebuild takes real time, depending on drive size and array activity it can take hours, and it adds read load to the remaining drives at exactly the point they're already carrying the full workload with less redundancy than usual. A second drive failure during that window is more consequential than one during normal operation, since the array has less headroom left. The server staying up during a hot-swap is real and useful, but it isn't the same as the operation being instantaneous or without any risk.