Skip to main content

crusoe storage disks create

Create a disk.

Usage​

crusoe storage disks create --name <name> --size <size> [flags]

Flags​

FlagDescription
--block-size intThe block size of the disk. Must be either 512 or 4096. Not applicable for shared volumes
-f, --format stringOutput format. Supported formats: pretty, json (default: "pretty")
-h, --helpHelp for create
--jsonOutput in json format. Shorthand for --format json
--location stringLocation. List available locations with crusoe locations list
--name string[Required] Disk name. Alphanumeric characters, underscores and dashes are allowed
--project-id stringProject ID. Optional if Project Name is set in CRUSOE_DEFAULT_PROJECT env variable or the config file
--project-name stringProject Name. Optional if set in CRUSOE_DEFAULT_PROJECT env variable or the config file
--size string[Required] Disk Size. Format: [Number][Unit] where valid units are GiB and TiB. Range: 1GiB–10TiB
--type stringDisk Type. Allowed values: persistent-ssd (default: "persistent-ssd")

Examples​

Create a 100 GiB persistent SSD:

crusoe storage disks create \
--name my-data-disk \
--size 100GiB \
--location us-northcentral1-a