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

attach

Attach an existing Volume to a Server

Usage

ionosctl compute server volume attach [flags]

Aliases

For server command:

[s svr]

For volume command:

[v vol]

For attach command:

[a]

Description

Use this command to attach a pre-existing Volume (a disk already present in the datacenter) to a Server. The Volume must be in the same datacenter as the Server. Create Volumes first with ionosctl compute volume create.

Once attached, you can make the Volume the Server's boot device with server update --volume-id. A single Volume can only be attached to one Server at a time.

Use --wait (-w) to wait for the resource to reach AVAILABLE state.

Required values to run command:

  • Data Center Id

  • Server Id

  • Volume Id

Options

Examples

Last updated