-
-
Save ergoz/0bec54fc956993c2518b5480a90e9428 to your computer and use it in GitHub Desktop.
Reset 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 pvestatd.service | |
| systemctl stop pvedaemon.service | |
| systemctl stop pve-cluster.service | |
| systemctl stop corosync | |
| systemctl stop pve-cluster | |
| sqlite3 /var/lib/pve-cluster/config.db "delete from tree where name = 'corosync.conf';" | |
| pmxcfs -l | |
| rm /etc/pve/corosync.conf | |
| rm /etc/corosync/* | |
| rm /var/lib/corosync/* | |
| rm -rf /etc/pve/nodes/* | |
| systemctl start pve-cluster | |
| systemctl start corosync | |
| systemctl start pve-cluster.service | |
| systemctl start pvedaemon.service | |
| systemctl start pvestatd.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment