Production cluster — storage, replication and HA
Date: October 2026 · Status: the Proxmox cluster epyc exists and its pools are built; its
firewall rules are written but off (2026-10-22); replication and HA not built yet · Carried out by: Yacine.
The steps, in order, are in ops todo → epyc. This page explains the
design they implement; the wider context is the target architecture.
In short
Each node keeps its VM disks on its own local ZFS pool. The few services that matter (Keycloak,
GitLab, the databases) are copied every minute to a second node with Proxmox storage replication
(pvesr). If a node dies, those VMs restart on the copy and lose at most the last minute of
writes. Everything else is restored from PBS. There is no shared storage: no Ceph, no DRBD.
The requirement behind it: losing up to one minute of data on a node failure is acceptable, and an automatic restart is wanted but not required.
Nodes and pools
| Node | Machine | VM pools | Role |
|---|---|---|---|
pve-01 | epyc0, Gigabyte R282-Z92 | nvme_pool — 4 × PM1735 3.2 TB as 2 mirrors, ≈ 5.8 TiB | critical services |
pve-02 | epyc1, Gigabyte R282-Z92 | same | critical services |
pve-03 | epyc2, Dell R7515 | nvme_pool — PM983 mirrors (6 drives = 3 mirrors, 5.08 TiB; the other 6 universal bays stay free, decided 2026-11-16) · bulk — 10 × SAS 1.8 TB as 2 × RAIDZ2, 9.55 TiB | compute, bulk over NFS |
gpu-01 | Gigabyte G242-Z11 | nvme_pool — 2 × PM983 mirror | GPU CI runners, course inference |
Rules that make this work:
- Same pool name on every node (
nvme_pool). Replication and migration need a storage with the same ID on the target node. - Mirrors, not RAIDZ, for VM pools. A pool grows by adding a pair of drives, and a pair can be
removed again (
zpool remove); a mirror holds as much as its smaller drive. bulkholds reproducible data only (ISOs, images, datasets, scratch) and is not backed up.- The Samsung 980 M.2 in
epyc1stays out of every pool (consumer drive, no power-loss protection).
Replication with pvesr
pvesr is the replication built into Proxmox. At each interval it takes a ZFS snapshot of a VM's
disks and sends only the blocks changed since the previous one to the target node. The target
holds a ready copy; the VM runs on one node only.
| Guests | Interval | Target |
|---|---|---|
| Keycloak, GitLab, databases | 1 min | the other node of pve-01/pve-02 — one replica, none on pve-03 |
| everything else | none | PBS nightly backup only |
GPU runners on gpu-01 | none | rebuilt from the playbook, not backed up |
Each replicated VM uses its disk space twice, which is why replication is limited to the critical guests. Replication is not a backup: a deletion or corruption inside the VM is copied at the next interval. PBS stays the backup.
HA — automatic restart
Proxmox HA restarts a VM on another node when its node stops answering. With pvesr, the VM starts
on the latest replica, so up to one minute of writes is lost; when the failed node returns, the
replication direction reverses by itself.
- HA group:
pve-01+pve-02, containing only the replicated guests. - Never in HA: guests on
gpu-01(a passed-through GPU exists on that node only) and guests without a replica. - Self-fencing: a node running HA guests that loses the cluster quorum reboots itself after
about a minute (
watchdog-mux), so that the same VM never runs twice. Nothing to configure; it is the reason corosync must be reliable before HA is switched on. - Order: build the cluster with replication first, run a failover test (power off one node, check the restart and the data loss), then enable HA.
Until HA is on, nothing in the ZFS layout depends on it: the pools, pvesr and PBS work the
same, HA only automates the restart. A dead node's replicated VM is started by hand on the node
that holds its replica, from any surviving node (two of three still have quorum):
mv /etc/pve/nodes/<dead-node>/qemu-server/<vmid>.conf /etc/pve/nodes/<replica-node>/qemu-server/
qm start <vmid> # on <replica-node>; data as of the last replication
A VM without a replica is restored from PBS instead. Never move the config while the dead node can still come back up on its own — power it off at the BMC first, or the VM runs twice.
Quorum and corosync
corosync is the cluster's heartbeat and vote count. A partition with more than half the votes keeps running; the rest freezes its configuration (and, with HA, reboots).
- Today (2026-10-22): link 0 on VLAN 111, link 1 on VLAN 20 as fallback — both on the 100 G cable that also carries migration and replication.
- Before HA: add a link on the 1 G onboard port of each node through
sw-access, so the heartbeat has a cable of its own when migration or replication saturates the 100 G one, and so that a reboot ofsw-100gdoes not cost the quorum — with HA on, that would make every node running HA guests reboot itself.
The sw-access link comes later
Decided 2026-10-22: the cluster goes on without this link until the final installation; PBS,
replication and the rumba migration proceed, HA and the failover test wait for it.
- Meanwhile: if
sw-100gor a node's 100 G cable fails, the cluster loses quorum or that node. VMs keep running; configuration changes andpvesrstop until the link returns; nothing reboots, because no node runs HA guests. - On site: rack the FS S3900 and power it (factory settings switch every port, enough for
corosync); three Cat6 cables from
epyc0nic0,epyc1nic0andepyc2eno1; no uplink — the network stays isolated and unrouted. Beforenic0is cabled, set theepyc0/epyc1BMCs to their dedicated port only: they are bonded over the shared port today and could move onto this isolated network (todo). - Then, live, no reboot (Proxmox: Adding Redundant Links To An Existing Cluster in the
Cluster Manager guide): an address per node on
the onboard port, a
ring2_addrper node and a thirdinterface { linknumber: 2 }in a copy of/etc/pve/corosync.conf,config_versionincremented, the copy moved over the original; corosync reloads it. Check withcorosync-cfgtool -s(three links connected), allow the new subnet in thefabricIP set of the firewall, then pull one link to see the quorum hold. - Three nodes (
pve-01/02/03) need nothing more. Four nodes, oncegpu-01joins, are an even count: a corosync QDevice onmgmt-01provides the fifth vote, so a 2-against-2 split does not stop the cluster.
Network
Nothing to add on sw-100g: the VLANs already exist (100 G fabric).
| VLAN | Use in this plan |
|---|---|
| 20 | PVE admin, corosync link 1 (fallback) |
| 110 | reserved, unused (created for Ceph) |
| 111 | corosync link 0 |
| 112 | migration and replication (MTU 9000) |
pvesr always uses the cluster's migration network (migration: secure,network=192.168.112.0/24
in datacenter.cfg, set at cluster creation), so replication and migration share VLAN 112. Storage, corosync and migration
VLANs stay unrouted.
Not retained
- Ceph — one operator who has not run it; a full OSD, two nodes down or a switch failure stops
every VM at once;
size=3on three hosts makes the smallest node bound usable space, and each host has to grow together. Ceph stays a course topic on the bare-metal pool. - LINSTOR/DRBD — synchronous replication (no data loss) between
pve-01andpve-02, but a third storage technology from an outside vendor, a split-brain to resolve by hand, and a witness node needed anyway. A one-minute RPO does not need it.