Skip to content

Proxmox VE Lost Quorum: A pvecm Recovery Triage Tree

The image that makes a Proxmox VE admin tense: the GUI turns read-only, VM configuration will not save, HA does nothing, and SSH shows /etc/pve is not writable. That is almost always a lost quorum. This guide splits recovery into three scenes - cold start, network partition, permanent node loss - and reads state before acting. Commands, numbers and causal claims were checked against the official Cluster Manager wiki, pvecm(1) manual and administration guide.

Quorum is not a Proxmox switch but a state corosync computes from votes. Losing it switches the cluster to read-only - a protection, not the fault. The job is finding why votes are short, not bypassing protection. The one official bypass, pvecm expected 1, has narrow uses; abusing it removes the consistency guarantee.

1. Layer one: read pvecm status

Turn "cluster unavailable" into readable fields. The quorum-relevant parts of pvecm status are three sections:

pvecm status
pvecm nodes

In the official four-node example, Quorum information holds Nodes: 4 and Quorate: Yes; Votequorum information holds Expected votes: 4, Highest expected: 4, Total votes: 4, Quorum: 3, Flags: Quorate; and Membership information lists each node's Nodeid, Votes and Name, marking (local).

How to read it:

  • Quorate: Yes with Flags: Quorate: this node believes the cluster is quorate, so quorum is not the problem. Check permissions, storage, or the API.
  • Quorate: No: quorum is lost; go to the scene split below.
  • Expected votes is the expected count, Total votes is what is currently visible; the gap tells you how many votes are absent. The official 4-node / Expected 4 / Quorum 3 example is the majority rule: state changes require a majority of nodes online.
  • Membership information names who is present and who is not - the basis for the scene split.

The pvecm(1) manual describes pvecm status as Displays the local view of the cluster status. In a partition, different nodes report different states, so one node is never enough evidence.

2. Layer two: name the scene before running a command

Quorum loss has different causes and different recovery paths. Getting this step wrong can enlarge the incident.

Scene A: cold start after power loss. The official Cluster Cold Start section is clear: with all nodes offline the cluster is naturally not quorate, a common state after a power cut; at boot the pve-guests service waits for quorum and starts guests with the onboot flag only once quorate. Nodes boot at different speeds, so guest startup waits for quorum. The right action is to restore inter-node networking, make sure the intended nodes are up, then wait - not force guests up or change vote counts.

Scene B: partition or partial node loss. The official Cluster Network section requires latency under 5 milliseconds between nodes for stable operation; with more than three nodes and latency above about 10 ms, stability is unlikely. The Corosync Over Bonds section warns that some bond modes create asymmetric connectivity where corosync cannot form a stable quorum; with HA enabled even healthy nodes may fence themselves, and in the worst case the whole cluster fences. Fix the corosync link, switches and bond configuration first. Changing votes here only hides the link fault.

Scene C: a node is permanently gone. The machine failed or was decommissioned and will not return. Only now remove it from cluster configuration with pvecm delnode, using pvecm expected 1 if needed to open a write window. This is the only scene that actually needs vote manipulation.

To tell them apart, read pvecm nodes and Membership information for who disappeared, then recall whether there was a power cut or a network change. Everyone absent after a power cut is A; some absent with a network change is B; one node confirmed dead and not returning is C. Cluster communication faults and VM egress faults are different chains - the path-first habit in Proxmox VM Network Triage: Bridge vs NAT applies, but bridge/NAT tests do not reach corosync; see also Proxmox Snapshot Rollback and qcow2 Triage for another state-before-action chain.

3. Layer three: correct action for scenes A and B

For a cold start, the core action is waiting - for corosync to form membership and quorum, not for a service to magically recover. The official guide also gives a command to observe how long membership rebuilding takes:

corosync-cmapctl | grep -Ew 'runtime.config.totem.token|runtime.config.totem.consensus'

This command comes from the guide's Changing the Token Coefficient section. Its sample output holds runtime.config.totem.consensus and runtime.config.totem.token; their sum is the minimum membership-rebuild time after a node goes offline, 10.89 seconds in the example, with optimization recommended above 30 seconds and strongly above 45. Actual tuning depends on your corosync version and network, so trust local man corosync.conf.

For a partition, first answer why nodes cannot see each other. Work through the official sub-5 ms requirement and the bond warning: inter-node latency, switch ports, bond mode, LACP settings. The guide notes LACP sends an LACPDU every 30 seconds by default, a 90-second failover, while HA nodes may fence themselves after roughly one minute without stable quorum; it recommends bond-lacp-rate fast on both node and switch to cut failover to about 3 seconds. This causal chain is specific to LACP and HA - do not copy it into a non-LACP environment.

Restraint matters. The dangerous impulse during a partition is setting votes to 1 so writes work. That lets two mutually invisible partitions both believe they may write - exactly what quorum exists to prevent. The guide's QDevice analysis stresses partition risk: an even-node cluster gets one extra vote from a QDevice, an odd-node cluster gets (N-1), partly to stop partitions acting independently.

4. Layer four: scene C, permanently removing a node

Once the node is confirmed not to return, follow the official Cluster Manager Remove a Cluster Node flow:

  1. Confirm the node is no longer a Ceph cluster member and hosts no Ceph resources or services.
  2. Power it off and make sure it cannot power on again in this network with its current configuration.
  3. Log into any remaining node and remove it.
  4. Verify the removal with pvecm nodes.

The commands below use pvecm delnode <node> from the pvecm(1) SYNOPSIS, where the argument is the cluster node name:

pvecm delnode node4
pvecm nodes

node4 is the official example name and a placeholder; substitute the real name. The manual describes pvecm delnode as removing a node from cluster configuration. After success, vote counts return to the real online count and no bypass is needed.

If removal fails because the remaining node lost quorum, the official Cluster Manager guide's Separate a Node Without Reinstalling section gives the workaround:

pvecm expected 1
pvecm delnode node4

The source text reads: If the command fails due to a loss of quorum in the remaining node, you can set the expected votes to 1 as a workaround, then repeat the pvecm delnode command. The pvecm(1) manual defines pvecm expected as Tells corosync a new value of expected votes; its SYNOPSIS is pvecm expected <expected> with <expected> an integer from 1 to N. Syntax is verified against the official manual; confirm support and the current value with pvecm help and pvecm status in your environment.

5. Layer five: the boundary and risk of pvecm expected

This section stands alone because it is the only operation in the flow that manufactures quorum. The official Cluster Manager guide, in Corosync Configuration to Troubleshooting to Write Configuration When Not Quorate, says that if you need to change /etc/pve/corosync.conf on a node with no quorum and you understand what you are doing, use pvecm expected 1. The pvecm(1) manual adds: This sets the expected vote count to 1 and makes the cluster quorate. You can then fix your configuration, or revert it back to the last working backup.

Three hard boundaries follow:

  • Purpose limited: the official guide mentions it only for changing corosync.conf without quorum and as a workaround for a failed node removal. It is not a switch for day-to-day operation.
  • Window limited: the window exists to finish one concrete task (restore config or delete a node), after which votes should return to reality. Inside the window the system believes it has quorum when it does not; if a second node blips, inconsistent configuration can be written to /etc/pve and propagated to nodes that never agreed to it.
  • Subject limited: it changes corosync's view of expected votes, not the config file. Real persistence for a removal comes from pvecm delnode rewriting configuration; stopping at expected 1 leaves the cluster genuinely unrepaired.

HA adds another concern. The guide notes in its QDevice and bond sections that HA relies on watchdog fencing and stable quorum, and nodes may fence themselves when quorum is unstable, up to the whole cluster. Keep window operations away from HA peak times and expect fencing as a real possibility. Guest migration triage belongs in Proxmox Live Migration Triage, but a failed migration and a lost quorum are separate chains.

6. One tree: from status field to action

  • Quorate: Yes in pvecm status: not a quorum problem. Stop using pvecm expected and check permissions or storage.
  • Quorate: No, all nodes absent, right after a power cut: scene A. Restore node networking and power, wait for pve-guests to start guests after quorum, no manual intervention.
  • Quorate: No, some nodes present, network or switch changed: scene B. Fix the corosync link, latency and bond config; do not restore writes by changing votes.
  • Quorate: No, one node confirmed permanently gone: scene C. Do the Ceph cleanup, power it off, pvecm delnode, verify with pvecm nodes.
  • Removal fails due to quorum: documented workaround of pvecm expected 1 then a retry of pvecm delnode, with no other work inside the window.
  • Need to change /etc/pve/corosync.conf without quorum: again start with pvecm expected 1, and only if you understand the consequences.
  • Membership keeps rebuilding, latency suspicious: inspect token plus consensus with corosync-cmapctl and judge against the official thresholds.

Each step answers one yes/no question. The greatest danger is using pvecm expected 1 before the scene is clear: it silences the alarm without removing the cause.

7. Acceptance checklist before calling it done

  • pvecm status reads Quorate: Yes, with Expected votes and Total votes back at the real online node count
  • pvecm nodes no longer lists the permanently removed node; deletion verified
  • If pvecm expected 1 was used, only for a documented scenario, with no unrelated VM or storage edits in the window
  • Inter-node latency meets the official 5 ms requirement; bond/LACP checked against official advice
  • HA and Ceph prerequisites confirmed: the removed node holds no Ceph resources and HA services are stable
  • onboot guests started through the official mechanism after quorum, not started ahead of it by hand
  • Installed PVE version and pvecm help output recorded; command syntax verified locally

To make these tests recurring, sample pvecm status votes and Quorate, latency, and membership changes. Walk the three scenes by hand first, or an alarm will ring with nobody sure which branch to take.