To completely remove a minion from a cluster and then re-add the same minion to the cluster, perform the following procedure.

In the event that you want to reuse a server as a containerized minion, you may find that it contains a /data directory from the previous installation. This directory will cause a cluster add-node command to fail. In this case, you must set conditions for successful execution of the add-node command. The following steps remove all data from the minion.

Procedure

  1. Stop the cluster: on the primary node, run ./edr-docker stop.
  2. Change the node's read-only status: run ./edr-docker cluster change-node -N [Node ID] -R True.
  3. Run edr-docker cluster remove-node and follow the prompts.
  4. Remove data folder from Minion Node: rm -rf data.
  5. Repeat steps 2 through 4 for all nodes you want to reset.
  6. Start the cluster: on the primary node, run ./edr-docker start.

What to do next

Add a Minion Node to the Cluster