From 360da5c90732e2e42b024ce78a0c5f17756ba016 Mon Sep 17 00:00:00 2001 From: admManuel Date: Sun, 16 Jun 2024 19:20:19 +0000 Subject: [PATCH] Add Proxmox/HA-CoroSync.md --- Proxmox/HA-CoroSync.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Proxmox/HA-CoroSync.md diff --git a/Proxmox/HA-CoroSync.md b/Proxmox/HA-CoroSync.md new file mode 100644 index 0000000..b873c59 --- /dev/null +++ b/Proxmox/HA-CoroSync.md @@ -0,0 +1,10 @@ +# Helpfull Stuff about CoroSync / HA-Cluster in Proxmox + +## 2 Node Cluster without QDevice as the 3rd node + +Use this snipped as a cronjob to set the needed votes to only 1 to bring up a host. +This is an example where Host A (IP 10.0.81.1) is trying to ping Host B (IP 10.0.81.2). If this host is not reachable then set the expected votes to 1. + +```python +* * * * * if ! ping -c1 -w1 10.0.81.2 > /dev/null; then pvecm expected 1; fi +``` \ No newline at end of file