Proxmox Cluster Config
Proxmox Cluster
Edit VM settings when Cluster Quorum is not able to be reached
If one node in a two node cluster is down then cluster quorum will not be able to be reached. In this case use the following command to set the cluster to only require one vote for changes. When doing this ensure to not make any changes to cluster configuration (adding new nodes to cluster etc)
| |
Proxmox Two-Node Cluster – Running With One Node Offline
In a two-node Proxmox cluster, shutting down one node causes the remaining node to lose quorum.
When quorum is lost, /etc/pve becomes read-only and configuration changes may fail with errors such as:
| |
Check Cluster Quorum
Run:
| |
A two-node cluster with one node offline may show:
| |
Temporarily Allow Single-Node Operation
Only do this when you are certain the other Proxmox node is powered off or otherwise intentionally unavailable.
| |
Check the result:
| |
You should now see:
| |
The remaining node can now modify VM configurations and /etc/pve normally.
Test /etc/pve Write Access
Optional test:
| |
If this succeeds, /etc/pve is writable.
When the Second Node Returns
Normally no manual reset is required.
When the second Proxmox node rejoins the cluster, the expected vote count should automatically return to:
| |
Verify with:
| |
Important Warning
pvecm expected 1 disables the protection normally provided by quorum.
Do not use it if there is any possibility that both nodes are running but unable to communicate with each other.
That situation could allow both nodes to independently believe they control the cluster, creating a split-brain condition.
Safe example:
| |
Unsafe example:
| |
After a Reboot
pvecm expected 1 is temporary.
If the surviving node reboots while the other cluster node is still offline, quorum will normally be lost again.
Run:
| |
Recommended Long-Term Solution
If one node will regularly be powered off, configure a QDevice on a separate always-on Linux machine.
The voting arrangement then becomes:
| |
Quorum requires two votes.
This means either Proxmox node can be powered off while the remaining node and QDevice maintain quorum.
| |
A QDevice is preferable to regularly using:
| |