Skip to content

Instantly share code, notes, and snippets.

@dsbilling
Last active November 3, 2025 20:42
Show Gist options
  • Select an option

  • Save dsbilling/9c0d97d885bcd0fc25f1409fe2fd2d06 to your computer and use it in GitHub Desktop.

Select an option

Save dsbilling/9c0d97d885bcd0fc25f1409fe2fd2d06 to your computer and use it in GitHub Desktop.
A simple script to reset the Proxmox Cluster.
#/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
@lukebarton
Copy link

Yeah, RIP my VMs 😢 Careful as you go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment