All guides
Home Glossary Block storage
Term

Block storage

A type of networked storage that provides data access as a set of fixed-size logical blocks without a file system layer.

Block storage is a type of networked storage that provides data access as a set of fixed-size logical blocks without a file system layer. Unlike file-based storage, it does not organize information into a folder hierarchy; instead, data is split into uniform chunks, each assigned a unique Logical Block Address (LBA). This low-level architecture allows an operating system or database engine to read and write directly to raw storage capacity without file system overhead.

How it works

When attached to a server or virtual machine, a block volume appears to the operating system as a standard local drive. Because the storage array handles only raw blocks, the server administrator retains full control over how that space is initialized, partitioned, and formatted with file systems such as ext4, XFS, ZFS, or NTFS. When an application updates a record, only the specific modified blocks are rewritten rather than an entire file.

Data travels between the compute host and the storage hardware over dedicated storage networking protocols—most commonly iSCSI, Fibre Channel, or NVMe-oF (NVMe over Fabrics). This architecture makes block storage ideal for latency-sensitive workloads, including virtual machine boot drives, transactional relational databases (PostgreSQL, MySQL, SQL Server), and clustered setups that pool multiple volumes—a concept explored in DIY RAID Massif: Building a High-Performance Storage Array.

Example

After attaching an unformatted cloud block volume (typically exposed as /dev/sdb or /dev/nvme1n1 on Linux), an administrator formats it with a file system and mounts it for application use:

# Format the raw block device with ext4
sudo mkfs.ext4 -F /dev/sdb

# Create a mount point and attach the volume
sudo mkdir -p /mnt/database-data
sudo mount /dev/sdb /mnt/database-data

Once mounted, PostgreSQL or another database engine can write directly to /mnt/database-data while the underlying volume can be resized or snapshotted independently of the server's root disk.

What matters when choosing a server or hosting

  • IOPS and throughput limits: Block performance is measured in Input/Output Operations Per Second (IOPS) and data transfer rate (MB/s). Check whether your provider throttles IOPS based on volume size or lets you provision performance independently.
  • Underlying media and protocol: Enterprise NVMe SSDs connected via NVMe-oF deliver far lower latency than spinning disks or standard iSCSI over congested Ethernet networks.
  • Network isolation: Verify that storage traffic runs on a dedicated network interface or private VLAN so heavy disk I/O does not saturate your server's public bandwidth.
  • Snapshot and replication support: Look for point-in-time incremental snapshots and cross-zone replication to simplify backups and disaster recovery.

Common mistakes

  • Attaching one volume to multiple servers simultaneously: Standard file systems like ext4 and NTFS are not cluster-aware; mounting a single block device on two active hosts at once will cause immediate data corruption unless you use a clustered file system such as GFS2 or OCFS2.
  • Forgetting persistent mount entries: Manually mounting a volume with mount does not survive a reboot. Always add the device's UUID to /etc/fstab using the nofail option so a missing volume does not stall system startup.
  • Confusing block storage with object storage: Block storage requires an attached compute instance and cannot be accessed directly over HTTP APIs for serving static web assets.

FAQ

How is block storage different from object storage?

Block storage acts like a raw hard drive attached to a single server, offering low-latency random read/write access for databases and OS boot disks. Object storage manages files as self-contained objects with metadata accessed over HTTP APIs, making it better suited for backups, media archives, and static assets.

Can I resize a block storage volume without losing data?

Yes. Most hosting platforms allow you to expand a volume online, after which you run a file system utility such as resize2fs or xfs_growfs on the server to claim the new space. Shrinking volumes, however, is rarely supported safely.

Does block storage include built-in redundancy?

In cloud and managed hosting environments, providers typically replicate blocks across multiple physical drives behind the scenes. On bare-metal setups, redundancy is usually handled on the host using software or hardware RAID.

All glossary terms

Glossary

Related terms

Full glossary

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.