Resizing a Vultr Block Storage volume allows you to scale up your storage needs when your data grows. For instance, you can scale the storage size from 80 GB to 160 GB to create more room for business assets like databases, images, audio, and video. You can't shrink a Vultr Block Storage volume to a smaller size unless you create a new instance and copy over the files.
Follow this guide to resize a Vultr Block Storage volume using the Vultr Customer Portal, API, and CLI.
Navigate to Products and select Cloud Storage.
Click Block Storage. Then, select the target Vultr Block Storage volume.
Click the current storage size. For instance, 80 GB
.
Enter a new size in GB. For instance, 160
. Type YES to confirm and click Continue.
Send a GET
request to the List Block Storages endpoint and note the Vultr Block Storage volume ID.
$ curl "https://api.vultr.com/v2/blocks" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH
request to the Update Block Storage endpoint, specify a Vultr Block storage volume ID, and a new size in GB.
$ curl "https://api.vultr.com/v2/blocks/block_storage_id" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"size_gb": 160
}'
Visit the Update Block Storage endpoint to view additional attributes to add to your request.
List all Vultr Block Storage volumes and note the ID. For instance, 6856bb78-e67b-416c-8fc1-2473c66fa016
.
$ vultr-cli block-storage list
Specify a Vultr Block Storage volume ID and the new storage size in GB.
$ vultr-cli block-storage resize block_storage_id \
--size=160
Run vultr-cli block-storage resize --help
to view all options.