Skip to content

Instantly share code, notes, and snippets.

@WietseWind
Last active June 1, 2025 12:08
Show Gist options
  • Save WietseWind/b665558b2dad9a619e5b4b9c50d3feca to your computer and use it in GitHub Desktop.
Save WietseWind/b665558b2dad9a619e5b4b9c50d3feca to your computer and use it in GitHub Desktop.
Proxmox: force exit cluster & re-join
# NOTE!! DO THIS ONE BY ONE, IT FAILS IF TWO NODES TRY TO JOIN AT THE SAME TIME!
# export LANG=en_US.UTF-8
# export LC_ALL=en_US.UTF-8
#pvecm expected 1
# Clear join (back to standalone)
systemctl stop pve-cluster corosync
pmxcfs -l
rm -rf /etc/corosync/*
rm /etc/pve/corosync.conf
killall pmxcfs
systemctl start pve-cluster
cd /etc/pve/nodes; ls |grep -v `hostname` |xargs -I___ rm -rf ___
pvesm status|grep -v active|cut -d ' ' -f 1|grep -v "Name"|xargs -I___ pvesm remove ___
# Re-join with force to allow existing VMs
systemctl restart pve-cluster
# pvecm add 10.254.3.183 --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment