Dear community and Proxmox support/devs!
Looking at the documentation at the time of this post, I see rather expensive solutions being available for fencing. It's either APC PDU or MasterSwitch, managed switch (only for network going through that), UPS and IPMI, which may be missing from certain hardware connfigurations. These seem cumbersome solutions and are specific to certain configurations and environments.
Would be nice to have something more universal and affordable, and I thought I'd build my own. Something independent which could be used in any environment.
My intention is to have a fencing device based on an ESP32 MCU, with the following features:
Looking at the documentation at the time of this post, I see rather expensive solutions being available for fencing. It's either APC PDU or MasterSwitch, managed switch (only for network going through that), UPS and IPMI, which may be missing from certain hardware connfigurations. These seem cumbersome solutions and are specific to certain configurations and environments.
Would be nice to have something more universal and affordable, and I thought I'd build my own. Something independent which could be used in any environment.
My intention is to have a fencing device based on an ESP32 MCU, with the following features:
- would be able to drive a number of relays having NC (normally closed) contacts, which when triggered, interrupt the circuit (cut the power to the servers). The relay stays idle normally, letting power through, only cuts power when triggered.
- optionally the relays could de-engage automatically by themselves (eg. only one command would be needed to trigger fencing, power would be restored after some seconds automatically)
- multiple relays could act in parallel for servers with multiple power supplies connected to different power sources/phases
- would have a web UI and a REST-like API to trigger the relays (eg. with a POST request to hxxp: / /MCU . IP . ADDRESS/switch/relay_num_X/turn_on)
- would be possible to use multiple such devices with relays connected in series for functional redundancy, each on different IP address (to be 100% sure that if for some reason a fencing device fails, there are more on the line which can do the job)
- eventually, since ESP32 has 3 UARTs, we could connect to the device via RS232 from each server if we want to exclude the switch as a single point of failure between the servers and the fencing device. This would limit of course the usability to clusters with 3 nodes, and not sure it's worth the effort, since if the switch is dead, maybe there's no need for fencing in the first place as everything is already fenced and all site is down... (+extra circuitry would be needed due to UART-RS233 TTL level shifting)
- Rack enclosure, IEC connectors to loop power through etc.
Last edited: