Block and File Storage on GCP: Persistent Disk, Hyperdisk, Local SSD, Filestore and Choosing the Right Storage
Three Kinds of Storage
| Kind | How you use it | GCP product |
|---|---|---|
| Block | A raw disk attached to a VM | Persistent Disk, Hyperdisk, Local SSD |
| File | A shared folder over NFS | Filestore (and NetApp Volumes) |
| Object | Files accessed by API or URL | Cloud Storage |
Persistent Disk and Hyperdisk
| Type | Notes | Use |
|---|---|---|
| pd-standard | HDD | Cheap sequential and backup data |
| pd-balanced | SSD, balanced price and speed (default for many) | General workloads |
| pd-ssd | High IOPS SSD | Databases and busy apps |
| pd-extreme / Hyperdisk Extreme | Very high IOPS | Large databases |
| Hyperdisk Balanced / Throughput / ML | Performance configured separately from size | Tune IOPS and throughput independently, big data and ML |
- Disks are network storage, separate from the VM. They survive VM deletion if you choose to keep them
- Disks are encrypted by default, with CMEK optional
- You can resize a disk while running (grow only)
- A regional persistent disk replicates data across two zones for failover of stateful apps
bash
gcloud compute disks create data-disk --size=200GB --type=pd-balanced --zone=asia-south1-a
gcloud compute instances attach-disk web-1 --disk=data-disk --zone=asia-south1-a
gcloud compute disks resize data-disk --size=500GB --zone=asia-south1-a
gcloud compute disks create data-regional --size=200GB --type=pd-ssd --region=asia-south1 --replica-zones=asia-south1-a,asia-south1-b
Snapshots and Images
- Snapshots are incremental backups of a disk, stored in Cloud Storage and usable in any region
- Snapshot schedules automate backups with retention
- Images are bootable templates. Machine images capture a whole VM (disks, metadata)
- For disaster recovery, store snapshots in multi-region locations
bash
gcloud compute resource-policies create snapshot-schedule daily-snap --region=asia-south1 --max-retention-days=14 --daily-schedule --start-time=02:00
gcloud compute disks add-resource-policies data-disk --resource-policies=daily-snap --zone=asia-south1-a
gcloud compute snapshots create data-snap-1 --source-disk=data-disk --source-disk-zone=asia-south1-a
Local SSD
- Physically attached to the host. Extremely fast, low latency
- Data is lost when the VM stops or the host fails, so use it for cache, scratch and temporary data only
Filestore
| Tier | Use |
|---|---|
| Basic HDD / SSD | Simple file shares and small workloads |
| Zonal / Regional / Enterprise | Higher performance and availability (Enterprise offers regional HA) |
- Fully managed NFS share for many VMs and GKE pods at once
- Good for shared content, home folders, media rendering and lift-and-shift apps needing a file system
- Connected through private IP in your VPC
bash
gcloud filestore instances create shared-nfs --zone=asia-south1-a --tier=BASIC_SSD --file-share=name=share1,capacity=2560GB --network=name=prod-vpc
sudo mount -t nfs 10.0.0.2:/share1 /mnt/share
Decision Table
| Need | Choose |
|---|---|
| Images, backups, data lake, static site | Cloud Storage |
| Boot and data disk for one VM | Persistent Disk / Hyperdisk |
| Very fast temporary scratch space | Local SSD |
| Shared POSIX file system for many VMs | Filestore |
| Stateful VM that must survive a zone failure | Regional persistent disk (or regional MIG with replicated database) |
| Mount a bucket like a folder | Cloud Storage FUSE |
| Big parallel file system for HPC and AI | Managed Lustre |
Practice
- Create and attach a disk, format it and mount it
- Resize the disk while the VM runs
- Create a daily snapshot schedule
- Compare cost of 1 TB on pd-standard, pd-balanced and Cloud Storage Standard in the calculator
Conclusion
Use Persistent Disk or Hyperdisk for VM disks, Local SSD for temporary speed, Filestore for shared files and Cloud Storage for objects. Back up disks with snapshot schedules and use regional disks for cross-zone failover.
Quick Summary: three kinds; disks; snapshots; local SSD; Filestore; decision.

