Burn-in testing of new hardware
Video 091 of 140 in Virtualization Foundations, in the unit “Hardware failure and health”. 3:28, with English and Hindi audio.
New hardware can fail in its early days, long before it wears out. A part can leave the factory with a weak spot that shows only under load. Burn-in testing runs a new server hard before it carries real work, so faults appear on an empty machine rather than in front of customers. This article explains what a burn-in stresses, how one run proceeds, and which Linux commands drive each test.
What you will learn
- Burn-in finds faults on an empty server, so customers never meet them.
- Stress every group of parts: processors, memory, disks and network ports.
- Record serial numbers and firmware before the run, so the results can be compared.
- Watch temperature and logs during the run, not only at its end.
- Pass a server only when every check is clean, and keep the logs.
Why new hardware is tested hard before use
Harbor Point Logistics, a fictional regional firm, has just received four new servers for a new cluster. They look perfect, and the paperwork lists no faults. But a part can leave the factory with a weak spot that shows only under heavy load.
A failure after go-live brings downtime and a rushed swap. Finding the fault on an empty server is far cheaper.
What a burn-in stresses
- Processors: every core runs heavy work, while temperature and errors are watched.
- Memory: patterns are written across all the memory and read back, to find bad bits.
- Disks: long self-tests run, with heavy reads and writes, while SMART health is watched.
- Network ports: traffic runs through every port, and link errors are counted.
Read the temperature and the logs as the run goes, not only at its end.
One burn-in run, step by step
- Record the baseline: note each server's serial number and firmware version before the run starts. That record is what you compare against.
- Load everything: load processors, memory, disks and ports together, for a long period.
- Watch the signs: check the sensors, the event log and the error counters while the test runs.
- Decide: pass the server only when every check is clean. A new error sends the part back to the vendor.
The Linux commands for each burn-in test
On Linux, stress-ng loads the processors and memory, smartctl runs disk self-tests, and ipmitool reads the event log. Install all three first.
sudo apt install stress-ng smartmontools ipmitoolNext, load every core and most of the memory for four hours. The test runs for the whole period.
sudo stress-ng --cpu 0 --vm 2 --vm-bytes 80% --timeout 4h --metricsThe long self-test runs inside the disk itself. The result is kept in the disk's self-test log, which you read when the test ends.
sudo smartctl -t long /dev/sdasudo smartctl -l selftest /dev/sdaWhen the load ends, read the event log again. A new entry is a reason to stop and investigate.
sudo ipmitool sel listFaults that appear during the run, and what goes wrong
- Skipping the run: a server that goes straight to work can fail under its first real load.
- A run that is too short: some faults need time to show themselves, and a short run can miss them.
- Looking only at the end: a fan alarm or a rising temperature during the run is the signal.
Note: Do not run a burn-in on a server that already carries work. The load lasts four hours, and it will slow or stop that work.
Run a short burn-in check on a new server
You need a new server that carries no work, and sudo rights. Use the name of your own disk in place of /dev/sda.
Install the three tools: stress-ng for load, smartmontools for disk tests, and ipmitool for the event log.
sudo apt install stress-ng smartmontools ipmitoolWhat you should see: The tools are ready. stress-ng loads the processors and memory, and smartctl starts a long self-test on each disk.
Load every core and most of the memory for four hours, and print the metrics.
sudo stress-ng --cpu 0 --vm 2 --vm-bytes 80% --timeout 4h --metricsWhat you should see: The run loads every core and most of the memory for four hours.
Start a long self-test on the disk you are testing.
sudo smartctl -t long /dev/sdaWhat you should see: A long self-test starts and runs inside the disk itself.
When the test has finished, read the self-test log of the same disk.
sudo smartctl -l selftest /dev/sdaWhat you should see: The self-test log shows the result. Read it when the test ends.
Check the event log for anything new since the run began.
sudo ipmitool sel listWhat you should see: A new entry is a reason to stop and investigate before the server takes live work.
Terms
- Burn-in
- A hard test run on new hardware, before it carries real work, to find faults that appear under load.
- SMART
- A health monitoring system built into most disks. It reports the disk's condition and can run self-tests.
- Event log
- The record of hardware events kept by a server, which shows new faults and warnings.
Check yourself
Why run a burn-in before a server takes live work?
Faults in a weak part show up under heavy load. Finding them on an empty server is far cheaper than finding them on a customer's work.
What happens to a memory stick that a burn-in flags with a bad bit?
The part goes back to the vendor, so the customers never see it.
What does a new entry in the event log after a run mean?
It is a reason to stop and investigate before the server takes live work.
Previous: Replacing a part safely: hot-swap or downtime. Next: Turning on VT-x or AMD-V.