Learn how to increase the capacity of your Vultr Block Storage volume to accommodate growing data needs.
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, CLI or Terraform.
80 GB
.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.
Open your Terraform configuration for the existing Block Storage resource.
Update the size_gb
argument with the new volume size.
resource "vultr_block" "remote_block_storage" {
label = "Remote-Block-Storage"
region = "ewr"
block_type = "high_perf"
size_gb = 160 # Updated size
}
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
No comments yet.