Last active
November 3, 2025 20:42
-
-
Save dsbilling/9c0d97d885bcd0fc25f1409fe2fd2d06 to your computer and use it in GitHub Desktop.
A simple script to reset the Proxmox Cluster.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash -xe | |
| systemctl stop corosync.service | |
| systemctl stop pve-cluster.service | |
| systemctl stop corosync | |
| systemctl stop pve-cluster | |
| pmxcfs -l | |
| rm /etc/pve/corosync.conf | |
| rm /etc/corosync/* | |
| rm /var/lib/corosync/* | |
| # This could be to destructive, I would recommend to delete the folders manually | |
| # rm -rf /etc/pve/nodes/* | |
| systemctl start pve-cluster | |
| systemctl start corosync | |
| systemctl start pve-cluster.service | |
| systemctl start corosync.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, RIP my VMs 😢 Careful as you go!