Block Storage
Attach additional SSD block storage volumes to your instances. Volumes persist independently — they survive instance deletion and can be moved between instances.
Create a Volume
POST /v1/volumes
{
"name": "data-vol",
"region": "vh-us-south-1",
"size_gb": 100,
"filesystem": "ext4" // ext4 | xfs | none (raw)
}
Attach to an Instance
POST /v1/volumes/vol_abc123/attach
{ "instance_id": "inst_def456" }
# The volume appears as /dev/vdb inside the instance
# If no filesystem was set at creation, format it:
mkfs.ext4 /dev/vdb
mkdir -p /mnt/data
mount /dev/vdb /mnt/data
# Add to /etc/fstab for persistence across reboots:
echo "/dev/vdb /mnt/data ext4 defaults 0 2" >> /etc/fstab
Resize a Volume
You can increase a volume's size at any time without downtime.
PATCH /v1/volumes/vol_abc123
{ "size_gb": 200 }
# Then resize the filesystem inside the instance:
resize2fs /dev/vdb # ext4
# or: xfs_growfs /mnt/data # xfs
⚠️
Volume sizes can only be increased, not decreased. Plan capacity carefully.
Detach & Move
# Unmount inside the instance first
umount /mnt/data
# Then detach via API
POST /v1/volumes/vol_abc123/detach
# Reattach to a different instance
POST /v1/volumes/vol_abc123/attach
{ "instance_id": "inst_new789" }
Pricing
| Type | Price |
|---|---|
| SSD Block Storage | $0.10 / GB / month |
| Volume Snapshots | $0.02 / GB / month |