---
title: "HDD or SSD for a server: choosing storage by workload · CloudSat"
description: "HDD, SATA SSD or NVMe for a server: how each works, where spinning disks still win, endurance and form factors, and how to test the disk your VPS really has."
url: https://cloudsat.io/learn/hdd-or-ssd-for-servers
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Cloud and hosting](https://cloudsat.io/learn/topic/cloud-infrastructure)

# HDD or SSD for a server: choosing storage by workload

HDD, SATA SSD or NVMe for a server: how each works, where spinning disks still win, endurance and form factors, and how to test the disk your VPS really has.

CloudSat team November 18, 2026 6 min read

For the operating system, databases and applications, flash storage won the server argument years ago. The useful questions in 2026 are narrower: where hard drives still earn their place, which kind of flash a workload needs, and how to tell what a rented server really runs on. This guide covers how each technology behaves, how to match it to a workload, what to check on an SSD's spec sheet, and how to measure a disk yourself.

## How they work, and why it matters

A hard disk drive stores data on spinning platters and reads it with heads on a moving arm. Every random read pays a mechanical price: the arm has to move to the right track, then wait for the right sector to come around. At 7,200 rpm one revolution takes about 8.3 ms, so the average wait for the sector alone is around 4.2 ms, before the arm has moved at all. Long sequential transfers avoid most of that cost, which is why hard drives still stream large files respectably.

A solid-state drive stores data in NAND flash cells with no moving parts, so a random read costs about the same as a sequential one. A controller spreads writes across cells, because each cell survives a limited number of write cycles, and the TRIM command tells it which blocks the filesystem no longer uses.

The interface sets the ceiling:

- **SATA** tops out at 6 Gb/s, roughly 600 MB/s of real data, and its command queue holds 32 requests.
- **SAS** runs at 12 Gb/s, or 22.5 Gb/s for 24G SAS, with dual ports for redundant paths in enterprise enclosures.
- **NVMe** connects flash straight to PCIe. A PCIe 4.0 x4 link carries about 8 GB/s and PCIe 5.0 x4 about 16 GB/s in theory, and the protocol allows up to 64K queues of 64K commands each, which suits many cores issuing I/O at once.

## Side by side

|  | HDD | SATA SSD | NVMe SSD |
| --- | --- | --- | --- |
| Random reads and writes | Slow, bound by seek time | Fast | Fastest, especially with many parallel requests |
| Sequential throughput | Reasonable | Capped near 600 MB/s by SATA | Several GB/s |
| Cost per terabyte | Lowest | Higher | Higher |
| Largest capacities per drive | Tens of terabytes | Moderate | Very large enterprise models exist |
| Sensitivity | Vibration, shock, heat | Heat at sustained load | Heat at sustained load |
| Typical way to fail | Mechanical wear, often with warning signs | Write wear-out or controller failure, sometimes abrupt | Same as SATA SSD |

## Where hard drives still win

Cheap capacity is the hard drive's last strong argument, and it is a good one for data that is large, written once and read rarely:

- **Backups and archives.** Nightly backup targets and long retention sets are mostly sequential writes.
- **Media libraries and surveillance footage.** Big files, streamed in order.
- **Cold object storage and log archives.** Data you must keep but seldom touch.

Mixed setups get the best of both: an SSD in front of a pool of hard drives, for example a ZFS special vdev for metadata or an SSD cache with `lvmcache` or `bcache`. Two warnings. Avoid SMR (shingled) drives in RAID arrays and ZFS pools; their slow sustained writes make rebuilds crawl. And on large hard drives, prefer mirrors, RAID 10 or RAID 6 over RAID 5, because a rebuild takes long enough that a second failure during it is a real risk.

## Where flash is the only sensible choice

Anything that makes many small, scattered reads and writes belongs on SSD, ideally NVMe: the OS and boot disk, databases, virtual machines, mail servers with thousands of small files, build and CI servers, search indexes and game servers that save world state. For these workloads latency matters more than throughput, and a hard drive's few milliseconds per random operation become the whole response time.

## Reading an SSD spec sheet

- **Endurance.** Rated as TBW (terabytes written over the warranty) or DWPD (full drive writes per day over the warranty). Read-heavy servers rarely come close; write-heavy databases and logging pipelines can.
- **Flash type.** TLC is the mainstream choice. QLC stores more bits per cell, which makes it denser and cheaper per terabyte, with lower endurance and slower sustained writes. It suits read-mostly data.
- **Power-loss protection.** Enterprise SSDs carry capacitors that flush the write cache if power fails. Databases that sync every commit benefit directly, and consumer drives usually lack it.
- **Form factor.** M.2 is compact but hard to hot-swap and cool. U.2 and U.3 are 2.5-inch hot-swap NVMe drives for server bays, and EDSFF (E1.S, E3.S) is the newer data center form factor built around airflow and density.

## What storage does your VPS actually have?

Inside a virtual machine you see a virtual disk, usually `/dev/vda` or `/dev/sda`, whatever the host uses underneath. `lsblk` shows what the hypervisor reports:

```bash
lsblk -d -o NAME,ROTA,SIZE,MODEL
```

`ROTA` is 1 for a rotating disk and 0 for flash, but inside a VM it only repeats what the virtual device claims, so it proves nothing. Measure instead. `fio` reproduces the access patterns that matter; this test writes a 2 GB file, then reads and writes it in two patterns:

```bash
sudo apt install fio
fio --name=randread --filename=/root/fio.test --size=2G --rw=randread --bs=4k \
    --iodepth=32 --ioengine=libaio --direct=1 --runtime=30 --time_based --group_reporting
fio --name=seqwrite --filename=/root/fio.test --size=2G --rw=write --bs=1M \
    --iodepth=8 --ioengine=libaio --direct=1 --runtime=30 --time_based --group_reporting
rm /root/fio.test
```

On the RHEL family, install it with `sudo dnf install fio`. Read the IOPS and the completion latency percentiles (`clat`) of the random test, and the bandwidth of the sequential one. Run each test more than once, at different times of day, because shared hosts vary. Random-read results in the low hundreds of IOPS usually mean spinning disks or a heavily throttled volume, while local NVMe answers most requests in well under a millisecond. Every CloudSat server runs on pure NVMe storage, including the storage-focused plans from $2.78/mo for backups and archives ([storage VPS](https://cloudsat.io/storage-vps-hosting)).

Two more checks keep flash healthy. Most distributions run a weekly TRIM through a systemd timer:

```bash
systemctl status fstrim.timer
sudo fstrim -av
```

On a dedicated server with physical drives, read their health directly with `smartctl -a /dev/sda` or `nvme smart-log /dev/nvme0`. Virtual disks do not expose SMART data, so on a VPS the provider handles that layer.

## FAQ

### Is NVMe noticeably faster than a SATA SSD for a website?

For a small site, rarely. Most requests are served from memory caches, and both drives answer random reads quickly. NVMe pulls ahead under heavy parallel I/O: busy databases, many VMs on one host, or large builds.

### Do SSDs need defragmenting?

No. Fragmentation barely affects flash, and rewriting data for no reason only spends endurance. Windows' **Optimize Drives** recognizes SSDs and mostly sends TRIM instead of a classic defragmentation, and Linux handles TRIM with `fstrim`.

### How long will a server SSD last?

It depends on how much you write. Measure your daily writes, for example with `iostat -m` from the `sysstat` package, and compare them with the drive's TBW or DWPD rating. Most web and application servers write far less than their drives are rated for, while busy databases and log collectors deserve drives rated for higher endurance.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Cloud and hosting](https://cloudsat.io/learn/topic/cloud-infrastructure)

- [Server virtualization: hypervisors, VMs and containers](https://cloudsat.io/learn/how-server-virtualization-works): Cloud and hosting Server virtualization: hypervisors, VMs and containers 6 min read
- [Back up and restore a VPS: a plan you can actually test](https://cloudsat.io/learn/vps-backup-and-restore-plan): Cloud and hosting Back up and restore a VPS: a plan you can actually test 6 min read
- [Small business server: build it, buy it or rent it](https://cloudsat.io/learn/small-business-server-build-buy-or-rent): Cloud and hosting Small business server: build it, buy it or rent it 6 min read
- [Block, file or object storage: which one your app needs](https://cloudsat.io/learn/block-file-or-object-storage): Cloud and hosting Block, file or object storage: which one your app needs 6 min read
