# Remove Node from Cluster

##### Introduction

---

These are the steps if a node needs to be removed entirely from the cluster and function as a single node

##### Steps

---

1. Remove or mitigate all VMs and containers from nodes that will be decommissioned
2. Create a ZFS snapshot of rpool and rpool/data on the single node
3. Delete the nodes that will be decommissioned
4. Remove the cluster config
5. (Optional) Disable cluster/HA services

---

Snapshot

```bash
zfs snapshot rpool@<date>
zfs snapshot rpool/data@<date>
```

Turn off the decommissioned node

Remove the decommissioned nodes from the single node

```
pvecm delnode <nodename>
```

Run the following to delete the cluster and create a single node

<p class="callout info">It may be best to run this line by line to see the output.</p>

```
systemctl stop pve-cluster corosync
pmxcfs -l
rm /etc/corosync/*
rm /etc/pve/corosync.conf
killall pmxcfs
systemctl start pve-cluster 
```

(Optional) Disable cluster/HA services

```bash
systemctl disable --now pve-ha-crm pve-ha-lrm corosync.service
```