mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
- Three different commands mentioned ina single block under "Uninstalling the Local Storage Operator - Here is the documentation link: https://docs.openshift.com/container-platform/4.18/storage/persistent_storage/persistent_storage_local/persistent-storage-local.html#local-storage-uninstall_persistent-storage-local - As per the standard rule, using more than one command per code block is not recommended. Please check Standard rule [2] for reference: [2] https://github.com/openshift/openshift-docs/blob/main/contributing_to_docs/doc_guidelines.adoc#single-command-per-code-block - When commands are bunched together, the copy to clipboard functionality might not break the lines up correctly. Using a single command per code block makes it copy-and-paste friendly. - Hence we need to mention 3 separate code blocks for above 3 commands. - Here is the updated look of the documentation: ~~~ $ oc delete localvolume --all --all-namespaces ~~~ ~~~ $ oc delete localvolumeset --all --all-namespaces ~~~ ~~~ $ oc delete localvolumediscovery --all --all-namespaces ~~~ [new-commit]Three different command mentioned in single block under "Uninstalling the Local Storage Operator - Three different commands mentioned ina single block under "Uninstalling the Local Storage Operator - Here is the documentation link: https://docs.openshift.com/container-platform/4.18/storage/persistent_storage/persistent_storage_local/persistent-storage-local.html#local-storage-uninstall_persistent-storage-local - As per the standard rule, using more than one command per code block is not recommended. Please check Standard rule [2] for reference: [2] https://github.com/openshift/openshift-docs/blob/main/contributing_to_docs/doc_guidelines.adoc#single-command-per-code-block - When commands are bunched together, the copy to clipboard functionality might not break the lines up correctly. Using a single command per code block makes it copy-and-paste friendly. - Hence we need to mention 3 separate code blocks for above 3 commands. - Here is the updated look of the documentation: ~~~ $ oc delete localvolume --all --all-namespaces ~~~ ~~~ $ oc delete localvolumeset --all --all-namespaces ~~~ ~~~ $ oc delete localvolumediscovery --all --all-namespaces ~~~ 2. Also as suggested in the previous PR, and as per the guideline documentation, adding `by running the following command:` in the `step1` and `step4` Co-authored-by: Avani Bhatt <avbhatt@redhat.com>
67 lines
1.9 KiB
Plaintext
67 lines
1.9 KiB
Plaintext
// Module included in the following assemblies:
|
||
//
|
||
// * storage/persistent_storage/persistent-storage-local.adoc
|
||
|
||
:_mod-docs-content-type: PROCEDURE
|
||
[id="local-storage-uninstall_{context}"]
|
||
= Uninstalling the Local Storage Operator
|
||
|
||
To uninstall the Local Storage Operator, you must remove the Operator and all created resources in the `openshift-local-storage` project.
|
||
|
||
[WARNING]
|
||
====
|
||
Uninstalling the Local Storage Operator while local storage PVs are still in use is not recommended. While the PVs will remain after the Operator's removal,
|
||
there might be indeterminate behavior if the Operator is uninstalled and reinstalled without removing the PVs and local storage resources.
|
||
====
|
||
|
||
.Prerequisites
|
||
|
||
* Access to the {product-title} web console.
|
||
|
||
.Procedure
|
||
|
||
. Delete any local volume resources installed in the project, such as `localvolume`, `localvolumeset`, and `localvolumediscovery` by running the following commands:
|
||
+
|
||
[source,terminal]
|
||
----
|
||
$ oc delete localvolume --all --all-namespaces
|
||
----
|
||
+
|
||
[source,terminal]
|
||
----
|
||
$ oc delete localvolumeset --all --all-namespaces
|
||
----
|
||
+
|
||
[source,terminal]
|
||
----
|
||
$ oc delete localvolumediscovery --all --all-namespaces
|
||
----
|
||
|
||
. Uninstall the Local Storage Operator from the web console.
|
||
|
||
.. Log in to the {product-title} web console.
|
||
|
||
.. Navigate to *Operators* -> *Installed Operators*.
|
||
|
||
.. Type *Local Storage* into the filter box to locate the Local Storage Operator.
|
||
|
||
.. Click the Options menu {kebab} at the end of the Local Storage Operator.
|
||
|
||
.. Click *Uninstall Operator*.
|
||
|
||
.. Click *Remove* in the window that appears.
|
||
|
||
. The PVs created by the Local Storage Operator will remain in the cluster until deleted. After these volumes are no longer in use, delete them by running the following command:
|
||
+
|
||
[source,terminal]
|
||
----
|
||
$ oc delete pv <pv-name>
|
||
----
|
||
|
||
. Delete the `openshift-local-storage` project by running the following command:
|
||
+
|
||
[source,terminal]
|
||
----
|
||
$ oc delete project openshift-local-storage
|
||
----
|