For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create a Volume

Usage

ionosctl compute volume create [flags]

Aliases

For volume command:

[v vol]

For create command:

[c]

Description

Create a block storage Volume inside a Virtual Data Center. This does NOT attach the Volume to a Server; attach it afterwards with ionosctl compute server volume attach.

Storage tier (--type) determines the price/performance profile and is fixed for the life of the Volume:

  • HDD - spinning disks, lowest cost. Best for backups, archives and cold storage. (~1,100 IOPS, up to 2,500 burst.)

  • SSD Standard - general-purpose flash. ~40 read / 30 write IOPS per GB, up to 24,000/18,000 IOPS per volume.

  • SSD Premium - high-performance flash for databases and latency-sensitive workloads. ~75 read / 50 write IOPS per GB, up to 45,000/30,000 IOPS per volume.

  • DAS - Direct-Attached NVMe storage that ships with Cube instances. It is bound to the Cube, its size is fixed by the Cube template, and it cannot be resized, detached or deleted independently. --type also accepts the performance classes ESSENTIAL, BALANCED and PERFORMANCE (performance-tiered volumes) as valid values. Performance scales with volume size (IOPS-per-GB), so IONOS recommends booking SSD volumes of at least 100 GB. Volume sizes range from 1 GB up to 4 TB (larger on request).

Blank vs. bootable Volume:

  • Blank data disk: omit --image/--image-alias and set --licence-type so the platform knows how to bill/handle the disk. The disk is unformatted; partition and format it from the OS after attaching.

  • Bootable OS disk: pass --image (Image or Snapshot Id) OR --image-alias. When an image is set, --licence-type is derived automatically from the image and should not be overridden. For IONOS public images you must seed initial credentials with --password and/or --ssh-key-paths, otherwise you will not be able to log in. Setting --password even alongside SSH keys is recommended so the DCD remote console can authenticate with a password.

cloud-init: --user-data injects a base64-encoded cloud-init configuration on first boot (users, packages, scripts). It requires a cloud-init capable public image or image-alias.

Immutability: --type and --availability-zone are chosen at creation and cannot be changed afterwards. --size can be increased later but never decreased.

Use --wait (-w) to wait for the Volume to reach AVAILABLE state before the command returns.

Required values to run command:

  • Data Center Id

Options

Examples

Last updated