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

Commit

Permalink
docs(uninstall): improve the uninstall guide (#906)
Browse files Browse the repository at this point in the history
provide a link to the uninstall script. 

Signed-off-by: Akhil Mohan <[email protected]>
  • Loading branch information
akhilerm authored Dec 18, 2020
1 parent 30f8664 commit a71f680
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 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,19 @@ 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.


:::tip NOTE
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

0 comments on commit a71f680

Please sign in to comment.