Storage¶
Block storage gives you volumes: disks you can attach to an instance and keep after the instance is deleted. Open Storage in the Console menu.
Create a volume¶
- Open Storage > Volumes > Create Volume.
- Available Zone: select
nova. - Data Source Type: select Blank Volume. The other choices create the volume from an image or from a volume snapshot.
- Volume Type: select
__DEFAULT__. - Capacity (GiB): set the size, from 1 to 1000 GiB.
- Name: enter a name. It must start with a letter, be 1 to 128 characters long, and use only letters, numbers and these characters:
- ' _ ( ) [ ] . : ^ - Leave Count as
1to create one volume, then confirm.
The new volume appears in the list. When its status is Available, it is ready to attach.
Attach a volume¶
- Open Storage > Volumes.
- In the volume's row menu, choose Attach and pick an instance.
Use the volume inside the VM¶
Inside the VM the volume appears as a new disk, for example /dev/vdb. Format and mount it the first time:
To mount it on every boot, add it to /etc/fstab using its UUID (blkid /dev/vdb).
Attach a volume to a container¶
A volume can also hold a container's data, so the data survives when the container is recreated. You choose the volume when you create the container; the Attach button on the Volumes page is for instances only.
- Open Container > Containers > Create Container and go to the Volumes step.
- Set Type:
- Existing Volume to use a volume you already created. Choose it under Source.
- New Volume to create one for this container. Set its Size (GiB).
- Set Destination to the folder inside the container where the volume is mounted, for example
/data. - Finish the remaining steps and confirm.
Important
A container's volume is chosen at creation. The Console does not attach a volume to a container that already exists. To add one, create a new container with the volume in its Volumes step.
Warning
Containers created before November 2026 with an Existing Volume did not use the volume. An earlier Console version stored that container's data in a temporary folder instead, and the data was lost when the container was deleted. If you created such a container, copy its data out and create it again. To check a container, open Storage > Volumes: the volume's status should be In-use.
Extend a volume¶
In Storage > Volumes, choose Extend Volume in the volume's row menu and enter the new size.
Important
A volume can only be extended. You can make a volume larger, but you cannot decrease its size. Choose the new size carefully.
Then grow the filesystem inside the VM, for example sudo resize2fs /dev/vdb for ext4. For an in-use volume that cannot be extended online, detach it first.
Detach and delete¶
- Detach in the row menu disconnects the volume from the instance. Unmount it inside the VM first.
- Delete removes the volume permanently.
Other volume actions¶
From the volume's row menu in Storage > Volumes:
| I want to... | Use |
|---|---|
| Copy a volume | Clone Volume. Makes an independent copy with a new name and size |
| Turn a volume into an image | Create Image. The image appears under Compute > Images |
| Launch an instance from a volume | Create Instance. The volume becomes the system disk. Mark it Bootable first if it was not created from an image |
| Put a volume back to an earlier snapshot | Restore From Snapshot. The volume must be detached |
| Move a volume to another project | Create Transfer, then give the Transfer ID and Auth Key to the other project. They accept it with Accept Volume Transfer on their Volumes page |
| Rename it or edit the description | Edit |
Snapshots and backups¶
A snapshot is a point-in-time copy kept alongside the volume. A backup is a separate copy stored in the backup service.
| I want to... | Use |
|---|---|
| Take a snapshot | In Storage > Volumes, Create Volume Snapshot. It appears under Storage > Volume Snapshots |
| Make a new volume from a snapshot | In Storage > Volume Snapshots, Create Volume |
| Take a backup | In Storage > Volumes, Create Volume Backup. It appears under Storage > Volume Backups |
| Restore a backup | In Storage > Volume Backups, Restore Backup, or Create Volume to make a new volume from it |
For a consistent backup, pause writes to the volume (or stop the instance) first.
Warning
Backups are on the same disk as the data. Volume backups are stored on the same physical disk as the volumes. They protect you from accidents such as deleting a volume, not from the disk failing. Keep an off-cloud copy of data you cannot lose.
Database volumes are managed by the Databases service. Use its own backup feature rather than backing up those volumes directly.
Limits¶
Volume count and total size are limited per project. The Home page shows your usage against your quota. See Quotas and limits.