ezgh compute volumes create <name> [--type t --size-gib n | --image alias | --snapshot s] [--iops n] [--throughput n] [--deletion-protection] [--tag k=v…] [flags]Create a volume: empty (--type and --size-gib), from an image alias (--image linux/ubuntu:24.04; its size defaults to the image’s minimum), or restored from a snapshot (--snapshot, by ID, UUID or name; it keeps the snapshot’s type, and its size defaults to the snapshot’s volume size). ezgh compute volume-types list shows the types, their sizes and performance; --iops and --throughput (MB/s) default to the type’s baseline.
It’s asynchronous: the volume is creating until its CreateVolume operation finishes.
Part of ezgh compute volumes.
Examples
ezgh compute volumes create data --type d0 --size-gib 20
ezgh compute volumes create root --type d0 --image linux/ubuntu:24.04
ezgh compute volumes create restored --snapshot nightlyFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--architecture |
string | the image’s architecture (default amd64) | |
--deletion-protection |
boolean | refuse deleting it until this is turned off | |
--image |
string | copy this image alias, such as linux/ubuntu:24.04 | |
--iops |
int | provisioned IOPS (default: the type’s baseline) | |
--size-gib |
int | the size in GiB (required for an empty volume) | |
--snapshot |
string | restore this snapshot (ID, UUID or name) | |
--tag |
string, repeatable | a tag, key=value (repeat) | |
--throughput |
int | provisioned throughput in MB/s (default: the type’s baseline) | |
--type |
string | the volume type (required, except for a restore) | |
--wait |
boolean | wait until it’s available, and print it then | |
--wait-timeout |
duration | 10m0s |
how long --wait waits |
This command also takes the global flags.