Hi there.
I've created a Cluster with 2 nodes.
Then i had to reinstall one of the nodes.
In that time, the remainning node had 2 vms.
I went in ssh mode to delete the cluster, but it seems that had to delete the cluster files withtou deleting machines, witch the disk's are still in the system.
I need to recover thouse machines.
I have the disks of the machines in the disks that i had created.
Can you help me please
I've created a Cluster with 2 nodes.
Then i had to reinstall one of the nodes.
In that time, the remainning node had 2 vms.
I went in ssh mode to delete the cluster, but it seems that had to delete the cluster files withtou deleting machines, witch the disk's are still in the system.
Code:
# 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
# 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
#
#Remove directories
pmxcfs -l
rm /etc/pve/corosync.conf
rm /etc/corosync/*
rm /var/lib/corosync/*
rm -r /etc/corosync/*
rm -r /var/lib/corosync/*
rm -f /var/lib/pve-cluster/.pmxcfs.lockfile
I need to recover thouse machines.
I have the disks of the machines in the disks that i had created.
Can you help me please
Last edited: