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