Hi,
I have a Proxmox server (6.3-2) at home running a couple of VMs.
I would like to install a UPS (Uninterruptible Power Supply) able to :
-
Stop properly the Proxmox server when the power goes off
-
Restart the Proxmox server when the power comes back.
I guess, I need a UPS (APC vs EATON vs other ?), and I think (but not sure if it can do what I want) I also need another server (e.g. Raspberry Pi) running NUT (https://networkupstools.org/ ) .
-
Is that correct ?
-
What are your advices to achieve this ?
Many thanks for your help
UPS APC to shutdown VMs? | Proxmox Support Forum
Shutdown UPS with nut | Proxmox Support Forum
UPS shutdown | Proxmox Support Forum
Creative ways to Shut Down a Proxmox host on UPS without USB battery monitoring?
Videos
Howdy folks. I have a situation where I have a Proxmox host I have setup is connected to a UPS, but that UPS for some reason does not have a data interface at all (I guess it was cheap). I was thinking of setting up a crontab command that runs every 5 minutes, and if a smart network switch that is NOT connected to the UPS isn't responding for more than 1 minute, it initiates a shutdown of my Proxmox host (as it would only be unresponsive if power goes out).
Has anyone done something like this? Just wondering what options I have. Would rather not buy extra equipment or replace the UPS if avoidable as it was only just purchased recently. Suggestions appreciated.
Hello,
With Proxmox 9.2 and the new "disarm-ha" and "arm-ha" commands, wondering how to best utilize them (or not) when shutting down all 3 nodes at same time due to low UPS battery. All 3 of my nodes are on same UPS, and yes I know it's not best practice.. but this is my home environment.
I have nut-client configured and working on all 3 nodes using the following in "upsmon.conf"
SHUTDOWNCMD:
"/sbin/pvecm expected 1 && /usr/sbin/ha-manager set --state stopped && sleep 15 && /sbin/shutdown -h now"
Just not sure if this is the right way or if there is a better way to do this with the new commands? I would want HA re-enabled as nodes power back on.
Just want to keep a migration storm from happening when they all shutdown at the same time.
Any feedback & suggestions are appreciated!
And yes, I have proper backups going to my NAS and another location worst case scenario..
Thank you!
I've been searching this topic all day with little progress. I feel like there has to be a simple solution that I have just missed.
I have a 5 node cluster, I have 4 VMs spread across the cluster, and what I have done is set groups for each of those VMs with its home node set as priority 2, and the rest set as priority 1. that way if i shut down a node, it will migrate that vm to another, then migrate it back once its home node comes back online. This might be a manual shutdown, or my thought was a crash or hardware failure would trigger it as well.
I also have another machine running TrueNAS, and another running OPNsense.
I have each pc set to power on after power loss via the bios.
What i want is if the power goes out for more than 5 minutes everything shuts off. The UPS (an Eaton 5p) can power down after a set amount of time, and continue its shutdown and restart procedure even if it gets mains power back during its shutdown, so i think the power back up will work ok.
My problem is finding a good solution to have the machines turn off. I would like to avoid installing nut on the host OS if i can. I do have nut in a docker container on one of the VMs.
Has anyone found a reliable, simple method of graceful shutdown of everything on power loss? My UPS should be able to run everything for 15-20 minutes. I keep reading about high availability making things hang up if you try to shut down all nodes at once. Ive read about shutdown scripts not working because they might originate from a single machine which is at some point telling itself to turn off.
I'm not done researching, but I could use some direction if someone has come up with a solution.
Thanks.