Skip to content

DigitalOcean Volumes (Block Storage)

Highly available SSD block storage that can be attached to Droplets for persistent data storage.

Documentation

Quick Start

# Create volume
doctl compute volume create db-data \
  --region nyc3 \
  --size 100GiB

# Attach to Droplet
doctl compute volume-action attach VOLUME_ID DROPLET_ID

# Format and mount
sudo mkfs.ext4 /dev/disk/by-id/scsi-0DO_Volume_db-data
sudo mkdir -p /mnt/db-data
sudo mount /dev/disk/by-id/scsi-0DO_Volume_db-data /mnt/db-data