Block and File Storage on GCP: Persistent Disk, Hyperdisk, Local SSD, Filestore and Choosing the Right Storage

Google Cloud Platform Architect 50 min min read Updated: Nov 17, 2026 Intermediate
Block and File Storage on GCP: Persistent Disk, Hyperdisk, Local SSD, Filestore and Choosing the Right Storage
Intermediate Topic 2 of 3

Three Kinds of Storage

KindHow you use itGCP product
BlockA raw disk attached to a VMPersistent Disk, Hyperdisk, Local SSD
FileA shared folder over NFSFilestore (and NetApp Volumes)
ObjectFiles accessed by API or URLCloud Storage

Persistent Disk and Hyperdisk

TypeNotesUse
pd-standardHDDCheap sequential and backup data
pd-balancedSSD, balanced price and speed (default for many)General workloads
pd-ssdHigh IOPS SSDDatabases and busy apps
pd-extreme / Hyperdisk ExtremeVery high IOPSLarge databases
Hyperdisk Balanced / Throughput / MLPerformance configured separately from sizeTune 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

TierUse
Basic HDD / SSDSimple file shares and small workloads
Zonal / Regional / EnterpriseHigher 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

NeedChoose
Images, backups, data lake, static siteCloud Storage
Boot and data disk for one VMPersistent Disk / Hyperdisk
Very fast temporary scratch spaceLocal SSD
Shared POSIX file system for many VMsFilestore
Stateful VM that must survive a zone failureRegional persistent disk (or regional MIG with replicated database)
Mount a bucket like a folderCloud Storage FUSE
Big parallel file system for HPC and AIManaged Lustre

Practice

  1. Create and attach a disk, format it and mount it
  2. Resize the disk while the VM runs
  3. Create a daily snapshot schedule
  4. 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.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators