OpenEBS Uninstallation
This document describes about the graceful deletion/uninstallation of your OpenEBS cluster.
Prerequisites
It is expected that the following prerequisites are met before uninstalling OpenEBS:
- Volumes are cleaned up
- Pools are cleaned up
If the prerequisites are not met, there might be some troubles/errors while uninstalling OpenEBS as the finalizers and other protection rules are imposed by the engine.
Uninstalling OpenEBS using Helm
Run the following command to uninstall OpenEBS:
helm uninstall openebs -n <OPENEBS_NAMESPACE>
Uninstalling Local PV Rawfile
Local PV Rawfile is a separate Helm release and must be uninstalled independently. Before uninstalling, you must delete all resources created through the driver in the following order to avoid leaked loop device mounts on nodes:
- Delete all VolumeSnapshots
- Delete all PersistentVolumeClaims
- Delete all PersistentVolumes
Then uninstall the Helm release:
helm uninstall rawfile-localpv -n openebs
After uninstalling, you may want to remove the rawfile data directory from each node manually (default: /var/csi/rawfile).
If you uninstall the driver without first deleting the above resources, loop devices and mounts may be left behind on the nodes and require manual cleanup.
Uninstalling the Helm chart does not remove/uninstall the CustomResourceDefinitions (CRDs).
diskpools.openebs.io
lvmnodes.local.openebs.io
lvmsnapshots.local.openebs.io
lvmvolumes.local.openebs.io
volumesnapshotclasses.snapshot.storage.k8s.io
volumesnapshotcontents.snapshot.storage.k8s.io
volumesnapshots.snapshot.storage.k8s.io
zfsbackups.zfs.openebs.io
zfsnodes.zfs.openebs.io
zfsrestores.zfs.openebs.io
zfssnapshots.zfs.openebs.io
zfsvolumes.zfs.openebs.io