Block storage

Block storage is storage presented to a machine as a raw disk of fixed-size blocks.

Block storage is storage that a machine sees as a raw disk, a run of numbered blocks with no notion of files. The kernel of the machine puts a filesystem on top, so the same disk can hold any filesystem the kernel supports. Each block has the same fixed size, and the machine reads or writes whole blocks by their number. Databases and operating systems expect exactly this from a disk, so they run on block storage without changes.

In the cloud, the term usually means a network block volume, a virtual disk whose data lives on a separate storage cluster. The volume attaches to a virtual machine over the datacenter network. Providers carve many volumes out of one shared pool of drives, so creating or growing a volume needs no new hardware. The storage cluster and the compute hosts also grow apart from each other, each at its own pace.

Because its data is not on the host, a volume outlives the machine it is attached to. A sandbox that runs as a virtual machine can be stopped or replaced and pick up the same disk. This decouples data from compute. A failed host takes its running sandboxes down with it, but their volumes stay intact. A replacement started on another host boots from the same disk, with the data as it was at the moment of failure.