HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

exo compute block-storage — Manage the Exoscale Block Storage service. More information: <https://community.exoscale.com/product

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandexoscaleexo compute block-storageclimanageblockstorage

Problem

How to use the exo compute block-storage command: Manage the Exoscale Block Storage service. More information: <https://community.exoscale.com/product/storage/block-storage/>.

Solution

exo compute block-storage — Manage the Exoscale Block Storage service. More information: <https://community.exoscale.com/product/storage/block-storage/>.

Create a 20GB Block Storage Volume:
exo compute block-storage create {{volume_name}} --size 20 {{[-z|--zone]}} {{zone}}


List Block Storage Volumes:
exo compute block-storage list


Attach a Block Storage Volume to a Compute instance:
exo compute block-storage attach {{volume_name|id}} {{instance_name|id}} {{[-z|--zone]}} {{zone}}


Forcefully detach a Block Storage Volume (does not require confirmation):
exo compute block-storage detach {{volume_name|id}} {{[-z|--zone]}} {{zone}} {{[-f|--force]}}


Create a snapshot of a Block Storage Volume:
exo compute block-storage snapshot create {{volume_name|id}} --name {{snapshot_name}} {{[-z|--zone]}} {{zone}}


Create a Block Storage Volume from a snapshot:
exo compute block-storage create {{volume_name}} --snapshot {{snapshot_name|id}} {{[-z|--zone]}} {{zone}}


Update an existing Block Storage Volume with a new name and a new volume size of 30GB:
exo compute block-storage update {{volume_name|id}} --size 30 --name {{new_name}}

Code Snippets

Create a 20GB Block Storage Volume

exo compute block-storage create {{volume_name}} --size 20 {{[-z|--zone]}} {{zone}}

List Block Storage Volumes

exo compute block-storage list

Attach a Block Storage Volume to a Compute instance

exo compute block-storage attach {{volume_name|id}} {{instance_name|id}} {{[-z|--zone]}} {{zone}}

Forcefully detach a Block Storage Volume (does not require confirmation)

exo compute block-storage detach {{volume_name|id}} {{[-z|--zone]}} {{zone}} {{[-f|--force]}}

Create a snapshot of a Block Storage Volume

exo compute block-storage snapshot create {{volume_name|id}} --name {{snapshot_name}} {{[-z|--zone]}} {{zone}}

Context

tldr-pages: common/exo compute block-storage

Revisions (0)

No revisions yet.