Skip to content
UPSmonitor 247-IT

247-IT Guide

UPS redundancy: dual power supplies on two UPS units

A server with two power supplies on two separate UPS units keeps running when one feed fails. Most UPS software does not know that and shuts it down anyway. When a shutdown is necessary, when it is not, and how the UPS Hyper-V Shutdown Monitor brings the second UPS into its decision instead of shutting down at the first critical reading.

01 Basics Two power supplies only protect against what happens between the panel and the server.

Two power supplies, two UPS units: what happens electrically

Servers with two power supplies are built for A/B feeds: power supply A hangs on UPS A, power supply B on UPS B, ideally on two separate circuits. If one feed drops, the other power supply carries the full load without interruption. Manufacturers size redundant power supplies so that one alone powers the server; whether that still holds for your configuration is in the server's datasheet.

Devices with a single power supply, such as a NAS or a switch, can be connected to both UPS units through an automatic transfer switch (ATS, often also called STS). It switches to the second input when the preferred one fails; manufacturers quote transfer times in the millisecond range that are meant to stay below the hold-up time of common power supplies. That is a rule of thumb, not proof: pull the plug once in a maintenance window.

Three cases you have to keep apart:

  1. Only one feed fails — a breaker trips, a power strip dies, UPS A has a fault. UPS A reports battery operation or disappears; the server keeps running on B. A shutdown would be unnecessary.
  2. Both feeds fail — the outage hits the main distribution or the building. Both UPS units go on battery at the same time; the one with the shorter runtime determines when the server has to shut down.
  3. Shared supply line — both UPS units hang on the same breaker. Then redundancy only protects against faulty UPS units, cables and strips. In any real outage you end up in case 02.

Calculate the runtime beforehand with the load one UPS carries alone when the other fails. See the guide Calculating UPS runtime.

02 The problem One agent per UPS knows only its own UPS.

Why classic UPS software shuts down too early

The shutdown tools from UPS vendors usually work with one agent per UPS that knows exactly one device and shuts the server down as soon as that device reaches its threshold. With two UPS units you run two instances, and each decides on its own. If only UPS A fails, agent A eventually reports low battery and shuts down, although power supply B is still being fed from UPS B.

The usual workarounds are not convincing. Monitoring only UPS A means a failure of B goes unnoticed while a failure of A still causes an unnecessary shutdown. Very late thresholds just move the problem and eat the reserve for the case where both really fail. Custom scripts that compare two UPS units work, but have to be maintained.

What is missing is one instance that sees both UPS units at once and asks a different question: not “is my UPS critical”, but “does this server still have a healthy feed”.

03 Decision Shutdown only once both UPS units are no longer healthy.

How UPSmonitor decides with two UPS units

The UPS Hyper-V Shutdown Monitor manages several UPS units in one installation (Pro). Each UPS runs as its own monitoring process with its own poll interval (default 30 seconds) and its own number of confirmations before shutdown (default 3). Every Hyper-V host and every additional server gets an assigned UPS; below it, the edit dialog has the field “Redundant UPS (optional, Pro)” for the UPS on the second feed. The same exists for the monitoring machine itself in the “Service” tab.

When UPS A reaches its shutdown threshold and confirms it over the configured number of polls, the shutdown run for its hosts starts. For every host with a redundant UPS, the software now checks both UPS units. If one of them counts as healthy, that host is deferred, not cancelled: the next poll checks again, until either mains power returns to A or B is no longer healthy either. Hosts without a redundant UPS in the same run shut down normally.

A UPS counts as healthy only if all of this applies:

  1. Status Online or Charging — battery operation does not count as healthy, even if the UPS still has plenty of runtime. A UPS on battery is a feed that is failing right now.
  2. Not in bypass — in bypass the load hangs unprotected on mains. If that drops, nothing is left.
  3. Status current — the last value must be no older than three times this UPS's poll interval, at least 30 seconds. An unreachable UPS or a stale value counts as not healthy.
  4. Enough runtime — optional. In the field “Min. redundant UPS runtime (s)” you require a safety margin. If the protecting UPS reports less runtime, or none at all, it does not count as sufficient despite its online status, and the host shuts down. Default is 0, meaning off.

The rule is deliberately fail-safe: when in doubt, shut down.

Decision for a host with assigned UPS A and redundant UPS B
UPS A (assigned) UPS B (redundant) Result
MainsMainsNothing happens.
Battery, threshold reached and confirmedMains or charging, currentDeferred. Log: “shutdown deferred — still protected by healthy redundant UPS”. Every further poll checks again.
Battery, threshold reachedMains, but runtime below the minimum margin or unknownShutdown. The margin only applies if it is set above 0.
Battery, threshold reachedBattery, regardless of remaining runtimeShutdown. Both feeds are failing.
Battery, threshold reachedBypassShutdown.
Battery, threshold reachedUnreachable or status older than 3 intervalsShutdown. Unknown does not count as healthy.
Mains returnsanyThe run ends, the deferred host stays up.
Battery, threshold reachedMains, but no Pro licenseShutdown as without redundancy, with a warning in the log.

A deferred host appears in the history as an entry “Deferred, redundant UPS still healthy”. That is not a failure: the availability reports list such entries in their own column “Deferred (redundancy)” and do not count them as failed shutdowns. The on-battery alert of UPS A is sent as usual, because the loss of one feed is an alert, just not a shutdown. The shutdown alert names only the targets the run actually touches; if a deferred host is shut down later after all, the software reports that again.

The monitoring machine postpones its own shutdown while hosts are still deferred, because it has to be able to shut them down later. If its UPS already reports low battery, it shuts down anyway. The Topology tab (Pro) shows the protection status “Protected (redundancy)” per host with a dashed line to the second UPS, evaluated with the same logic as the shutdown decision, and exports the picture as a PDF for the emergency plan.

Multiple UPS units, redundancy and the Topology tab belong to the Pro edition. Without a valid Pro license a configured second UPS is ignored and affected hosts shut down normally. Additional servers such as backup servers or NAS units with two power supplies get the same fields; how they are included in the shutdown is in the guide Shutting down backup servers and NAS in a power outage.

04 Distinction One host with two feeds, or two hosts with one each.

Redundancy or live migration

Both features prevent an unnecessary shutdown, but they act at different points. UPS redundancy concerns one host with two feeds: nothing is moved, the host simply keeps running on the second UPS. Live migration concerns two hosts on different UPS units: if the UPS of host 1 goes on battery while the UPS of host 2 is on mains, the VMs move to host 2 and host 1 shuts down. How that works with and without a cluster is in the guide Hyper-V failover cluster power outage.

A host can have both configured. As long as its redundant UPS is healthy, it is not migrated, because the shutdown would be deferred anyway. If the redundancy drops later, the next poll catches up on the migration, provided the partner host is still a healthy target. Conversely, a migration target whose primary UPS is affected remains a valid target if its redundant UPS is up. For two hosts with two power supplies each on the same two UPS units, redundancy is usually the better fit: both keep running, and there is nothing to migrate.

05 Pitfalls The software can only protect what it can see.

Seven things that make redundancy worthless

  1. Both UPS units on the same supply line — the most common trap. Check in the panel that A and B hang on different breakers, better on different sub-distributions. Otherwise both go on battery at the same time in every outage.
  2. Second UPS without a network card — a UPS the software cannot poll via SNMP or NUT cannot be entered as redundant. Electrically it still powers the server, but the software shuts down when A fails as if B did not exist. Remedy: retrofit a network card or attach the UPS via USB to a NUT server, see NUT on Windows.
  3. Unequal runtimes — if the large UPS A fails, the small UPS B carries the whole load and may last five minutes. Set the minimum runtime of the redundant UPS so that time remains for the shutdown, and distribute the load so both last about equally long.
  4. Monitoring machine with a single feed — if the machine running the monitor hangs only on UPS A, it goes down with A before it can shut down the deferred hosts. Feed it from both UPS units as well and enter its assigned and redundant UPS in the “Service” tab.
  5. Default assignment misunderstood — a Hyper-V host with no assigned UPS is not shut down at all. An additional server with no assignment is treated as “belonging to every UPS” and shuts down on any UPS outage. Always assign both UPS units explicitly.
  6. Very different poll intervals — the status of the second UPS only counts as current up to three times its own interval. With a 300-second interval, a fifteen-minute-old “Online” value can still hold the host. Give both UPS units a similar, short interval.
  7. Redundancy without a Pro license — in the 30-day trial the feature is available. If the license continues as Standard afterwards, the second UPS is ignored, the log warns, and the hosts shut down as without redundancy.

Two UPS units from different vendors are no problem for redundancy as long as both deliver their status. Which ones integrate natively via SNMP, via RFC 1628 or via NUT is in the guide Monitoring UPS units from multiple vendors.

06 Test First in test mode, then with the plug.

Testing redundancy without shutting anything down

Test mode runs the complete decision sequence but sends no commands to hosts or servers. It evaluates the redundancy as well: the history shows per host whether it would have been shut down or deferred. For the real test you need a maintenance window and the mains plug of UPS A:

Test sequence in a maintenance window, test mode enabled
Step Action Expectation
1Enable test mode, temporarily set the thresholds of UPS A so they trigger right after the confirmations.Dashboard shows both UPS units online, Topology tab shows “Protected (redundancy)”.
2Pull the mains plug of UPS A.UPS A reports battery operation, the on-battery alert arrives. Servers keep running, power supply B carries the load.
3Wait for the confirmations (default 3 polls).Log: “shutdown deferred — still protected by healthy redundant UPS 'B'”. History: entry “Deferred”, no failure.
4Additionally pull the mains plug of UPS B.On the next poll the deferral ends; the history shows that a shutdown would now have taken place. In test mode nothing real happens.
5Plug both UPS units back in, reset the thresholds, disable test mode.Power-restored alert, run ended, Topology back to “Protected (redundancy)”.

For the case “second UPS unreachable”, pull B's network cable in step 4 instead of its mains plug: after three times its interval it counts as not healthy, and the history shows a shutdown instead of a deferral. How to monitor and alert on UPS units without shutting anything down is in the guide UPS monitoring without shutdown.

07 Checklist Go through it once before arming.

Checklist for redundant power

  1. Separate circuits — A and B demonstrably hang on different breakers, better on different sub-distributions.
  2. One power supply carries the load — per datasheet and checked once in practice: plug on A pulled, server running.
  3. Both UPS units pollable — each UPS is set up as its own device via SNMP or NUT and delivers status and runtime.
  4. Assignment complete — every host and additional server has its assigned and redundant UPS set explicitly, including the monitoring machine.
  5. Similar intervals — both UPS units with a short poll interval so the status of the second UPS is never stale.
  6. Minimum runtime set — if the UPS units differ in size, a margin in seconds that suffices for the shutdown run.
  7. Topology checked — all hosts show “Protected (redundancy)”, the PDF export is filed with the emergency documentation.
  8. Test documented — test-mode run and plug test from section 06 with a date in the history.
08 Questions Short answers to common questions.

Frequently asked questions

Does my server shut down when only one of the two UPS units goes on battery?

No, as long as the second UPS counts as healthy: it reports Online or Charging, is not in bypass, and its status is no older than three times its poll interval. The shutdown is then deferred and rechecked on every further poll. The on-battery alert of the affected UPS is still sent.

What happens if the second UPS is unreachable?

An unreachable UPS does not count as healthy. If the primary UPS is critical and the redundant one delivers no current status, the host shuts down as if it had no redundancy. The software only relies on a feed it can currently see confirmed.

Do I need UPS redundancy if I have already set up live migration?

They are two different mechanisms. Live migration moves VMs from a host with a power problem to a partner host on another UPS. UPS redundancy keeps a single host with two feeds running without moving anything. A host can have both: as long as its redundant UPS is healthy, it is not migrated, because the shutdown would be deferred anyway.

Does redundancy also work with an automatic transfer switch instead of two power supplies?

For the software there is no difference: it sees two UPS units and checks whether one of them is healthy. Whether the server hangs on both through two power supplies or through an ATS is unknown to it. The prerequisite is that the server really keeps running when one UPS fails. Check that once in a maintenance window before you enter the second UPS as redundant.

Two feeds, one decision

30 days free, every feature included. With several UPS units per installation, a redundant UPS per host and additional server, a minimum runtime as safety margin and the Topology tab.