Disks and File Shares
Block storage for VMs and shared file systems follow the same patterns as on AWS. The details that change designs: Google Cloud has regional disks replicated across two zones, Azure has zone-redundant disks, and newer disk types on both clouds let you buy IOPS and throughput separately from capacity.
On AWS this is… Amazon EBS (gp3, io2, st1, snapshots) and Amazon EFS (NFS) plus FSx.
Block storage
| AWS EBS | Azure Managed Disks | Google Persistent Disk / Hyperdisk | |
|---|---|---|---|
| General purpose SSD | gp3 (IOPS/throughput set separately) | Premium SSD, Premium SSD v2 (IOPS/throughput set separately), Standard SSD | pd-balanced, Hyperdisk Balanced (IOPS/throughput set separately) |
| High performance | io2 Block Express | Ultra Disk | pd-extreme, Hyperdisk Extreme |
| Throughput HDD | st1, sc1 | Standard HDD | pd-standard, Hyperdisk Throughput |
| Scope | one AZ | zonal (LRS) or zone-redundant (ZRS) for Premium/Standard SSD | zonal, or regional (synchronously replicated across two zones) |
| Snapshots | incremental, to S3 (regional) | incremental snapshots (regional, optional ZRS) | incremental snapshots (multi-regional or regional storage) |
| Multi-attach | io1/io2 Multi-Attach | shared disks | multi-writer mode (some types) |
| Performance scales with size? | gp2 yes, gp3 no | Premium SSD yes (P10, P20… tiers), v2 no | pd-* yes, Hyperdisk no |
Regional / zone-redundant disks are the interesting difference. On AWS, an EBS volume dies with its AZ, so HA databases on EC2 replicate at the application level. On Google Cloud, a regional persistent disk keeps a synchronous copy in a second zone; if the zone fails you force-attach the disk to a VM in the other zone. Azure ZRS disks do the same across three zones. That makes simple active/passive failover possible without database replication (at the cost of some write latency).
Older disk types that tie performance to size make people over-provision capacity to get IOPS. A model of that:
import math
# Simplified performance rules (ILLUSTRATIVE; check each disk type's documentation)
def pd_balanced(gb): # performance grows with size
return {"iops": min(3000 + 6 * gb, 80000), "mbps": min(140 + 0.28 * gb, 1200)}
def size_for_iops(need_iops):
return math.ceil(max(0, need_iops - 3000) / 6)
need = 15000
gb = size_for_iops(need)
print(f"pd-balanced needs {gb} GB to reach {need} IOPS -> {pd_balanced(gb)}")
print("Hyperdisk Balanced / Premium SSD v2 / gp3: pick 200 GB and provision 15000 IOPS separately")
for size in (100, 500, 2000):
p = pd_balanced(size)
print(f" pd-balanced {size:>5} GB: {p['iops']:>6.0f} IOPS {p['mbps']:>6.0f} MB/s")pd-balanced needs 2000 GB to reach 15000 IOPS -> {'iops': 15000, 'mbps': 700.0}
Hyperdisk Balanced / Premium SSD v2 / gp3: pick 200 GB and provision 15000 IOPS separately
pd-balanced 100 GB: 3600 IOPS 168 MB/s
pd-balanced 500 GB: 6000 IOPS 280 MB/s
pd-balanced 2000 GB: 15000 IOPS 700 MB/s
The formula is a simplified shape, not the exact current limits (which also depend on the VM's own disk limits). The lesson is the design choice: if you need performance but not capacity, use a disk type that provisions them separately.
Creating disks
Sample sessions:
# Azure: a zone-redundant Premium SSD and a Premium SSD v2 with explicit performance
az disk create -g rg-shop-prod-data -n disk-pg-data --size-gb 512 --sku Premium_ZRS
az disk create -g rg-shop-prod-data -n disk-fast --size-gb 200 --sku PremiumV2_LRS --zone 1 \
--disk-iops-read-write 15000 --disk-mbps-read-write 500
az vm disk attach -g rg-shop-prod-data --vm-name vm-db-1 --name disk-fast
# Google Cloud: a regional pd-balanced disk across two zones, and a Hyperdisk Balanced
gcloud compute disks create pg-data --region=europe-west1 \
--replica-zones=europe-west1-b,europe-west1-c --type=pd-balanced --size=512GB
gcloud compute disks create fast --zone=europe-west1-b --type=hyperdisk-balanced \
--size=200GB --provisioned-iops=15000 --provisioned-throughput=500
gcloud compute instances attach-disk db-1 --disk=fast --zone=europe-west1-bShared file systems
| AWS | Azure | Google Cloud | |
|---|---|---|---|
| Managed NFS | EFS | Azure Files NFS shares (Premium), Azure NetApp Files | Filestore (Basic, Zonal, Regional tiers) |
| Managed SMB | FSx for Windows File Server | Azure Files SMB shares | NetApp Volumes, third-party |
| High-performance / NetApp | FSx for ONTAP, FSx for Lustre | Azure NetApp Files, Azure Managed Lustre | Google Cloud NetApp Volumes, Managed Lustre |
| Mount object storage as files | Mountpoint for S3 | BlobFuse2, NFS 3.0 on Blob | Cloud Storage FUSE |
| Kubernetes | EFS CSI driver | Azure Files CSI driver (azurefile-csi storage classes) |
Filestore CSI driver, Cloud Storage FUSE CSI driver |
Azure Files lives inside a storage account (a FileStorage account for premium shares), which brings back the account-level settings from the previous lesson: redundancy, network rules and key access.
Test yourself
What does a Google Cloud regional persistent disk give you that a single EBS volume does not?
- Faster IOPS
- Synchronous replication across two zones in the region
- Global access
- Free snapshots
You need 15,000 IOPS on a 200 GB disk. Which kind of disk avoids over-provisioning capacity?
- Disks whose performance scales with size
- Disks that provision IOPS and throughput separately (Premium SSD v2, Hyperdisk, gp3)
- Standard HDD
- Ephemeral disks
What is the Google Cloud managed NFS service?
- Cloud Storage
- Filestore
- Persistent Disk
- Bigtable