Skip to main content
openstack volume create

Create new volume

Options​

OptionDescription
<name>Volume name
--size <size>Volume size in GB (required unless --snapshot or
--source specified)
--type <volume-type>Set the type of volume
--image <image>Use <image> as source of volume (name or ID)
--snapshot <snapshot>Use <snapshot> as source of volume (name or ID)
--source <volume>Volume to clone (name or ID)
--description <description>Volume description
--availability-zone <availability-zone>Create volume in <availability-zone>
--consistency-group consistency-group>Consistency group where the new volume belongs to
--property <key=value>Set a property to this volume (repeat option to set multiple properties)
--hint <key=value>Arbitrary scheduler hint key-value pairs to help creating a volume. Repeat the option to set multiple hints. 'same_host' and 'different_host' get values appended when repeated, all other keys take the last given value
--bootableMark volume as bootable
--non-bootableMark volume as non-bootable (default)
--read-onlySet volume to read-only access mode
--read-writeSet volume to read-write access mode (default)
--backup <backup>Restore backup to a volume (name or ID) (supported by
--os-volume-api-version 3.47 or later)
--remote-source <key=value>The attribute(s) of the existing remote volume (admin required) (repeat option to specify multiple attributes, e.g.: '--remote-source source- name=test_name --remote-source source-id=test_id')
--host <host>Cinder host on which the existing volume resides; takes the form: host@backend-name#pool. This is only used along with the --remote-source option.
--cluster <cluster>Cinder cluster on which the existing volume resides; takes the form: cluster@backend-name#pool. This is only used along with the --remote-source option. (supported by --os-volume-api-version 3.16 or above)