Block Storage v1, v2
Create new volume
os volume create
--size <size>
[--type <volume-type>]
[--image <image>]
[--snapshot <snapshot>]
[--source <volume>]
[--description <description>]
[--user <user>]
[--project <project>]
[--availability-zone <availability-zone>]
[--property <key=value> [...] ]
<name>
Volume size in GB
Set the type of volume
Select <volume-type> from the available types as shown by volume type list.
Use <image> as source of volume (name or ID)
This is commonly used to create a boot volume for a server.
Use <snapshot> as source of volume (name or ID)
Volume to clone (name or ID)
Volume description
Specify an alternate user (name or ID)
Specify an alternate project (name or ID)
Create volume in <availability-zone>
Set a property on this volume (repeat option to set multiple properties)
Volume name
The --project and --user options are typically only useful for admin users, but may be allowed for other users depending on the policy of the cloud and the roles granted to the user.
Delete volume(s)
os volume delete
[--force | --purge]
<volume> [<volume> ...]
Attempt forced removal of volume(s), regardless of state (defaults to False)
Remove any snapshots along with volume(s) (defaults to False)
Volume version 2 only
Volume(s) to delete (name or ID)
List volumes
os volume list
[--project <project> [--project-domain <project-domain>]]
[--user <user> [--user-domain <user-domain>]]
[--name <name>]
[--status <status>]
[--all-projects]
[--long]
Filter results by <project> (name or ID) (admin only)
Volume version 2 only
Domain the project belongs to (name or ID).
This can be used in case collisions between project names exist.
Volume version 2 only
Filter results by <user> (name or ID) (admin only)
Volume version 2 only
Domain the user belongs to (name or ID).
This can be used in case collisions between user names exist.
Volume version 2 only
Filter results by volume name
Filter results by status
Include all projects (admin only)
List additional fields in output
Set volume properties
os volume set
[--name <name>]
[--size <size>]
[--description <description>]
[--property <key=value> [...] ]
[--image-property <key=value> [...] ]
[--state <state>]
<volume>
New volume name
Extend volume size in GB
New volume description
Set a property on this volume (repeat option to set multiple properties)
Set an image property on this volume (repeat option to set multiple image properties)
Image properties are copied along with the image when creating a volume using --image. Note that these properties are immutable on the image itself, this option updates the copy attached to this volume.
Volume version 2 only
New volume state (“available”, “error”, “creating”, “deleting”, “in-use”, “attaching”, “detaching”, “error_deleting” or “maintenance”)
Volume version 2 only
Volume to modify (name or ID)
Unset volume properties
os volume unset
[--property <key>]
[--image-property <key>]
<volume>
Remove a property from volume (repeat option to remove multiple properties)
Remove an image property from volume (repeat option to remove multiple image properties)
Volume version 2 only
Volume to modify (name or ID)