Detach a volume
You can detach a volume from a VM (Virtual Machine), which allows you to attach it to another VM and access your data again.
For Linux VM, the volume mount must be permanent to avoid any failure when the VM starts.
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
volumethat you want to link.infoYou can also select a VM in the "VM" dashboard and click Detach a volume.
-
Under the
volumeactions menu, click Dissociate from the VM.warningDetaching a
volumeto which data is being written may damage your resources.You can detach a system
volumefrom a VM if this VM is stopped. However, you will not be able to restart this VM using this systemvolume.The Volume dissociation dialog box appears.
-
Click Dissociate the volume.
A confirmation message appears.
The
volumeis detached from the VM.
The PUT /compute/spaces/{spaceId}/volumes/{id}/vms/unlink command detaches a block storage volume from a VM. To detach the root device of a VM, this VM must be stopped.
The Terraform documentation is available on the Numspot registry ↗.