A Proxmox cluster is what turns three or more Proxmox VE nodes into a single managed fabric: shared cluster configuration, the ability to migrate guests between nodes, optional HA, and a single web UI to administer them all. The glue is corosync (membership and total-order broadcast) plus pmxcfs (the FUSE filesystem backed by corosync that replicates /etc/pve across nodes). This article is the procedure we follow to form a healthy cluster and the verification a node must pass.
How to verify
Before forming a cluster, confirm all candidate nodes are at the same Proxmox version, time-synchronized, and on a network that meets corosync’s latency budget.
# Run on each candidate node
pveversion -v | head -1
sudo timedatectl status | grep -E '(NTP|synchronized)'
sudo ip -br addr | grep -v '^lo'
# From node1, latency to others must stay under ~5 ms p99
ping -c 50 -i 0.1 -q pve02 | tail -2
ping -c 50 -i 0.1 -q pve03 | tail -2
corosync defaults assume a sub-2-ms LAN; cross-DC clusters need a dedicated low-latency link or a separate cluster per site with replication. If timedatectl shows clock skew of more than a few seconds, fix NTP before going further — pmxcfs uses timestamps to resolve conflicts.
What’s happening
When you create or join a Proxmox cluster, three things happen. First, corosync configuration in /etc/pve/corosync.conf is generated (or extended) listing every node, the ring (network) addresses, and the cluster name. Second, the corosync daemon on each node establishes membership — exchanging multicast or unicast heartbeats and electing a coordinator. Third, pmxcfs mounts /etc/pve from a SQLite database that is replicated across all nodes using corosync’s total-order broadcast — every node sees every write in the same order.
Quorum is the rule that decides which subset of nodes is allowed to write. Default expectation: a majority (expected_votes / 2 + 1). A 3-node cluster needs 2 nodes online to remain writable; lose two and /etc/pve becomes read-only on the surviving node, which is by design — it prevents two halves of a split cluster from independently editing config.
The procedure
-
Create the cluster from the first node. Pick a cluster name; it appears in the UI and in
/etc/pve/corosync.conf. Use--link0with an explicit address to pin which network corosync uses (do not let it pick the management network if you have a dedicated cluster network):sudo pvecm create production --link0 10.0.20.21 sudo pvecm statuspvecm statusshould now show a one-node cluster withQuorate: Yes. -
Join the second node. From the second node, use the first’s address on the cluster network. The join command prompts for root password on the existing cluster:
# On pve02 sudo pvecm add 10.0.20.21 --link0 10.0.20.22 sudo pvecm statusA clean join logs you out of pveproxy on the joining node (its certificates were replaced); log back in via the existing cluster UI and you’ll see both nodes.
-
Add the third node — and stop there if that’s all you have. Two-node clusters are problematic for quorum (no majority possible after a failure); three is the practical minimum. If three is too expensive, a
pvecm qdeviceexternal arbiter on a small fourth box gets you quorum for a two-node setup. -
Pin the cluster network — corosync wants its own. Editing
/etc/pve/corosync.confis done viacorosync-cfgtoolor by hand on one node — pmxcfs replicates the change to the others. Increment theconfig_version. Setting up a second ring (Knet link) on a backup network is what survives a single network failure:nodelist { node { name: pve01 nodeid: 1 quorum_votes: 1 ring0_addr: 10.0.20.21 ring1_addr: 10.0.30.21 } # ... } totem { cluster_name: production config_version: 5 interface { linknumber: 0 } interface { linknumber: 1 } transport: knet } -
Verify quorum and the cluster filesystem. A few commands you want to run regularly:
sudo pvecm status # membership + quorum sudo corosync-cfgtool -s # ring health sudo corosync-quorumtool -s # vote summary ls /etc/pve # pmxcfs mount sanity check -
Plan for HA only after the cluster is solid. HA needs a shared storage backend (Ceph, NFS, iSCSI with a shared LUN, or storage replication via pve-zsync); see Proxmox HA failover. Don’t enable HA on a cluster that doesn’t have shared storage — VMs cannot move if their disks can’t.
-
Document the cluster. A short runbook captures the node names, cluster network IPs, the corosync.conf, the qdevice (if any), and the procedure to add/remove a node. The first cluster everyone builds is a snowflake; the second one is documented.
Common pitfalls
- Joining a cluster wipes the joining node’s existing VMs from the perspective of the cluster (its
/etc/pveis replaced); only join nodes that have nothing important on them yet. - Multicast corosync (rings 0/1 default to UDPU unicast in modern PVE) works on flat L2 but fails silently across L3 boundaries; use unicast (
knet) for any non-trivial network. - Cluster networks that share a NIC with high-throughput storage or guest traffic will see corosync heartbeat timeouts under load — give corosync its own NIC if possible, or a high-priority VLAN with traffic shaping.
- A node that has been offline for hours can re-join with a stale
/etc/pveview; pmxcfs reconciles via corosync but if you’ve made conflicting writes during the partition, the resolution is timestamp-based and may not be what you expect. pvecm delnoderemoves a node from the config but the node’s/etc/pve/localdirectory remains on the other nodes; clean it up withpvecm cleanupor by editing manually.
Stack Harbor builds Proxmox clusters as a single template — three or five nodes, dedicated cluster network, a qdevice for two-node deployments, HA enabled only with Ceph or genuine shared storage, the corosync.conf in version control. The clients who came to us with two-node Proxmox setups split across racks and no qdevice get that fixed during onboarding to Clustered Environments.