Skip to content

Instantly share code, notes, and snippets.

@tsharley
Created June 5, 2023 12:21
Show Gist options
  • Select an option

  • Save tsharley/f94439794fd8f96eb669d23cb30871ce to your computer and use it in GitHub Desktop.

Select an option

Save tsharley/f94439794fd8f96eb669d23cb30871ce to your computer and use it in GitHub Desktop.
Destroy Proxmox Cluster
#!/usr/bin/env bash
# Executing the following will remove the cluster status/configuration from a
# single-node cluster. Useful if the cluster was initialized unintentionally
# and Corosync's restrictions are preventing further changes. Root required.
systemctl stop pve-cluster corosync
pmxcfs -l
rm -r /etc/corosync/*
rm /etc/pve/corosync.conf
killall pmxcfs
systemctl start pve-cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment