Detaching a volume removes it from a node but keeps the volume and its data. The volume returns to Available and can be attached to another node or deleted. Billing continues until you delete the volume.
Before you begin
Section titled “Before you begin”- A volume attached to a node.
- On the node, anything using the volume is closed, and the volume is unmounted.
Unmount the volume on the node
Section titled “Unmount the volume on the node”Detach once nothing is using the volume, and unmount it in the operating system first to avoid data
loss. On Linux, unmount it and remove its entry from /etc/fstab:
sudo umount /dataIf the volume is in /etc/fstab, remove that line too. Leaving it there can stop the node from
booting properly on its next restart. On Windows, close anything using the drive, then take the
disk Offline in Disk Management.
Detach the volume
Section titled “Detach the volume”- Open Storage > Volumes.
- Select the volume, open its Actions menu, and choose Detach.
- Confirm the detach. Read the confirmation; it lists what happens.
The volume’s status returns to Available. Detaching also turns off any snapshot scheduling and snapshot lifecycle you had set for it.
The volume is back to Available with its data intact, free to attach to another node, move, or delete. A detach that fails, or a node that will not boot afterwards, is covered in Troubleshooting Volumes.