Quantcast
Channel: Recent Topics - HA-Lizard
Viewing all articles
Browse latest Browse all 1408

Trigger when secondary/slave node 2 be primary/master? How detect this? - by: Varga B.

$
0
0
Hi!

Info: xcp-ng + ha-lizard all 3 node, all 3 node identical hardware

node1: active, master
node2: passive, slave
node3: passive, slave and disabled after fully sync

All 3 node possible to turn on and turn off by an Ethernet relay switch, with scripting.

My plan: if node2 be active and master, it means something happens with node1, I want call a script what is turn on node3 automatically using Ethernet relay command and powered on.

How can detect this?

My idea: run every minute a cron script on node2 with a command, I don't know what, like a status or something, and if I see node2 is active, I exec the node3 turn on script.

Any better idea for that?

Thank you.

Viewing all articles
Browse latest Browse all 1408

Trending Articles