Destroy cluster configuration

dignus

Renowned Member
Feb 12, 2009
181
23
83
Hi,

Due to some failures we have a non working cluster. How can I completely destroy the cluster configuration on all 3 members to I can recreate the cluster?
The machines have containers running, so I can't reinstall the machines alltogether.
 
Hi Wolfgang,

Found that URL myself, but it only speaks of removing a single node. Is it as simple as deleting all nodes one by one from our "master" node?
 
It is relative easy.

backup your /etc/pve dir.
stop pve-cluster.service and corosync.service
then destroy /etc/corosync/* and /var/lib/pve-cluster
now you can create the new cluster from scratch.
after this is done copy the backuped /etc/pve back,
but only the ./storage.cfg and ./node/<oldnode>/qemu/* and ./node/<oldnode>/lxc/*
You have to be sure the oldnode is the newnode where the vm/ct disk are.

Thats it
 
Yes except the backup and copy back.
and stop the cluster on all nodes before you start erasing.
 
I followed this instructions:

It is relative easy.

backup your /etc/pve dir.
stop pve-cluster.service and corosync.service
then destroy /etc/corosync/* and /var/lib/pve-cluster
now you can create the new cluster from scratch.
after this is done copy the backuped /etc/pve back,
but only the ./storage.cfg and ./node/<oldnode>/qemu/* and ./node/<oldnode>/lxc/*
You have to be sure the oldnode is the newnode where the vm/ct disk are.

Thats it

But, due to an error, I lost .node/* except ./storage.

I have a problem accessing web interface:

Error de conexión 401: 403 Permission check failed (permission denied - invalid PVE ticket)

Any idea?

Regards