ProjectsCase study 02

Seven incidents, two failure modes

The hypervisor that runs my whole lab started freezing with nothing in its logs. Over six weeks I built a way to capture evidence from a machine that stops recording, tested the software theory and ruled it out, took the record to the vendor, and rebuilt the lab on the replacement.

Result
Hardware fault isolated
host replaced under warranty and rebuilt from backup the same day
Incidents
7
six whole-host stops and one storage-controller lockup
When
October to November 2026
Stack
Proxmox VE, Linux kernel, netconsole, pstore, rasdaemon, MemTest86, IP KVM

The problem

The host is a 12th-generation Intel mini workstation running Proxmox. Twice in one week it stopped dead: no crash message, no reboot, nothing written to disk. A machine that freezes this way can't record its own failure, so the usual first step, reading the logs, returned nothing.

Every service in the lab runs on that host. I needed to know whether the cause was software I could fix or hardware I couldn't.

Step 1: capture before theories

I built a capture rig so the next incident would leave evidence somewhere the failing machine didn't control:

  • Kernel messages streamed off the box. netconsole sends them straight from the network driver to the NAS over the dedicated storage link, so they arrive even when the host's disk has stopped.
  • Crash storage that survives a reboot (pstore), plus a hardware-error daemon watching for memory and CPU errors.
  • Lockup detectors set to panic. A stuck CPU now produces a stack trace and an automatic reboot after 60 seconds, which is evidence and recovery in one step.
  • A console screenshot every 30 seconds from an IP KVM, kept for two hours, so I can see the last thing on screen.
  • A health line every 60 seconds in the remote log, with temperatures, load and free memory, so the minutes before a freeze are on record and the stop time is known to the minute.

Then I tested the rig end to end by forcing a crash on purpose and confirming the full trace arrived on the NAS.

What the evidence showed

  1. Two silent freezes. No logs. This is what prompted the capture rig.

  2. First captured crash: a kernel panic while the CPU was idle. That pointed at a recent kernel update, so software became the lead suspect.

    I pinned the host to the previous kernel as a controlled test and set a review date.

  3. Froze again on the older kernel. The software theory was ruled out. A full memory test and a CPU stress test both passed, and the hardware-error log was clean, so the fault sits below what those tests exercise.

  4. Fifth freeze, at idle. Same pattern: the heartbeat and the kernel stream simply stop.

  5. A different failure: the NVMe controller stopped responding and the filesystems shut down, but the kernel stayed up and kept logging over the network for four and a half hours. The disk could not have recorded its own failure. The remote stream did.

  6. Seventh incident, a freeze under heavy load. It happened while the faulty unit was waiting to be shipped back, which was another reason not to keep it in service.

  7. Replacement in service. A new unit arrived and I rebuilt the host on it the same day from the backup server.

The result

With the incidents documented, the software theory tested and ruled out, and clean results from the standard hardware tests, the vendor replaced the unit under warranty with a new one. I moved the lab to it with a written procedure, the “total drive loss” rebuild: install the hypervisor, then restore every guest from the backup server. The lab was back in service the day the new unit arrived.

What I took from it

The first theory the evidence supported was wrong, and that was fine. The rollback test was designed so that either outcome would tell me something, and the record shows the wrong turn as clearly as the right one.

Keeping the record honest

  • Passing tests didn't clear the hardware. Memory and CPU tests passed and the machine still failed. I reported both facts instead of picking the convenient one.
  • Unrelated events stayed out of the count. Two power outages in the same period were excluded, because adding them would have made the case look stronger than it was.
  • Two failure modes are tracked separately. Six whole-machine stops and one storage lockup may share a cause or may not. The replacement unit is the test, so its incident count started again at zero.

What I would do next

  • Alert on a missing heartbeat. The storage lockup ran for hours before I noticed, because nothing was watching for the host going quiet.
  • Keep a spare boot drive on hand, so a suspected drive fault can be tested the same day.