Skip to content

Instantly share code, notes, and snippets.

@airtonzanon
Last active April 5, 2025 13:46
Show Gist options
  • Save airtonzanon/ec77d2c3052151cf57846a8f0e731c72 to your computer and use it in GitHub Desktop.
Save airtonzanon/ec77d2c3052151cf57846a8f0e731c72 to your computer and use it in GitHub Desktop.
Remove node from proxmox cluster without having to do any reinstallation.
#!/bin/bash
echo "\n #####################"
echo "Remove node from Proxmox Cluster"
echo "This is the same commands that we have in the docs:"
echo "https://pve.proxmox.com/pve-docs/pve-admin-guide.html#pvecm_separate_node_without_reinstall \n"
systemctl stop pve-cluster
systemctl stop corosync
pmxcfs -l
rm /etc/pve/corosync.conf
rm -r /etc/corosync/*
killall pmxcfs
systemctl start pve-cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment