Remove Node from Cluster
IfIntroduction
These are the steps if a node needs to be removed entirely from the cluster and stillfunction usedas aftera thesingle removalnode
Steps
- Remove or mitigate all VMs and containers
awayfrom nodes that will be decommissioned - Create a ZFS snapshot of rpool and rpool/data on the single node
- Delete the nodes that will be decommissioned
- remove the cluster config
Snapshot
zfs snapshot rpool@<date>
zfs snapshot rpool/data@<date>
Remove the decommissioned nodes from the node.single
pvecm delnode <nodename>
Run the following code
It may be best to run this line by line to see the output.
systemctl stop pve-cluster corosync pmxcfs -l rm /etc/corosync/* rm /etc/pve/corosync.conf killall pmxcfs systemctl start pve-cluster