Skip to content

Instantly share code, notes, and snippets.

@johncm
Last active May 7, 2024 06:42
Show Gist options
  • Select an option

  • Save johncm/1e4f421a6524f3473a61eda66decf6ec to your computer and use it in GitHub Desktop.

Select an option

Save johncm/1e4f421a6524f3473a61eda66decf6ec to your computer and use it in GitHub Desktop.
Cluster# #ProxmoxVE

Proxmox - Remove Node from cluster

Caution Read the procedure carefully before proceeding, as it may not be what you want or need.

Use the Proxmox VE Cluster Manager command to show the status of the cluster.

pvecm status

(Console/shell)


Error: Corosync config '/etc/pve/corosync.conf' does not exist - is this node part of a cluster?


Remove Node

pvecm nodes

(Console/shell)

Note the name of the node you want to remove

pvecm delnode (name of the node)

DELETE CLUSTER

Set Node to have a quorum of 1

pvecm expected 1

Stop the running cluster

systemctl stop pve-cluster

Force the cluster to run in local mode

pmxcfs -l
  • turn off node you want to remove
  • reboot the server

Delete all the cluster configuration files

rm -fv /etc/pve/cluster.conf \
       /etc/pve/corosync.conf 
rm -rfv /etc/pve/nodes/(name of the node)
rm -fv /etc/cluster/cluster.conf \
       /etc/corosync/corosync.conf 
rm -fv /var/lib/pve-cluster/.pmxcfs.lockfile

Start cluster

systemctl start pve-cluster
  • Reboot and cluster should be gone
rm /etc/corosync/authkey

Clusters

https://pve.proxmox.com/wiki/Cluster_Manager

Create via the Command Line

Login via ssh to the first Proxmox VE node and run the following command:

pvecm create CLUSTERNAME

To check the state of the new cluster use:

pvecm status

Join Node to Cluster via Command Line

Log in to the node you want to join into an existing cluster via ssh.

pvecm add IP-ADDRESS-CLUSTER

For IP-ADDRESS-CLUSTER, use the IP or hostname of an existing cluster node. An IP address is recommended (see Link Address Types).

To check the state of the cluster use:

pvecm status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment