Rockchip · AI & Linux Hub

Power & thermals

Sizing UPS runtime for a clean shutdown of a NanoPi server

When equipping a NanoPi or ArmSoM NAS with a UPS, the goal is not just to keep the power light on during a power outage.

Let the system detect a mains power failure, end new writes, complete database and file system wrap-up, and shut down before the battery dies. There is also conversion loss and aging between the battery nameplate and the real machine load.

Determine budget using event timeline

Measure the time consuming for detecting power outage, waiting for confirmation, notification service, disk brushing and shutdown respectively. Assume that it takes 45 seconds to close the business and another 30 seconds to shut down the system. These 75 seconds are just the starting point, and detection and margin need to be added. Measured battery life using maximum expected load.

Verify that the control signal is available

Confirm the connection method between UPS and board and system services. For example, compatible devices can use Network UPS Tools. Just seeing battery power does not mean that the system received a low battery event. Use the backup test disk and test cases to verify the shutdown logic.

The second start after power restoration is also important

After a complete shutdown, restore the mains power, and observe whether the device will automatically start as expected, and whether the storage volume, network and shared services will be restored. Record the battery model and test date, and retest after the battery ages to avoid using the shutdown margin from the new product period.

Four moments of UPS acceptance

time Verification evidence
Mains power disconnected Monitoring service receives event
Start finishing Business stops receiving new writes
Start shutting down The application has completed data submission
Mains power restored System and shared services restored as designed

Board documentation and references

ArmSoM Sige7

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →