Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

docs(uninstall): improve the uninstall guide #906

Merged
merged 3 commits into from
Dec 18, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docs/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ The recommended steps to uninstall the OpenEBS cluster gracefully is as follows.
kubectl get bdc -n <openebs namespace>
```

If present, remove the finalizer entry from the corresponding BDC.
If present, remove the finalizer entry from the corresponding BDC. To remove the finalizer, use the following command
```
kubectl patch -n openebs bdc <bdc-name> -p '{"metadata":{"finalizers":null}}' --type=merge
```

- Ensure that no OpenEBS volume or pool pods are in terminating state . You can check the running status of Pods using the following command.

Expand Down Expand Up @@ -106,11 +109,18 @@ The recommended steps to uninstall the OpenEBS cluster gracefully is as follows.
kubectl get bd -n <openebs namespace>
```

If present, remove the finalizer entry from the corresponding BD and then delete it.
If present, remove the finalizer entry from the corresponding BD and then delete it. To remove the finazlier, use the following command
```
kubectl patch -n openebs bd <blockdevice-xxx> -p '{"metadata":{"finalizers":null}}' --type=merge
```


- After removing a PVC, you may find a directory `/var/openebs/` on the nodes where the replica was created having some of the volume sub-directory to store metadata info related to the volume, for example `shared-pvc-69adec76-665e-46bc-b957-2b2f58338429-target` with no content. This can be removed manually using the `rm -rf` command once you successfully uninstall the OpenEBS cluster.


#### NOTE:
akhilerm marked this conversation as resolved.
Show resolved Hide resolved
An uninstall script is available [here](https://github.com/openebs/charts/blob/gh-pages/scripts/uninstall/uninstall.sh) to perform all the above steps.

## Deletion of Jiva Volumes

As part of deleting the Jiva Volumes - OpenEBS launches scrub jobs for clearing the data from the nodes. This job will be running in OpenEBS installed namespace. The completed jobs need to be cleared using the following command.
Expand Down