Skip to content

Commit 2c29d65

Browse files
committed
explain when detaching and deleting volume will work
1 parent 647929e commit 2c29d65

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed
55.1 KB
Loading
55.7 KB
Loading

docs/openstack/persistent-storage/volumes.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Attach to Instance, and click "Attach Volume".
126126

127127
![Attach Volume](images/volume_attach.png)
128128

129-
The volume now has a status of "in-use" and "Attached To" column shows which
129+
The volume now has a status of "In-use" and "Attached To" column shows which
130130
instance it is attached to, and what device name it has.
131131

132132
This will be something like `/dev/vdb` but it can vary depending on the state
@@ -296,9 +296,15 @@ This will popup the following interface to proceed:
296296

297297
![Detach a volume](images/detach-volume-from-an-instance.png)
298298

299-
!!! danger "Unable to Detach Volume!"
299+
!!! danger "Unable to Detach Volume"
300300
If your bootable volume that is attached to a VM then that volume cannot be
301-
detached as this is a root device volume.
301+
detached as this is a root device volume. This bootable volume is created when
302+
you launch an instance from an **Image** or an **Instance Snapshot**, and the
303+
choice for utilizing persistent storage is configured by selecting the **Yes**
304+
option for "Create New Volume". If you explicitly chosen as "No" for this option
305+
then there will be no attach volume created for the instance instead an **Ephemeral**
306+
disk storage is used.
307+
![Launch Instance Set Create New Volume](images/instance-create-new-volume.png)
302308

303309
#### Using openstack client
304310

@@ -352,10 +358,15 @@ Click "Delete Volumes" button.
352358
In the Confirm Delete Volumes window, click the Delete Volumes button to
353359
confirm the action.
354360

355-
!!! warn "Unable to delete volume"
356-
You cannot delete a bootable volume that is actively in use by a running VM.
357-
If you really want to delete such volume then first delete the insance and
358-
then you are allowed to delete the detached volume.
361+
!!! danger "Unable to Delete Volume"
362+
You cannot delete a **bootable** volume that is actively in use by a running
363+
VM. If you really want to delete such volume then first delete the insance and
364+
then you are allowed to delete the detached volume. Before deleting
365+
**Please make sure** during the launch of this insance is using the default
366+
selected **No** for "Delete Volume on Instance Delete" configuration option.
367+
If you had set this configuration "Yes" for "Delete Volume on Instance Delete",
368+
then deleting the instance will automatically remove the associated volume.
369+
![Launch Instance With Persistent Volume](images/instance-delete-volume-delete.png)
359370

360371
**Alternatively,** Using openstack client terminal:
361372

docs/other-tools/kubernetes/k3s/k3s-using-k3d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ specified using the `KUBECONFIG` environment variable or the default path
195195
![k3d all](../images/k3d_all.png)
196196

197197
We can see that, in addition of the Kubernetes service, K3s deploys DNS,
198-
metrics and ingress (traefik) services when we use the defaults.
198+
metrics and ingress (traefik) services when you use the defaults.
199199

200200
iii. List the active k3d clusters:
201201

0 commit comments

Comments
 (0)