Skip to main content

dtctl volume create

Usage​

dtctl volume create [flags]

Aliases​

c

Description​

Create a block storage volume with a size and storage policy (see dtctl volume storage-policies). Pass --image-ref to create a bootable volume from an image.

Example​

# Create a 20 GB data volume
dtctl volume create --name data-1 --size 20 --storage-policy default

Response​

In text output (the default), this command returns the following columns: ID, Name, Status, Storage Policy, Size, Bootable, Type, Disk Serial Number.

Pass --output json to get the full response object instead.

Flags​

OptionDescription
--image-ref, -rImage ID to create a bootable volume from
--name, -nName of the volume (required)
--size, -sSize of the volume in GB (required)
--storage-policy, -pStorage policy name, e.g. HI-IOPS (see 'dtctl volume storage-policies'). The name, not the id (required)
CommandDescription
dtctl volume listList volumes
dtctl volume showShow a volume
dtctl volume updateUpdate a volume
dtctl volume deleteDelete a volume
dtctl volume actionPerform a volume action
dtctl volume attachAttach a volume to a VM
dtctl volume cloneClone a volume
dtctl volume detachDetach a volume from a VM
dtctl volume snapshotsList a volume's snapshots
dtctl volume storage-policiesList storage policies

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text