Recovering machines from old cluster node and main node


New Member
Sep 16, 2019
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.

# source:
# 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:
What do you mean by recover? Is the old node still usable?

Usually you would just make backups of the VMs to an external storage and then restore them on the new node. Deleting a cluster without reinstallation isn't really supported and can lead to all sorts of weird issues.
Hi There.

Thanks a lot for the help. I was able to fool the VES and create the machines and them point there disk file to the old disk file.
I also was able to delete the cluster and successfully delete the file for the removed node of the cluster without compromising the vms that where in the main node.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!