Removing a ProxMox Cluster
Sometimes it is necessary to delete the created Proxmox cluster and create a new one. There are instructions on the network, but they are not suitable - after deletion the cluster does not work, but the old nodes hang gray (inactive) and it is not possible to assemble a new cluster.
First of all, we stop the cluster
rm -fr /etc/pve/nodes/*
systemctl stop pve-cluster
systemctl stop corosync
We are starting the cluster again in single mode
pmxcfs -l
Delete config files
rm /etc/pve/corosync.conf
rm -r /etc/corosync/*
We kill a single process, preferably several times.
killall pmxcfs
pmxcfs: no process found
e delete the list of nodes from the server, otherwise they will hang around there “dead”.
rm -fr /etc/pve/nodes
Let's turn on the cluster and enjoy life!
systemctl start corosync
systemctl start pve-cluster
Restart web muzzle
service pveproxy restart