Storage
Storage is where a machine keeps the data that must remain after a process exits. Memory is lost when power is lost, so programs write what they need to keep to disks or to separate storage services. Disks keep data without power, but reading from them is far slower than reading memory. The operating system hides much of that gap by caching recently read data in memory.
A disk can be attached to the server itself or reached over the network as a volume. Object stores hold data as whole objects, independently of any machine, and are read and written over the network. A local disk is fast but disappears with its server, while a network volume can move from one machine to another. Object stores trade speed for scale, holding far more data than any disk at a lower cost.
How storage is built decides how fast a machine starts and how cheaply it can be copied. It also decides what survives when a machine is stopped or deleted. Copy-on-write lets many machines share one base image and store only their own changes, so a new machine starts without copying it. Snapshots extend the same idea to a running machine, saving its disk and, in some cases, its memory, so that it can resume later.
- Local diskA local disk is storage physically attached to the server that a workload runs on.
- Block storageBlock storage is storage presented to a machine as a raw disk of fixed-size blocks.
- Object storageObject storage is storage that keeps data as whole objects, each addressed by a key.
- File systemA file system is the layer that organizes the blocks of a disk into files and directories.