← Back to PureKit

120 Serial SCSI VPD Queries Taking 84.55s: Breaking a 60s Disk-Replace Timeout

#Linux Storage#SCSI VPD#Profiling#Concurrency
120 Serial SCSI VPD Queries Taking 84.55s: Breaking a 60s Disk-Replace Timeout

The Symptom

On high-density storage servers, the disk-inventory step inside a drive-replacement workflow routinely exceeded its 60-second timeout, causing the replacement command to abort.

Step-Timing Forensics

Rather than blindly raising the timeout, I instrumented the inventory script with per-step timestamps to separate hardware latency from command overhead:

  • The script issued 120 SCSI VPD queries strictly serially across drive bays.
  • Even at a normal ~0.1s per disk baseline plus environmental stalls on degraded bays, total runtime reached 84.55 seconds.

The Fix

  • Replaced the serial loop with bounded parallel queries and per-drive timeouts so one sluggish bay cannot hold up the entire chassis inventory.
  • Retained structured stage-timing logs to distinguish slow drives from bus stalls during future incidents.

Enjoyed this note or seen a similar bug?

Feel free to drop a line—always glad to exchange ideas with fellow engineers.

Say hi · [email protected]