Python script to manage the quorum with 2 servers HA cluster

no, it is not safe as it throws out all the safeguards and violates basic assumptions of a PVE cluster.
 
use a quorum device, if the quorum device goes down your remaining two nodes are still quorate.. of course if the quorum device and a node goes down your back to square one but at least still in safe territory..
 
it mainly has the advantage of not having a chance of starting any guests on two nodes at the same time, which is a huge mess in almost every regard..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!