Graceful Shutdown: Protecting Server Data When Batteries Run Out

The power flickers at 3 a.m. and the lights in the hallway dip. In the server closet, a battery backup (a UPS) starts beeping and takes over. Everything keeps running, and nobody on the floor notices. Twenty minutes later the power is still out, the battery is nearly empty, and the server loses power all at once.

That abrupt loss is the thing to prevent. A UPS is not meant to keep servers running through a long outage. It is meant to give the server time to shut itself down properly.

What actually gets damaged

A server writing to its disks is like a clerk in the middle of updating a chart. If the power is cut mid-entry, the entry may be half written. Databases, such as the one behind your EHR, billing system or file shares, are especially exposed because they have many things in motion at once.

The result of a hard power loss can range from nothing at all to a database that will not start, files that are damaged, or a server that needs a long repair or a restore from backup. You cannot predict which. That uncertainty is the risk.

An orderly shutdown tells the software to finish what it is doing, close files and databases cleanly, and then power down. Starting back up is then usually routine.

How automatic shutdown works

Most business-grade battery backups can talk to servers, either through a USB cable or over the network. When the UPS reports that it is running on battery, software on the server watches the remaining time. At a threshold you set, the server starts shutting down on its own. Nobody has to be in the building.

For that to work, several things must be true:

The UPS is connected to the server by a data connection, not just a power cord.

Shutdown software or settings are installed and turned on.

The shutdown triggers early enough to finish before the battery dies.

Multiple servers, and any virtual machines running on them, shut down in the right order.

Network equipment stays up long enough for management software to function.

How to confirm it is set up

You do not need to be technical. Ask your IT provider or whoever manages the closet:

Which devices are plugged into battery backup, and which are not?

Is each server connected to its UPS for shutdown signals?

At what remaining battery time or percentage does shutdown begin?

How long does each server take to shut down completely? Is that less than the remaining battery time at that point?

When was the batteries' age last checked? Most UPS batteries wear out and need replacement after a few years, and a tired battery lasts far shorter than its label suggests.

Do we get an alert, by email or text, when we go on battery?

Has this been tested, and when?

Look at the closet yourself, too. A UPS with a red light, a continuous alarm or a replace-battery message is trying to tell you something.

Testing without a gamble

A real test means pulling the plug, which is not a fun thing to do on a live EHR server. Ask your IT provider how they will test it, ideally after hours or with a maintenance window and with the vendor aware. Some UPS units have a built-in self-test that checks battery health without a full outage, and some shutdown software can run a simulated event.

Whatever the method, record the date and results. After a test, confirm the systems came back up properly and that your EHR works.

Plan for the long outage

Shutdown protects data, but the building still needs a plan. A generator may or may not cover the server closet, so find out. Your downtime procedures should tell nurses how to work on paper when the EHR goes down, and tell the administrator who to call. Do not forget what depends on the network: phones, nurse call interfaces, door controls and cameras may all go with it.

Put the shutdown threshold and the test date in your emergency preparedness documentation, and ask counsel or your state association what your emergency plan must include.

Keep it current

Whenever a server is added, replaced or moved, check that the UPS and shutdown settings were updated. New equipment is often plugged in and left out of the arrangement.

How we can help

UnityCare IT reviews battery backup and shutdown configuration, sets up orderly automatic shutdown for servers, tracks battery age and arranges testing at a time that suits your care schedule. We can also set alerts so you know when the building has gone on battery, including after hours.

Related service

Security monitoring, HIPAA safeguards, backups and staff training for healthcare and small businesses.

Related articles

Keep reading

Contact UnityCare Technologies

Call or text: 405-285-3845

New customers: start@unitycareit.com

Existing customers: support@unitycareit.com

Service area: based in Edmond, Oklahoma, serving Oklahoma, Texas and Kansas

Hours: Mon–Fri 8 AM–5 PM CT; 24/7 after-hours support