Manually uninstalling ECS from a cluster

You can manually uninstall ECS from your cluster.

Before performing this procedure, ensure that you have activated the ECS parcel on the cluster hosts.

During the installation time of ECS, the directory for Longhorn and the LSO are decided by Cloudera Manager and defaults to /ecs.

  1. On each host in the cluster:
    1. /opt/cloudera/parcels/ECS/docker/docker container stop registry
    2. /opt/cloudera/parcels/ECS/docker/docker container rm -v registry
    3. /opt/cloudera/parcels/ECS/docker/docker image rm registry:2
  2. Stop the ECS cluster in Cloudera Manager
  3. On each host:
    1. cd /opt/cloudera/parcels/ECS/bin
    2. ./rke2-killall.sh # usually 2 times is sufficient
    3. ./rke2-uninstall.sh
    4. rm -rf /ecs/* # assumes the default defaultDataPath and lsoDataPath
    5. rm -rf /var/lib/docker_server/* # deletes the auth and certs
    6. rm -rf /etc/docker/certs.d/* # delete the ca.crt
    7. rm -rf /docker # assumes the default defaultDataPath for docker
  4. Delete ECS cluster in Cloudera Manager