cfcli create volume

Creates a new volume.

Synopsis

Creates a new volume with specified properties.

Bash
Copy

Examples:

Bash
Copy
FlagShortTypeDefaultDescription
--aclstringSliceACL assigned to the volume.
--sizestring1GiBVolume size in human-readable format (e.g., 3GiB, 1024MiB) (required).
--compressionstringfalseCompression mode, values: true/false.
--placement-affinitystring

Specifies placement affinities for the volume. Must be in the format:

"key:value|key:value|key:value|... " (up to 25 pairs, with each 'value' up to 100 characters).

The supported keys are: 'fd', 'primaryfd' and 'clusterid' where 'clusterid' can be used in cluster-federation to specify the ID of the cluster where the volume must be created.

--help-hboolHelp for volume.
--ip-acl-volumestringSliceIP address ACL assigned to the volume (optional).
--sizestringVolume maximal capacity in human readable format (e.g., 3gib, 1024mib).
--replica-countuint32Number of replicas, values: {1, 2, 3}.
--namestringVolume name.
--project namestringThe project this volume belongs to.
--sector sizeint32Sector size allowed. Currently only 512 and 4096 are allowed.
--source-snapshot-namestringSnapshot name from which to create the volume.
--source-snapshot-UUIDstringSnapshot UUID from which to create the volume.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard