Created
January 18, 2025 10:30
-
-
Save KaaNee/7a3eb807ede6ae681afdbd061e0e8fe1 to your computer and use it in GitHub Desktop.
BashScript to remove cluster-config of a proxmox-node
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 | |
# 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