Remove a Proxmox node from the cluster and add it again

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

This article shows how to remove a node from a Proxmox Ceph cluster and, if necessary, add it back.

Requirements

  • There must be no VMs or containers on the node to be removed. Therefore, it is recommended that you migrate them to another node beforehand (see the "Preparation" section for more information).
  • Please note that your cluster has enough free storage space to distribute the data onto the remaining nodes

Preparations

Migration of VMs & containers

Migrate all virtual machines and containers on any server.

Delete OSDs

Delete Monitor, Manager, MetaDataServer Daemons

To avoid later complications when creating different daemons, it is recommended to delete it before the node is removed. Please follow these steps:

Reading out name

Find the name of your node either in the GUI under the "Server View" or use these command in the CLI: "pvecm nodes".The name of the server is required in the following step.

root@PMX1:~# pvecm nodes

Membership information
----------------------
    Nodeid      Votes Name
         1          1 PMX1 (local)
         2          1 PMX2
         3          1 PMX3


Remove cluster node

First, connect using the IP address of another node to prevent the connection from being lost during removal. Next, you have to shut down the node that should be removed. Please make sure that the node does not turn back on (for example with Wake-On-LAN).

In the following, you can enter the following command to remove the node from the cluster. Use the CLI of any other node for that.

root@PMX2:~# pvecm delnode PMX1
Killing node 1
root@PMX2:~# 


Reinstallation & configuration of node

Now, it is important to know that the node can not be simply added back to the cluster, as a complete reinstallation must be performed. However, the previous configuration can also be used. Please note that the same PVE version is used as in the cluster. If you want to use another hardware, make sure that it is identical with the hardware of the remaining cluster nodes.

Now, you can start the configuration of your new system. For this, the configuration of the network and the editing of the host entries is necessary. Helpful tips for the configuration can be found in the following documentation: Proxmox Dokumentation

Cluster Join

Next, the node can be readded to the cluster.

Ceph installation and configuration

The last step for the integration of a node into the cluster is the installation and configuration of Ceph on the newly added server.


Author: Niklas Pauli

Niklas Pauli works in the product management team at Thomas-Krenn. He completed his general university entrance qualification at Freyung High School and then his training as an IT specialist for system integration at Thomas-Krenn.AG. After completing his training, he continued to work in the areas of Proxmox VE incl. Ceph, backup (Proxmox, Veeam, SEP). He is also a regular writer for the Thomas-Krenn-Wiki.

Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

Creation of Proxmox HA cluster
Proxmox VE USB installation media
ZFS Pool Import - Proxmox single host reinstall without full backup