Diagnosing hardware faults on bare metal
Random crashes and slowdowns have many causes. A few targeted checks show whether the hardware is to blame, and give technicians what they need to fix it fast.
Is it hardware or software?
Hardware faults leave traces in kernel messages and counters, while software problems leave them in application logs. Start with the kernel: machine check exceptions, corrected or uncorrected memory errors, disk I/O errors and link resets on a network card all point at a component. A process that leaks memory or a service stuck in a loop does not produce any of those.
journalctl -k -p err --since "7 days ago" --no-pager | tail -n 40 dmesg -T | grep -iE 'mce|machine check|edac|hardware error|i/o error|link is down'
How do I check the memory?
Read the error counters first, then test if they are not conclusive. Server memory is ECC, which corrects single-bit errors and counts them; a module that keeps adding to its corrected count is on its way out. The kernel exposes those counters through EDAC.
apt install edac-utils # or: dnf install rasdaemon edac-util -v ras-mc-ctl --errors
For an active test, use memtester on a large share of free memory, ideally from rescue mode where your services are not using it. A 64 GB machine can test about 56 GB in one pass:
memtester 56G 2
Any failure, or a corrected error count that grows during the test, is reason enough for a ticket; the ECC memory explained article explains how ECC reports what it fixes.
How do I spot a disk that is going bad?
SMART data and the RAID status tell most of the story. Look for growing reallocated or pending sectors on hard drives, media errors on NVMe drives, and arrays that have lost a member. A drive that answers slowly is also suspect: compare latency between the two disks of a mirror with iostat, since one member taking ten times longer than its twin is failing even if SMART is quiet.
smartctl -a /dev/sda | grep -E 'Reallocated|Pending|Uncorrect|Power_On' iostat -x 5 3 | awk 'NR==1 || /nvme|sd/'
The Get a failed disk replaced guide covers what to collect before asking for a new drive.
Could the processor be overheating?
Rarely in a data centre, but it is quick to rule out. Read the sensor values under load and look for throttling messages. Sustained temperatures close to the chip's limit, or clocks that drop well below base frequency under full load, suggest a cooling issue that technicians can inspect.
apt install lm-sensors stress-ng sensors stress-ng --cpu 0 --timeout 300s --metrics-brief & watch -n 5 "grep MHz /proc/cpuinfo | sort -k4 -n | head -n 4"
Stress tests also catch faulty cores: a computation that fails or a machine that reboots under stress-ng --cpu 0 --verify points squarely at the processor, memory or power supply.
What about the network card?
Check the link speed and error counters on the interface. A link negotiated at a lower speed than the port, steadily rising CRC or receive errors, or repeated link down messages indicate a cable, switch port or card problem rather than an attack.
ip -s link show eno1 ethtool eno1 | grep -E 'Speed|Duplex|Link detected' ethtool -S eno1 | grep -iE 'err|crc|drop' | grep -v ': 0$'
Interface names vary by board; ip -br link lists them. For packet loss further away, run mtr towards the affected users and include its report when you open a ticket.
Why test from rescue mode?
Because it separates the hardware from your installed system. If the machine crashes in your system but runs a long memory and CPU test in rescue mode without a fault, the cause is almost certainly software: a driver, a kernel version or an application. If it fails in rescue mode too, the hardware is at fault. Rescue mode is started from the console; the IPMI and rescue mode article explains how it stands in for a remote screen.
| Symptom | First check | Likely cause if confirmed |
|---|---|---|
| Random reboots, no log entry | stress-ng with verify in rescue mode | Power supply, memory or CPU |
| Kernel panics mentioning memory | EDAC counters, memtester | Memory module |
| Slow writes, high iowait | iostat latency per disk, SMART | One weak drive in an array |
| Packet loss on all traffic | ethtool error counters | Cable, port or network card |
What should the ticket contain?
The symptom, when it started, and the raw output that shows the fault: the kernel lines, the EDAC or SMART values, the stress test result and, for disks, the serial numbers. Say when the machine may be taken offline. Technicians replace failed components as part of the rental, and a ticket with evidence attached usually goes straight to the repair stage.
Related pages
Get a failed disk replaced
How to confirm a drive is failing, collect the details technicians need, and what happens before and after the new disk goes in.
Read moreECC memory explained
Why servers use error correcting memory, how full ECC differs from DDR5 on-die ECC, and which of our machines carry which.
Read moreIPMI and rescue mode
What out-of-band management is, and how console power control, reinstall and rescue boot cover the same needs on our machines.
Read moreFind a disk serial number
Read the serial number of every SATA, SAS and NVMe drive with smartctl, lsblk, udev or sysfs, even when the drive has dropped out of the array.
Read moreQuestions and answers
How do I test memory on a rented server?
Read the ECC error counters with edac-util or ras-mc-ctl, then run memtester on most of the free memory, preferably from rescue mode.
Is there a hardware diagnostics button in the console?
The console offers reboot, power, reinstall and rescue boot. Hardware checks run from the system or from rescue mode with standard Linux tools.
What does a growing corrected memory error count mean?
ECC is fixing errors from one module repeatedly. The module is likely to fail and should be replaced; open a ticket with the counter values.
Is hardware replacement charged?
No. Failed disks, memory, power supplies and other parts are replaced by the data centre team as part of the rental.
How do I tell a software crash from a hardware fault?
Run the same load in rescue mode. If rescue mode stays stable for hours, the cause is in the installed system; if it fails too, the hardware is at fault.