← All guides

Two node home lab failover on a budget: what actually moves, and what stays manual

Operations · 9 min read

One host dies at 2 a.m. What restarts on its own, what waits for you, and what data is simply gone? That is the only honest way to ask the two node failover question, because a budget two node setup is not a small copy of an enterprise cluster. Some of it genuinely automates. Some of it automates only after a third vote, a replication schedule, and a fencing delay have all done their jobs. And some of it stays manual no matter what the dashboard calls it. This guide separates the three piles before any money is spent.

The short answer

With two Proxmox VE nodes, a quorum device, replicated storage, and the HA manager, selected virtual machines and containers restart automatically on the surviving node. Everything outside that list, meaning Docker hosts that are not HA managed guests, services whose data lives outside the replicated volumes, and anything that needs a human decision about stale data, stays manual. The budget version buys automatic restart for a short named list of services. It does not buy effortless anything.

The quorum problem comes first

Proxmox VE documentation states the constraint plainly: high availability needs at least three nodes for reliable quorum, and for smaller two node clusters a QDevice can be used to provide a third vote. Quorum is the majority vote that decides which part of a split cluster is allowed to act. Two nodes alone tie at one vote each when one fails, and a tied cluster cannot safely decide that the missing node is really dead rather than merely unreachable. The QDevice is a small external voter. It runs no guests. Its whole job is to break that tie.

Cluster plumbing matters here too. All nodes must reach each other on UDP ports 5405 to 5412 for Corosync, an SSH tunnel on TCP port 22 is required between nodes, and Proxmox recommends a dedicated physical NIC for cluster traffic, with a dedicated 1 Gbit NIC described as enough in most situations because Corosync needs consistent low latency rather than high bandwidth. A witness on a flaky wireless link is a quorum outage waiting for a bad night.

What moves, what does not

ItemAutomatic?Condition it depends on
HA managed VM or container on shared storageYesQuorum holds, the failed node is fenced, and the surviving node has capacity
HA managed guest on replicated local ZFSYes, with a data gapRestarts from the last completed replication; writes since that sync are lost
A guest that was never added as an HA resourceNoRestarting it is a manual migrate or start, by design
Docker containers inside a non HA virtual machineNo, not directlyThey return only when their host guest returns, and only if that guest was HA managed
Data on a local disk that was never replicated or sharedNoIt leaves with the failed node until that node is repaired
The decision that replicated data is fresh enough to serveNoA person judges whether the gap matters for that service

The middle row deserves emphasis. Proxmox storage replication replicates guest volumes to another node so data is available without shared storage, using snapshots to minimize network traffic, at configurable intervals from a minimum of one minute to a maximum of once a week. The same documentation warns that high availability is allowed with storage replication, but there may be some data loss between the last synced time and the time a node failed. A one minute interval sounds small until the service is a password vault or a photo library mid upload. Replication interval is a data loss budget, stated in minutes.

Build the budget version, step by step

  1. Create the two node cluster and confirm both nodes run the same Proxmox version. Version consistency is part of the documented quorum requirements.
  2. Install the witness. On a small separate machine, install the corosync-qnetd package. On each Proxmox node, install corosync-qdevice.
  3. Register the QDevice from one node: pvecm qdevice setup <witness address>. Then run pvecm status and confirm three voters are listed. Two voters means the witness step did not land.
  4. Put guest disks on ZFS on both nodes and add a replication job for each guest you intend to protect, from the replication panel available at datacenter, node, and guest level. Start with a short interval for a small test guest and read the job status before trusting it with a real service.
  5. Add only the named services as HA resources. The HA manager is configured with commands such as ha-manager add vm:100, or from the GUI. Guests not added stay manual, which is a feature: the experimental box should not fight the file server for capacity on the surviving node.
  6. Check surviving node capacity on paper. RAM and storage for every HA guest must fit on one node at once, because that is the failure case being bought.

Once running, two daemons do the work on each node: the local resource manager controls services on its own node, and the cluster resource manager makes cluster wide decisions, sends commands, and handles node fencing. That fencing step is why failover is measured in minutes, not seconds. The cluster must be sure the old node is dead before starting its guests elsewhere, or the same disk could be written by two nodes at once.

The manual list, written down

Keep a printed or phone accessible runbook for the parts that stay manual: confirming the failed node is truly off before forcing anything, starting the guests that were never HA managed, checking each restarted service rather than trusting a green cluster view, and deciding what to do about the replication gap for each service. Proxmox replication documentation describes the manual recovery path for a replicated guest on the surviving node, including checking quorum with pvecm status first, and warns strongly against using pvecm expected 1 to force quorum except to get vital guests running or to resolve the quorum problem itself. That command is an emergency lever, not a routine step.

Test it before believing it

  1. On a test guest only, shut down or disconnect the node it runs on during a time when a failure costs nothing.
  2. Time three events separately: detection and fencing, guest start on the surviving node, and the service inside the guest actually answering.
  3. Compare the guest data against a marker written just before the test, such as a timestamped test file, to see the replication gap with your own eyes.
  4. Bring the failed node back and confirm replication resumes in the right direction before calling the test done.

What success looks like

The test guest restarts on the surviving node without any cluster command from you, the marker file shows a data gap no larger than the replication interval you chose, pvecm status shows the cluster quorate with the QDevice vote counted, and every service you left manual is still listed as manual in the runbook. If quorum is lost during the test, the design failed its first exam and the witness placement gets fixed before any real service joins the HA list.

Who should buy this, and who should skip it

Buy the second node and the witness when two or three named services cause real household pain when they are down for a few hours, and those services run as guests whose data tolerates a replication gap measured in minutes. Skip it when the honest list of such services is empty, when the main workloads are media libraries whose absence is an inconvenience rather than a problem, or when a good backup and a calm manual restart already meet the need. A forum consensus worth heeding for budget builds is that two nodes with ZFS replication plus a QDevice is the low cost pattern, while Ceph belongs on larger clusters. Three full nodes remain the cleaner design. Two nodes plus a witness is the budget compromise, and it works best when it is chosen as a compromise, with the manual list written down, rather than mistaken for the real thing.

, Dex Carter, Tech Writer