PVE - Removing a node from a cluster

From Da Nerd Mage Wiki
Revision as of 11:10, 11 August 2025 by Tinker (talk | contribs) (Created page with "To safely remove a node from a Proxmox VE (PVE) cluster, follow these steps:<br># '''Migrate Workloads:'''<br>#*  Before removing the node, ensure all virtual machines (VMs) and containers are migrated to other active nodes in the cluster. This can be done via live or offline migration using the Proxmox web GUI or command line tools like  <code>qm migrate</code>.    <br># '''Verify Cluster Status:'''<br>#*  Log in to an active node in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To safely remove a node from a Proxmox VE (PVE) cluster, follow these steps:
# Migrate Workloads:
#*  Before removing the node, ensure all virtual machines (VMs) and containers are migrated to other active nodes in the cluster. This can be done via live or offline migration using the Proxmox web GUI or command line tools like  <code>qm migrate</code>.    
# Verify Cluster Status:
#*  Log in to an active node in the cluster and run  <code>pvecm nodes</code> to confirm the list of nodes and identify the name or ID of the node you wish to remove.     
# Remove the Node from the Cluster:
#*  Execute the  <code>pvecm delnode</code> command from an active node, replacing  <code>[NODE_NAME]</code> with the actual name or ID of the node to be removed.  If the command fails due to a loss of quorum, particularly in a two-node cluster, you can temporarily set the expected votes to 1 using  <code>pvecm expected 1</code> before running  <code>pvecm delnode</code> again.             
# Power Down the Removed Node:
#*  Once the node is successfully removed from the cluster configuration, power it off and disconnect it from the network to prevent it from attempting to rejoin the cluster with its old configuration.   
# Clean Up Configuration Files:
#*  To completely remove the node's presence from the cluster's configuration, log in to one of the remaining active nodes and delete the node's directory from  <code>/etc/pve/nodes/</code>.  This step is necessary to remove the node from the Proxmox web interface.  Additionally, on the removed node itself, you should delete the remaining cluster files to ensure it can be reused in another cluster without issues.  This includes removing files from  <code>/etc/pve/corosync.conf</code>,  <code>/etc/corosync/*</code>, and  <code>/var/lib/corosync/*</code>.             
                      


For clusters using Ceph storage, additional steps are required after removing the node from the cluster: stop and destroy the Ceph Metadata Servers (if running CephFS), remove the node's OSDs from the Ceph crush map, and finally remove the node's bucket from the CRUSH hierarchy.