Safely Remove a Joining Node¶
Sometimes when adding a node to the cluster it gets stuck in JOINING state (UJ) and never completes the process to a Up-Normal Status (UN). The only solution is to remove the node. As long as the node did not join the cluster (meaning it never went into UN state), you can just stop this node, and clean its data, and try again.
- Run the nodetool drain command (Scylla stops listening to its connections from the client and other nodes).
- Stop the node
- Clean the data
sudo rm -rf /var/lib/scylla/data sudo find /var/lib/scylla/commitlog -type f -delete sudo find /var/lib/scylla/hints -type f -delete sudo find /var/lib/scylla/view_hints -type f -delete
- Start the node