Cleaning Proxmox Cluster (after forgetting to remove nodes)

So, I discovered Proxmox some time ago and installed a single node. Nothing fancy or complicated, but after a while, and after expanding my home lab, I thought, well, self, let’s make a Proxmox cluster. I have a Dell PowerEdge 740 (second hand, would never be able to afford a new one!), an old Lenovo notebook, and an even older Intel NUC.

So, here I go and create a cluster, add the nodes, but forgot to plan ahead a little. I didn’t add the host entries tot he /etc/hosts file of each node so that they can talk to each other, and neither did I ensure I had the same version of Proxmox on all three nodes. Needless to say, that caused a bit of a dilema and after a while I messed up my cluster and corosync wasn’t very happy with me.

I couldn’t remove the nodes with the normal “pvecm delnode” so I had to manuall remove the cluster and some of its directories. I got a few pointers from the internet and “Bob’s your uncle” I managed to kill my original cluster, the offending nodes and recreate my custer and add the nodes back in again.

This to remove nodes and cluster the manual way, you need to do the following:

systemctl stop pve-cluster corosync
pmxcfs -l
rm /etc/corosync/*
rm /etc/pve/corosync.conf
killall pmxcfs
systemctl start pve-cluster

Once you have done this, go to the /etc/pve/nodes directory and delete your node 2 – x, restart the node server and then create your cluster and add the nodes!

Share this content: