Attach a volume
You can attach a volume to a VM (Virtual Machine) within the same Subregion to add storage capacity to it. You can attach several volumes to a VM (up to 40), for example to separate different types of data.
Permissions
This action requires the following IAM (Identity and Access Management) permissions:
- compute.blockStorage.update
- Console
- API
- Terraform
- Log in to the Numspot console.
- From the left-hand side menu, click Storage → Block Storage → Volumes. The list of
volumesappears. - Select the
volumeyou want to link.infoYou can also select a VM in the "VM" dashboard and click Link a volume.
- Under the
volumeactions menu, click Associate a VM. The Association with a VM dialog box appears. - In the "VM" list, select the VM to which you want to link the
volume. - In the "Devices" list, select the name of the device to which you want to assign the
volume. - Click Associate with the VM.
The
volumeis linked to the selected VM.warningOnce the
volumeis attached, you must mount it at the operating system level to make it usable.
The PUT /compute/spaces/{spaceId}/volumes/{id}/vms/link command attaches a block storage volume to a VM. The volume and the VM must be located in the same subregion. The VM can be running or stopped. The volume is attached to the specified device of the VM.
The Terraform documentation is available on the Numspot registry ↗.