Skip to main content
openstack volume set

Set volume properties

Options​

OptionDescription
<volume>Volume to modify (name or ID)
--name <name>New volume name
--size <size>Extend volume size in GB
--description <description>New volume description
--no-propertyRemove all properties from <volume> (specify both
--no-property and --property to remove the currentproperties before setting new properties.)
--property <key=value>Set a property on this volume (repeat option to set multiple properties)
--image-property <key=value>Set an image property on this volume (repeat option to set multiple image properties)
--state <state>New volume state ("available", "error", "creating", "deleting", "in-use", "attaching", "detaching", "error_deleting" or "maintenance") (admin only) (This option simply changes the state of the volume in the database with no regard to actual status, exercise caution when using)
--attachedSet volume attachment status to "attached" (admin only) (This option simply changes the state of the volume in the database with no regard to actual status, exercise caution when using)
--detachedSet volume attachment status to "detached" (admin only) (This option simply changes the state of the volume in the database with no regard to actual status, exercise caution when using)
--type <volume-type>New volume type (name or ID)
--migration-policy <migration-policy>Migration policy while re-typing volume ("never" or "on-demand", default is "never" ) (available only when
--type option is specified)
--bootableMark volume as bootable
--non-bootableMark volume as non-bootable
--read-onlySet volume to read-only access mode
--read-writeSet volume to read-write access mode