[SOLVED] Remove node from cluster

Check if there are still leftover files in /etc/pve/nodes/<deleted-node>.
As long as there are files still in there, the node will show up in the UI.
Please make a backup of the files before you delete them, just to be safe!
yes, I can see the folder.../etc/pve/nodes/<deleted-node>
I took a backup and deleted that folder...the node has disappeared.
thanks very much
 
yes, I can see the folder.../etc/pve/nodes/<deleted-node>
I took a backup and deleted that folder...the node has disappeared.
thanks very much
How do you delete this folder?
I keep getting told that my root user is not allowed to do anything in /etc/pve directory.
 
I just went through some self inflicted pain when I added a node to my cluster when one of my other nodes was offline. I didn't know that would cause so many problems. A warning in the UI would have been nice. The offline node when brought back online just didn't want to behave correctly. It hung in the shell about 30 seconds after boot and never attached to the cluster again. I could only SSH to it. I couldn't find a solution to fix its membership in the cluster. At this point it appeared best to remove it from the cluster. This was all on 8.2.x

From a good cluster node:

Code:
pvecm nodes
pvecm delnode<nodename>

The node will still show as a ghost in the Datacenter view until the node is deleted from at least one nodes /etc/pve/nodes dir.
As long as there are files still in there, the node will show up in the UI.

Code:
rm -r /etc/pve/nodes/<nodename>

On removed node to make it standalone and files editable:

Code:
systemctl stop pve-cluster
/usr/bin/pmxcfs -l

rm -f /etc/pve/corosync.conf
rm -f /etc/corosync/corosync.conf
rm -f /etc/corosync/authkey
cd /etc/pve/nodes
rm -r <othernodename>  #for all other nodes

reboot now

Node is now standalone. The node can now be re-added to a cluster if desired.
 
  • Like
Reactions: luckyluk83
Thank you!
I was able to run:
Code:
pvecm rm {nodename}
and then edit /etc/pve/ceph.conf and remove any reference to the IP of the 'unknown' node from /etc/pve/ceph.conf and then it worked flawlessly. Was able to remove 'unknown' node and then re-add without issue. This wasn't exactly what I was looking for, but directed me to what solved my problem. Thank you.
 
I just went through some self inflicted pain when I added a node to my cluster when one of my other nodes was offline. I didn't know that would cause so many problems. A warning in the UI would have been nice. The offline node when brought back online just didn't want to behave correctly. It hung in the shell about 30 seconds after boot and never attached to the cluster again. I could only SSH to it. I couldn't find a solution to fix its membership in the cluster. At this point it appeared best to remove it from the cluster. This was all on 8.2.x

From a good cluster node:

Code:
pvecm nodes
pvecm delnode<nodename>

The node will still show as a ghost in the Datacenter view until the node is deleted from at least one nodes /etc/pve/nodes dir.
As long as there are files still in there, the node will show up in the UI.

Code:
rm -r /etc/pve/nodes/<nodename>

On removed node to make it standalone and files editable:

Code:
systemctl stop pve-cluster
/usr/bin/pmxcfs -l

rm -f /etc/pve/corosync.conf
rm -f /etc/corosync/corosync.conf
rm -f /etc/corosync/authkey
cd /etc/pve/nodes
rm -r <othernodename>  #for all other nodes

reboot now

Node is now standalone. The node can now be re-added to a cluster if desired.
Thank You. That worked for me.
 

About

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!