Skip to content

Rack and UPS

You'll turn a pile of boxes and cables into a shelf where every cable has a label, and teach the server to shut itself down cleanly when the power goes.

About

A pile of boxes on a shelf with cables going everywhere works right up until the day you need to unplug one thing. A small rack or a sturdy shelf, some labels and a UPS turn the pile into something you can work on. It doesn't need to be a 42U cabinet, because a wall-mount 6U frame or a shelf with rack rails is enough for most homes. The part most people skip is the second half of a UPS: the battery buys you minutes, and the USB cable lets the server use those minutes to shut down properly instead of dying mid-write. The UPS has a lead-acid battery, so it's heavy, the terminals can spark, and it never gets opened. Keep it off carpet and away from water.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
One weekend
Skill level
Beginner (done it a few times)
Cost
Moderate (under $100)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Homelab & Hardware to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Photograph the mess before you touch it. Get every cable and every box, from the front and from behind. This is your before picture, so take it from angles you can repeat later. Post the before photos together. Photo
  2. 2
    Get a rack, frame or shelf, and a UPS with a USB port. Used racks go cheap when offices close, and a used UPS with a new battery is often cheaper than a new one. Check that the UPS has a USB or serial port, because that's what the last requirement needs. Take a photo of the parts. Photo
  3. 3
    Mount everything, run short patch cables, and label both ends of every cable. Use velcro rather than zip ties, because you'll change this later. No cable should be longer than it needs to be, and every one gets a label at each end that says where the other end goes. Take a photo from the front and from the back. Photo
  4. 4
    Plug the lab into the UPS, pull the wall plug, and note the minutes. Film the lab staying up and the UPS display showing the minutes remaining. Write that number down, because it decides the shutdown timer in the next step. Video
  5. 5
    Make the server shut itself down before the battery runs out. Connect the UPS to the server over USB and install NUT or apcupsd. Set it to shut down at twenty percent battery or five minutes remaining, whichever comes first. Then pull the wall plug and wait. Film the server shutting down on its own with the UPS display in the frame. Video
  6. 6
    Photograph the finished shelf from the same angles as the before. Shoot the front and the back, matching the before photos as closely as you can. Post them side by side with the before photos. Photo