-
-
Save bashizip/ef5e6790ef81b2c89a6530dee4b6da4a to your computer and use it in GitHub Desktop.
delete 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
# source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/ | |
#/bin/sh | |
# stop service | |
systemctl stop pvestatd.service | |
systemctl stop pvedaemon.service | |
systemctl stop pve-cluster.service | |
systemctl stop corosync | |
systemctl stop pve-cluster | |
killall pmxcfs | |
# edit through sqlite, check, delete, verify | |
$ sqlite3 /var/lib/pve-cluster/config.db | |
sqlite> select * from tree where name = 'corosync.conf'; | |
254327|0|254329|0|1480944811|8|corosync.conf|totem { | |
version: 2 | |
[...] | |
sqlite> delete from tree where name = 'corosync.conf'; | |
sqlite> select * from tree where name = 'corosync.conf'; | |
sqlite> .quit | |
# | |
killall pmxcfs | |
#Remove directories | |
pmxcfs -l | |
rm /etc/pve/corosync.conf | |
rm /etc/corosync/* | |
rm /var/lib/corosync/* | |
# restart services | |
systemctl start pvestatd.service | |
systemctl start pvedaemon.service | |
systemctl start pve-cluster.service | |
systemctl start corosync | |
systemctl start pve-cluster |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment