Skip to main content
Version: main

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:

  1. Volumes are cleaned up
  2. Pools are cleaned up
warning

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:

  1. Delete all VolumeSnapshots
  2. Delete all PersistentVolumeClaims
  3. 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).

warning

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.

note

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

See Also