Skip to content

Commit 150e3cd

Browse files
authored
Merge pull request #77083 from sr1kar99/1894-uninstalling-lvms-using-cli
TELCODOCS#1894: Added "Uninstalling LVM Stroage by using the CLI" proc
2 parents 610050c + 4f0e1c9 commit 150e3cd

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Module included in the following assemblies:
2+
//
3+
// storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="lvms-unstalling-lvms-using-cli_{context}"]
7+
= Uninstalling {lvms} by using the CLI
8+
9+
You can uninstall {lvms} by using the {oc-first}.
10+
11+
.Prerequisites
12+
13+
* You have logged in to `oc` as a user with `cluster-admin` permissions.
14+
* You deleted the persistent volume claims (PVCs), volume snapshots, and volume clones provisioned by {lvms}. You have also deleted the applications that are using these resources.
15+
* You deleted the `LVMCluster` custom resource (CR).
16+
17+
.Procedure
18+
19+
. Get the `currentCSV` value for the {lvms} Operator by running the following command:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc get subscription.operators.coreos.com lvms-operator -n <namespace> -o yaml | grep currentCSV
24+
----
25+
+
26+
.Example output
27+
[source,terminal]
28+
----
29+
currentCSV: lvms-operator.v4.15.3
30+
----
31+
32+
. Delete the subscription by running the following command:
33+
+
34+
[source,terminal]
35+
----
36+
$ oc delete subscription.operators.coreos.com lvms-operator -n <namespace>
37+
----
38+
+
39+
.Example output
40+
[source,terminal]
41+
----
42+
subscription.operators.coreos.com "lvms-operator" deleted
43+
----
44+
45+
. Delete the CSV for the {lvms} Operator in the target namespace by running the following command:
46+
+
47+
[source,terminal]
48+
----
49+
$ oc delete clusterserviceversion <currentCSV> -n <namespace> <1>
50+
----
51+
<1> Replace `<currentCSV>` with the `currentCSV` value for the {lvms} Operator.
52+
+
53+
.Example output
54+
[source,terminal]
55+
----
56+
clusterserviceversion.operators.coreos.com "lvms-operator.v4.15.3" deleted
57+
----
58+
59+
.Verification
60+
61+
* To verify that the {lvms} Operator is uninstalled, run the following command:
62+
+
63+
[source,terminal]
64+
----
65+
$ oc get csv -n <namespace>
66+
----
67+
+
68+
If the {lvms} Operator was successfully uninstalled, it does not appear in the output of this command.

modules/lvms-uninstalling-logical-volume-manager-operator-using-openshift-web-console.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="lvms-unstalling-lvms-with-web-console_{context}"]
7-
= Uninstalling {lvms} using the web console
7+
= Uninstalling {lvms} by using the web console
88

99
You can uninstall {lvms} using the {product-title} web console.
1010

storage/persistent_storage/persistent_storage_local/persistent-storage-using-lvms.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ include::modules/lvms-monitoring-logical-volume-manager-operator.adoc[leveloffse
201201

202202
// Uninstalling LVM Storage
203203

204+
include::modules/lvms-uninstalling-logical-volume-manager-operator-using-openshift-cli.adoc[leveloffset=+1]
204205
include::modules/lvms-uninstalling-logical-volume-manager-operator-using-openshift-web-console.adoc[leveloffset=+1]
205206
include::modules/lvms-uninstalling-logical-volume-manager-operator-using-rhacm.adoc[leveloffset=+1]
206207

0 commit comments

Comments
 (0)