-
-
Save lotherk/fcba1f0622638ef7647fc7e43d32d962 to your computer and use it in GitHub Desktop.
delete proxmox cluster
This file contains 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/sh | |
# source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/ | |
set -x | |
# stop service | |
systemctl stop pvestatd.service | |
systemctl stop pvedaemon.service | |
systemctl stop pve-cluster.service | |
systemctl stop corosync | |
systemctl stop pve-cluster | |
# create update sql | |
cat <<EOM > /tmp/update.sql | |
delete from tree where name = 'corosync.conf'; | |
.quit | |
EOM | |
# update sql | |
sqlite3 -echo /var/lib/pve-cluster/config.db < /tmp/update.sql | |
rm -f /tmp/update.sql | |
# remove directories | |
pmxcfs -l | |
rm /etc/pve/corosync.conf | |
rm /etc/corosync/* | |
rm /var/lib/corosync/* | |
rm -rf /etc/pve/nodes/* | |
rm /etc/pve/priv/known_hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment