I cannot rejoin a node to the cluster

Aug 3, 2020
11
1
8
48
I removed a node from the cluster with the pmgcm delete 5 command.
Now when running pmgcm status on the master node everything is fine.

NAME(CID)--------------IPADDRESS----ROLE-STATE---------UPTIME---LOAD----MEM---DISK
mx002xxxx(1) xxx.xxx.x.188 master A 11 days 07:01 5.66 28% 66%
mx003xxxx(3) xxx.xxx.x.189 node A 59 days 14:45 5.03 25% 72%

But the node that was removed still remains:

NAME(CID)--------------IPADDRESS----ROLE-STATE---------UPTIME---LOAD----MEM---DISK
mx001XXX(5) XXX.XXX.X.187 node S 00:21 0.00 30% 46%
mx002XXX(1) XXX.XXX.X.188 master A 11 days 07:03 6.15 25% 65%
mx003XXX(3) XXX.XXX.X.189 node A 59 days 14:47 5.32 26% 72%

So when I try to rejoin this node in the Cluster I get
cluster join failed: cluster already defined

Anything to be done?
 
If possible simply setup your node fresh and then join it to the cluster - this is the cleanest solution.

Else (without trying it explicitly) try removing /etc/pmg/cluster.conf from the node you try to re-add to the cluster .... this could work

I hope this helps!