Cloud Platform
Disks
Last updated 2026-11-05
Disks
A disk is block storage. It is a resource of its own: it can exist without being attached, and outlives an instance unless it was created to be deleted with it.
Creating
| Setting | Meaning |
|---|---|
| Name | A name you choose. |
| Size | In GiB. |
| Disk type | The storage pool. Pools differ in performance; the list shows each pool's maximum IOPS. |
| Image | A public image to start from, or empty for a blank disk. |
A disk made from an image must be at least as large as the image requires.
Attaching
Attach a disk to an instance in the same zone, with a device index; one disk of an instance is its boot disk. Disks can be attached and detached while the instance runs. If the guest keeps the disk open the attachment reports HotplugFailed in its conditions.
Growing
A disk can be resized to a larger size, never smaller. After growing, extend the partition and the file system inside the guest:
# device names may differ in your guest; check with lsblk
sudo growpart /dev/vda 1
sudo resize2fs /dev/vda1 # ext4; use xfs_growfs for xfsUsing a new disk
lsblk
sudo mkfs.ext4 /dev/vdb
sudo mkdir -p /data
sudo mount /dev/vdb /data
echo '/dev/vdb /data ext4 defaults,nofail 0 2' | sudo tee -a /etc/fstabDeleting
Deleting a disk removes its data for good. A disk that is attached to a running instance cannot be deleted: detach it first. Disks created together with an instance can be set to delete with the instance.
Billing Disks are billed while they exist, attached or not, and also while the instance is stopped. See Pricing.