icmcli create volume

AI Tools

Creates a new volume.

Synopsis

Creates a new volume with specified properties.

icmcli create volume [flags]

Examples

#create a volume in project: 'my-project' with volume name: 'vol' maximum capacity: '10gib', acl: 'ALLOW_ANY', and replica count: '3': icmcli create volume --project-name my-project --name vol --size 10gib --replica-count 3 --acl ALLOW_ANY #create a volume in cluster 'clus-314': icmcli create volume --placement-affinity clusterid:clus-314 --project-name my-project --name vol --size 10gib --replica-count 3 --acl ALLOW_ANY #create a volume in 'server42' primary failure domain under cluster 'clus-314': icmcli create volume --placement-affinity clusterid:clus-314|primaryfd:server42 --project-name my-project --name vol --size 10gib --replica-count 3 --acl ALLOW_ANY

Flag

Short

Type

Default

Description

--acl


stringSlice


ACL assigned to the volume.

--compression


string


Compression mode, values: 'true'/'false'.

--help

-h

bool


Help for volume.

--ip-acl


stringSlice


IP address ACL assigned to the volume.

--min-replicas


uint32


Minimum number of replicas. Unimplemented: must specify 0 or omit.

--name


string


Volume name.

--placement-affinity


string


Specifies placement affinities for the volume. Must be in the format: "key:value. The supported keys are: 'fd', 'primaryfd' and 'clusterid' where 'clusterid' can be used in intelligent-cluster-management to specify the ID of the cluster where the volume must be created.

--project-name


string


The project this volume belongs to.

--replica-count


uint32


Number of replicas, values: {1, 2, 3}.

--sector-size


int32


Sector Size allowed. Currently only 512 and 4096 are allowed.

--size


string


Volume maximal capacity in human-readable format (e.g., 3gib, 1024mib).

--source-snapshot-name


string


Snapshot Name from which to create the volume.

--source-snapshot-uuid


string


Snapshot UUID from which to create the volume.

Response Type

Returns the created Volume object (see get volume for its fields).