Skip to content

Instantly share code, notes, and snippets.

@KaaNee
Created January 18, 2025 10:30
Show Gist options
  • Save KaaNee/7a3eb807ede6ae681afdbd061e0e8fe1 to your computer and use it in GitHub Desktop.
Save KaaNee/7a3eb807ede6ae681afdbd061e0e8fe1 to your computer and use it in GitHub Desktop.
BashScript to remove cluster-config of a proxmox-node
#!/bin/bash
# works from 6 to 8 -
# stops services, removes cluster-config from this node (regardless it's state) and restarts services again.
# - Also removing stalled clusternodes as this is leaving the cluster the 'hard' way.
systemctl stop pve-cluster corosync
pmxcfs -l
rm -rf /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