Proxmox cluster
A five-node home cluster that keeps quorum with any two nodes down, backed up every night to a backup server of its own.
- Nodes
- 5
- Quorum
- 3 / 5
- Can lose
- 2 nodes
- Uplink
- 10 G
Topology
Five nodes meshed via corosync over the LAN, plus a backup server off to the side on its own hardware, outside the cluster. Hover any node:
The hardware
| node | role | cpu | ram | notes |
|---|---|---|---|---|
| pvedesktopmsi | primary · GPU · NAS | i9-13900K · 24c/32t | 64 GB | RTX 4080 · naspool: 4× 4 TB as two ZFS mirrors (7.25 TiB) · 10G SFP+ uplink |
| pveacerlaptop | haos host · last to die | i7-7700HQ · 4c/8t | 24 GB | Acer laptop · GTX 1050 + Coral TPU · its own battery keeps HA alive past the UPS |
| pvewyse5070 | services workhorse | Celeron J4105 · 4c/4t | 32 GB | 6 containers (5 running) + 2 VMs, including the production mapping backend · UPS secondary |
| pvehp | public tunnel · NUT master | i7-6700T · 4c/8t | 32 GB | HP EliteDesk 800 G3 Mini · USB-2.5G + onboard 1G bonded (active-backup) · the UPS reports here |
| pvehpg5 | web apps · 5th node | i5-9500T · 6c/6t | 24 GB | HP EliteDesk 800 G5 Mini · another room, its own UPS · stateless apps only · this site lives here |
| pbs | backup server · not a member | i5-5200U · 2c/4t | 8 GB | the laptop the Acer replaced · 8 TB IronWolf in a USB dock |
Why the laptop is one of the nodes
The whole rack is on a UPS, but a laptop’s internal battery buys a much longer tail in an extended outage. The HAOS virtual machine (Home Assistant’s control plane for the rest of the house) lives on the laptop node so the orchestration brain is the last thing to lose power. The UPS reports over USB to pvehp, and the other rack nodes follow it over the network as NUT secondaries, shutting down cleanly when it runs low. The laptop follows it too but only logs the warning: it carries on from its own battery until a guard halts it at 20 %. The fifth node sits in another room on a UPS of its own.
A 5-minute systemd timer pushes the battery’s charge, voltage, current, AC state and charge cap into InfluxDB. This laptop’s firmware offers no charge cap, so the pack floats at 100 %. The obvious health metric, full capacity against design, is a stored constant rather than a measurement: the fuel gauge only re-learns it on a complete discharge, and the node halts itself at 20 % before one can happen. So Grafana plots the live charge against that 20 % line, and the first real outage will measure the ride time, because an online UPS never drops its output in a test.
# /usr/local/bin/push-battery-metrics.sh (excerpt)
BAT=/sys/class/power_supply/BAT1
while IFS='=' read -r k v; do
[[ $k == POWER_SUPPLY_* ]] && B[$k]=$v
done < "$BAT/uevent"
capacity_pct=${B[POWER_SUPPLY_CAPACITY]:-0}
cycle_count=${B[POWER_SUPPLY_CYCLE_COUNT]:-0}
# charge cap where the firmware has one; 0 means it can't be capped
if [[ -r "$BAT/charge_control_end_threshold" ]]; then
charge_limit=$(< "$BAT/charge_control_end_threshold")
else
charge_limit=0
fi
host=$(hostname -s)
curl -fsS -u "$user:$pass" --data-binary \
"battery,host=${host} capacity_pct=${capacity_pct}i,cycle_count=${cycle_count}i,charge_limit=${charge_limit}i" \
"$INFLUX_URL"The 10G networking story
The desktop host used to ride two onboard I226-V 2.5 Gbps interfaces. A known firmware bug on that NIC produced a hard link flap every few minutes, which broke long-running TCP streams, most painfully PBS chunk uploads, which the kernel held open well past the HTTP/2 idle timeout.
A Mellanox ConnectX-3 EN now collapses everything onto a single 10 G SFP+ uplink to the aggregation switch. iperf3 sustains line rate with zero retransmits:
$ iperf3 -c 192.168.1.223 -t 30 -P 4
[SUM] 0.00-30.00 sec 3.29 GBytes 942 Mbits/sec 0 sender
[SUM] 0.00-30.04 sec 3.29 GBytes 942 Mbits/sec receiver
# (capped at ~942 Mb/s by the 1 G port at the far end, not the link)The trade-off is a single point of failure, which is the right one to take for a home lab: the two onboard ports remain cabled in, just admin-down, ready to bond back in if the Mellanox ever dies.
Quorum math
Five cluster nodes with one vote each gives 5 votes, quorum = 3, so any two nodes can drop and the cluster keeps running. While it had four nodes, a QDevice on the backup server broke ties; an odd count needs no tie-breaker, so it no longer carries a vote.
$ sudo pvecm status
Quorum information
Date: Mon Oct 26 18:43:48 2026
Nodes: 5
Quorate: Yes
Votequorum information
Expected votes: 5
Highest expected: 5
Total votes: 5
Quorum: 3
Membership information
Nodeid Votes Name
0x00000001 1 pvedesktopmsi
0x00000002 1 pveacerlaptop
0x00000003 1 pvewyse5070
0x00000004 1 pvehp
0x00000005 1 pvehpg5Backups
Proxmox Backup Server runs on the laptop the Acer replaced, writing to an 8 TB disk in a USB dock. The schedule is staggered per node (20:00, 21:00, 22:00, 23:00, 00:00) because one USB disk cannot drain five nodes’ backup streams at once without stalling, and a stalled qemu I/O path corrupted ext4 inside HAOS twice. That VM went back into PBS in October with fleecing on: while a backup runs, its writes land in a scratch copy on the node instead of waiting on the backup server, so a slow disk can no longer freeze it. Home Assistant’s own nightly backup to the NAS stays as a second path.
The NAS container gets its own weekly slot at 3 a.m. on Sunday, not 2 a.m., because daylight saving skips that hour once a year. A container backup reads every file whether it changed or not, so its 2–4 hour run stays clear of everything else. The photo library used to ride that slot too; in August it moved to a single SSD on pvehp and now goes out with that node’s nightly job.