Detacher un volume d'une instance
| $> openstack server remove volume <instance> <volume>
|
- instance : nom ou ID de l'instance d'où detacher l'instance
- volume : nom ou ID du volume à détacher
A noter
Pour récupérer les informations des ressources disponibles sur le projet (flavor, network, image, ...) vous pouvez suivre la documentation ici
Exemple :
| $> openstack volume list
+--------------------------------------+-------------+--------+------+----------------------------------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+-------------+--------+------+----------------------------------------+
| 5ce88ee5-451a-4450-8552-0fd73d2e7860 | test-volume | in-use | 20 | Attached to test-instance on /dev/vdb |
+--------------------------------------+-------------+--------+------+----------------------------------------+
$> openstack server remove volume test-instance test-volume
$> openstack volume list
+--------------------------------------+-------------+-----------+------+-------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+-------------+-----------+------+-------------+
| 5ce88ee5-451a-4450-8552-0fd73d2e7860 | test-volume | available | 20 | |
+--------------------------------------+-------------+-----------+------+-------------+
|