What Is Block Storage? How to Distinguish VM Disks from Temporary Storage
Explains block volumes, persistent versus ephemeral disks, snapshots, workload fit, shared access, and the cost checks that matter.
What Is Block Storage? How to Distinguish VM Disks from Temporary Storage
Block storage is disk-like storage that addresses data in blocks. When attached to a cloud VM, the guest operating system can initialize it, create a filesystem, and use it like a disk. This makes it useful for boot volumes and frequently updated data such as databases. But not every disk shown on a VM is durable: first determine whether the volume survives independently of the VM or is temporary storage attached to its host.
How does a block volume become a filesystem?
The provider creates and attaches a volume; the guest OS is responsible for treating it like a disk, including partitioning, creating a filesystem, and mounting it. Attachment alone does not make data appear as files. A new blank disk may need initialization and formatting. Formatting a disk that already contains data can destroy access to that data, so verify the device and contents before changing it. An OS disk contains boot files; a separate data disk can hold applications and user data.
For example, separating a database VM's OS disk from its data volume can let an operator replace or reinstall the VM while preserving the separate volume for reattachment. AWS says EBS volumes can persist independently of an EC2 instance's runtime, and Google says Persistent Disk volumes can be detached from VMs. Actual retention still depends on deletion settings and product policy. Detachable does not mean automatically backed up.
Persistent and temporary disks have different lifecycles
A persistent block volume is designed to retain data when a VM stops or is deleted, subject to its settings and the provider's policy. It can have a separate lifecycle, and charges may continue while the VM is stopped or the volume is unattached. AWS EBS documents volume persistence independent of EC2 runtime; Google Cloud lets durable volumes be detached and retained after VM deletion.
A local temporary disk provides short-lived storage close to the physical host. It can suit caches and scratch files that can be recreated. Google Cloud warns that Local SSD temporary block-storage data can be lost when a VM stops, suspends, restarts, crashes, or fails. Names and behavior differ by provider, so check the exact disk type. Do not keep the only copy of important data on ephemeral storage.
| Type | Data lifecycle | Suitable data |
|---|---|---|
| Persistent volume | Can be retained separately from the VM; verify settings and policy | Boot system, database, business data |
| Local temporary disk | May disappear on VM movement, stop, or failure | Cache, temporary processing, reproducible data |
| Snapshot | Point-in-time volume copy kept separately | Recovery point, creating a new volume, part of a backup workflow |
A snapshot helps but is not a complete backup plan. Azure describes managed-disk snapshots as read-only copies independent of the source disk; AWS EBS snapshots also persist independently. A snapshot taken while an application is writing may not be consistent from the application's perspective. For a database, review the provider and database backup procedures, write-quiescing or application-consistency options, and test restoration.
How should you weigh performance, sharing, and cost?
Choose a disk type based on latency, IOPS (input/output operations per second), throughput, and capacity. A database with many small random operations differs from analytics that scans large files sequentially. A faster disk does not guarantee a faster application: VM CPU and network limits, queue depth, filesystem, and write pattern can be bottlenecks. Measure representative workloads and compare results with cost.
A feature that attaches a volume to multiple VMs does not mean an ordinary filesystem will coordinate concurrent writes safely. Provider-specific options such as AWS EBS Multi-Attach or Azure shared disks can require supported filesystems, cluster managers, and locking. Do not configure multi-attach without following the service's constraints. A shared file service may fit better if servers need to work with the same data through file paths.
Charges may depend on provisioned capacity, disk type and performance tier, snapshot storage, I/O requests, or transfer. Oversized disks, detached volumes left behind after a VM is stopped, and old snapshots can keep accruing cost. Check the current price details for region, size, performance settings, backups, snapshots, and deletion behavior.
Which storage model fits?
Consider block storage when an operating system must manage a disk, such as a VM boot drive, database volume, or application disk that expects a filesystem. Object storage may fit images, logs, or backups accessed as whole objects through an API. File storage may fit directories and paths shared among multiple servers. Choose by persistence, eligible VM and zone, sharing semantics, filesystem responsibility, snapshot recovery, and total cost—not just by whether the product is called a disk.
References
[Amazon EBS volumes](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes.html)
[Amazon EBS and EC2 storage](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/storage_ebs.html)
[Google Cloud block storage types](https://docs.cloud.google.com/compute/docs/disks)
[Google Cloud Persistent Disk](https://docs.cloud.google.com/compute/docs/disks/persistent-disks)
[Azure managed disks overview](https://learn.microsoft.com/en-us/azure/virtual-machines/managed-disks-overview)
[Azure disk types for VMs](https://learn.microsoft.com/en-us/azure/virtual-machines/disks-types)
[Sharing Azure managed disks](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/disks-shared)