How to Increase Your Volume Size

Increasing your Volume Size

Volumes are the storage space of your instances. Each Virtual Cloud Instance requires a defined amount of local storage. Scaleway instances benefit from local NVMe SSD volumes.

Also available are Block Storage volumes, which are physically separated from the cloud instances and connected using the internal network connection. Block storage volumes are replicated three times and provide stable & guaranteed IOPS, which makes them ideal for mission-critical data.

With Block Storage it is possible to expand the volume size of an instance.

1 . On the Scaleway console Instances page, click on the Volumes tab.

2 . A list of your volumes displays. Click on beside the volume you wish to increase size of and then on Increase Volume.

3 . Click the + sign to increase the size according to your preference and confirm by clicking Increase your Volume.

Note: Currently, only the increase of a Block Storage volume is supported. The maximum size of a Block volume is 10 TB.

Increasing Volume via the Scaleway API

To increase the size of a volume, first inspect the volume and verify its name, size and if the type is b_ssd by running the following request:

curl -q -H "X-Auth-Token: $SECRET_KEY" -X GET https://api.scaleway.com/instance/v1/zones/<REGION>/volumes/<VOLUME_ID>

Replace <REGION> with the geographical region of the cloud instance. This value can either be fr-par-1 for instances located in Paris, or nl-ams-1 for instances located in Amsterdam. Replace <VOLUME_ID> with the unique identifier of the volume, which can be found on the Scaleway console under Instances > Volumes > More Info (for the selected volume).

The following response should appear as an output:

{"volume": {"creation_date": "2020-06-02T08:04:50.094118+00:00", "server": null, "id": "VOLUME_ID", "size": 25000000000, "name": "myAwesomeVolume", "zone": "<REGION>", "export_uri": null, "volume_type": "b_ssd", "modification_date": "2020-06-02T08:04:50.094118+00:00", "state": "available", "organization": "<ORGANIZATION_ID>"}}

To modify the volume size, run the request below:

curl https://api.scaleway.com/instance/v1/zones/<REGION>/volumes/<VOLUME_ID> -H "X-Auth-Token: $SECRET_KEY" -X PATCH -H 'Content-Type: application/json;charset=utf-8' --data '{ "name":"new_name", "size":26000000000 }'

Replace <REGION>and <VOLUME_ID> following the guidelines mentioned previously and replace the existing size value with the new one.

Note: You can use the same request to change the name of you volume by replacing new_name by another of your choice. If you do not wish to change the volume name, erase "name":"new_name",from the request before running it.

A response appears confirming the changes:

{"volume": {"creation_date": "2020-06-02T08:04:50.094118+00:00", "server": null, "id": "<VOLUME_ID>", "size": 26000000000, "name": "new_name", "zone": "<REGION>", "export_uri": null, "volume_type": "b_ssd", "modification_date": "2020-06-02T08:08:27.385208+00:00", "state": "resizing", "organization": "<ORGANIZATION_ID"}}

Discover the Cloud That Makes Sense