Skip to content

Commit 519b797

Browse files
authored
Merge pull request #36798 from xerc/patch-4
shorten manually `delete` StorageClass on nodes
2 parents ab019c0 + 7032ce3 commit 519b797

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

modules/persistent-storage-local-removing-devices.adoc

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,38 +42,15 @@ $ oc edit localvolume <name> -n openshift-local-storage
4242
$ oc delete pv <pv-name>
4343
----
4444

45-
. Delete any symlinks on the node.
45+
. Delete directory and included symlinks on the node.
4646
+
4747
[WARNING]
4848
====
4949
The following step involves accessing a node as the root user. Modifying the state of the node beyond the steps in this procedure could result in cluster instability.
5050
====
5151
+
52-
.. Create a debug pod on the node:
53-
+
54-
[source,terminal]
55-
----
56-
$ oc debug node/<node-name>
57-
----
58-
59-
.. Change your root directory to `/host`:
60-
+
61-
[source,terminal]
62-
----
63-
$ chroot /host
64-
----
65-
66-
.. Navigate to the directory containing the local volume symlinks.
67-
+
6852
[source,terminal]
6953
----
70-
$ cd /mnt/openshift-local-storage/<sc-name> <1>
54+
$ oc debug node/<node-name> -- chroot /host rm -rf /mnt/local-storage/<sc-name> <1>
7155
----
7256
<1> The name of the storage class used to create the local volumes.
73-
74-
.. Delete the symlink belonging to the removed device.
75-
+
76-
[source,terminal]
77-
----
78-
$ rm <symlink>
79-
----

0 commit comments

Comments
 (0)