Subcommands

VolumeUpdate

Update a Volume

Usage

ionosctl volume update [flags]

Aliases

For volume command:

[v vol]

For update command:

[u up]

Description

Use this command to update a Volume. You may increase the size of an existing storage Volume. You cannot reduce the size of an existing storage Volume. The Volume size will be increased without reboot if the appropriate "hot plug" settings have been set to true. The additional capacity is not added to any partition therefore you will need to adjust the partition inside the operating system afterwards.

Once you have increased the Volume size you cannot decrease the Volume size using the Cloud API. Certain attributes can only be set when a Volume is created and are considered immutable once the Volume has been provisioned.

You can wait for the Request to be executed using --wait-for-request option.

Required values to run command:

  • Data Center Id

  • Volume Id

Options

-u, --api-url string Override default host url (default "https://api.ionos.com")
--bus string Bus of the Volume (default "VIRTIO")
--cols strings Set of columns to be printed on output
Available columns: [VolumeId Name Size Type LicenceType State Image Bus AvailabilityZone BackupunitId SshKeys ImageAlias DeviceNumber UserData] (default [VolumeId,Name,Size,Type,LicenceType,State,Image])
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.json")
--cpu-hot-plug It is capable of CPU hot plug (no reboot required)
--datacenter-id string The unique Data Center Id (required)
--disc-virtio-hot-plug It is capable of Virt-IO drive hot plug (no reboot required)
--disc-virtio-hot-unplug It is capable of Virt-IO drive hot unplug (no reboot required). This works only for non-Windows virtual Machines
-f, --force Force command to execute without user input
-h, --help Print usage
-n, --name string Name of the Volume
--nic-hot-plug It is capable of nic hot plug (no reboot required)
--nic-hot-unplug It is capable of nic hot unplug (no reboot required)
-o, --output string Desired output format [text|json] (default "text")
-q, --quiet Quiet output
--ram-hot-plug It is capable of memory hot plug (no reboot required)
--size string The size of the Volume in GB. e.g. 10 or 10GB. The maximum volume size is determined by your contract limit (default "10")
-t, --timeout int Timeout option for Request for Volume update [seconds] (default 60)
-v, --verbose Print step-by-step process when running command
-i, --volume-id string The unique Volume Id (required)
-w, --wait-for-request Wait for the Request for Volume update to be executed

Examples

ionosctl volume update --datacenter-id DATACENTER_ID --volume-id VOLUME_ID --size 20